Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(614)

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 9701002: Aura/ash split: Split the extra parts into ash and aura parts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chrome_content_browser_client.h" 5 #include "chrome/browser/chrome_content_browser_client.h"
6 6
7 #include <set> 7 #include <set>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 #endif 111 #endif
112 112
113 #if defined(TOOLKIT_VIEWS) 113 #if defined(TOOLKIT_VIEWS)
114 #include "chrome/browser/chrome_browser_main_extra_parts_views.h" 114 #include "chrome/browser/chrome_browser_main_extra_parts_views.h"
115 #endif 115 #endif
116 116
117 #if defined(USE_AURA) 117 #if defined(USE_AURA)
118 #include "chrome/browser/chrome_browser_main_extra_parts_aura.h" 118 #include "chrome/browser/chrome_browser_main_extra_parts_aura.h"
119 #endif 119 #endif
120 120
121 #if defined(USE_ASH)
122 #include "chrome/browser/chrome_browser_main_extra_parts_ash.h"
123 #endif
124
121 #if defined(OS_LINUX) || defined(OS_OPENBSD) 125 #if defined(OS_LINUX) || defined(OS_OPENBSD)
122 #include "base/linux_util.h" 126 #include "base/linux_util.h"
123 #include "chrome/browser/crash_handler_host_linux.h" 127 #include "chrome/browser/crash_handler_host_linux.h"
124 #endif 128 #endif
125 129
126 #if defined(TOOLKIT_VIEWS) 130 #if defined(TOOLKIT_VIEWS)
127 #include "chrome/browser/ui/views/tab_contents/tab_contents_view_views.h" 131 #include "chrome/browser/ui/views/tab_contents/tab_contents_view_views.h"
128 #elif defined(TOOLKIT_USES_GTK) 132 #elif defined(TOOLKIT_USES_GTK)
129 #include "chrome/browser/tab_contents/chrome_web_contents_view_gtk_delegate.h" 133 #include "chrome/browser/tab_contents/chrome_web_contents_view_gtk_delegate.h"
130 #include "content/browser/tab_contents/tab_contents_view_gtk.h" 134 #include "content/browser/tab_contents/tab_contents_view_gtk.h"
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 #endif 344 #endif
341 345
342 #if defined(TOOLKIT_VIEWS) 346 #if defined(TOOLKIT_VIEWS)
343 main_parts->AddParts(new ChromeBrowserMainExtraPartsViews()); 347 main_parts->AddParts(new ChromeBrowserMainExtraPartsViews());
344 #endif 348 #endif
345 349
346 #if defined(USE_AURA) 350 #if defined(USE_AURA)
347 main_parts->AddParts(new ChromeBrowserMainExtraPartsAura()); 351 main_parts->AddParts(new ChromeBrowserMainExtraPartsAura());
348 #endif 352 #endif
349 353
354 #if defined(USE_ASH)
355 main_parts->AddParts(new ChromeBrowserMainExtraPartsAsh());
356 #endif
357
350 return main_parts; 358 return main_parts;
351 } 359 }
352 360
353 content::WebContentsView* ChromeContentBrowserClient::CreateWebContentsView( 361 content::WebContentsView* ChromeContentBrowserClient::CreateWebContentsView(
354 WebContents* web_contents) { 362 WebContents* web_contents) {
355 #if defined(OS_WIN) && !defined(USE_AURA) 363 #if defined(OS_WIN) && !defined(USE_AURA)
356 return new TabContentsViewWin( 364 return new TabContentsViewWin(
357 web_contents, new ChromeWebContentsViewWinDelegate(web_contents)); 365 web_contents, new ChromeWebContentsViewWinDelegate(web_contents));
358 #elif defined(TOOLKIT_VIEWS) 366 #elif defined(TOOLKIT_VIEWS)
359 return new TabContentsViewViews(web_contents); 367 return new TabContentsViewViews(web_contents);
(...skipping 1249 matching lines...) Expand 10 before | Expand all | Expand 10 after
1609 #if defined(USE_NSS) 1617 #if defined(USE_NSS)
1610 crypto::CryptoModuleBlockingPasswordDelegate* 1618 crypto::CryptoModuleBlockingPasswordDelegate*
1611 ChromeContentBrowserClient::GetCryptoPasswordDelegate( 1619 ChromeContentBrowserClient::GetCryptoPasswordDelegate(
1612 const GURL& url) { 1620 const GURL& url) {
1613 return browser::NewCryptoModuleBlockingDialogDelegate( 1621 return browser::NewCryptoModuleBlockingDialogDelegate(
1614 browser::kCryptoModulePasswordKeygen, url.host()); 1622 browser::kCryptoModulePasswordKeygen, url.host());
1615 } 1623 }
1616 #endif 1624 #endif
1617 1625
1618 } // namespace chrome 1626 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698