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

Side by Side Diff: chrome/app/chrome_main_delegate.cc

Issue 19502003: Cut some more dependencies from browser to child for multiple_dll mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 5 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/app/chrome_main_delegate.h" 5 #include "chrome/app/chrome_main_delegate.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/lazy_instance.h" 8 #include "base/lazy_instance.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/metrics/stats_counters.h" 10 #include "base/metrics/stats_counters.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 #if defined(USE_X11) 86 #if defined(USE_X11)
87 #include <stdlib.h> 87 #include <stdlib.h>
88 #include <string.h> 88 #include <string.h>
89 #include "ui/base/x/x11_util.h" 89 #include "ui/base/x/x11_util.h"
90 #endif 90 #endif
91 91
92 #if defined(OS_POSIX) && !defined(OS_MACOSX) 92 #if defined(OS_POSIX) && !defined(OS_MACOSX)
93 #include "chrome/app/breakpad_linux.h" 93 #include "chrome/app/breakpad_linux.h"
94 #endif 94 #endif
95 95
96 #if !defined(CHROME_MULTIPLE_DLL) || defined(CHROME_MULTIPLE_DLL_BROWSER) 96 #if !defined(CHROME_MULTIPLE_DLL_CHILD)
97 base::LazyInstance<chrome::ChromeContentBrowserClient> 97 base::LazyInstance<chrome::ChromeContentBrowserClient>
98 g_chrome_content_browser_client = LAZY_INSTANCE_INITIALIZER; 98 g_chrome_content_browser_client = LAZY_INSTANCE_INITIALIZER;
99 #endif 99 #endif
100 100
101 #if !defined(CHROME_MULTIPLE_DLL) || defined(CHROME_MULTIPLE_DLL_CHILD) 101 #if !defined(CHROME_MULTIPLE_DLL_BROWSER)
102 base::LazyInstance<chrome::ChromeContentRendererClient> 102 base::LazyInstance<chrome::ChromeContentRendererClient>
103 g_chrome_content_renderer_client = LAZY_INSTANCE_INITIALIZER; 103 g_chrome_content_renderer_client = LAZY_INSTANCE_INITIALIZER;
104 base::LazyInstance<chrome::ChromeContentUtilityClient> 104 base::LazyInstance<chrome::ChromeContentUtilityClient>
105 g_chrome_content_utility_client = LAZY_INSTANCE_INITIALIZER; 105 g_chrome_content_utility_client = LAZY_INSTANCE_INITIALIZER;
106 base::LazyInstance<chrome::ChromeContentPluginClient> 106 base::LazyInstance<chrome::ChromeContentPluginClient>
107 g_chrome_content_plugin_client = LAZY_INSTANCE_INITIALIZER; 107 g_chrome_content_plugin_client = LAZY_INSTANCE_INITIALIZER;
108 #endif // !CHROME_MULTIPLE_DLL || CHROME_MULTIPLE_DLL_CHILD 108 #endif
109 109
110 #if defined(OS_POSIX) 110 #if defined(OS_POSIX)
111 base::LazyInstance<chrome::ChromeBreakpadClient>::Leaky 111 base::LazyInstance<chrome::ChromeBreakpadClient>::Leaky
112 g_chrome_breakpad_client = LAZY_INSTANCE_INITIALIZER; 112 g_chrome_breakpad_client = LAZY_INSTANCE_INITIALIZER;
113 #endif 113 #endif
114 114
115 extern int NaClMain(const content::MainFunctionParams&); 115 extern int NaClMain(const content::MainFunctionParams&);
116 extern int ServiceProcessMain(const content::MainFunctionParams&); 116 extern int ServiceProcessMain(const content::MainFunctionParams&);
117 117
118 namespace { 118 namespace {
(...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 } 788 }
789 789
790 content::ContentUtilityClient* 790 content::ContentUtilityClient*
791 ChromeMainDelegate::CreateContentUtilityClient() { 791 ChromeMainDelegate::CreateContentUtilityClient() {
792 #if defined(CHROME_MULTIPLE_DLL_BROWSER) 792 #if defined(CHROME_MULTIPLE_DLL_BROWSER)
793 return NULL; 793 return NULL;
794 #else 794 #else
795 return &g_chrome_content_utility_client.Get(); 795 return &g_chrome_content_utility_client.Get();
796 #endif 796 #endif
797 } 797 }
OLDNEW
« no previous file with comments | « no previous file | content/browser/gpu/gpu_process_host.h » ('j') | content/browser/utility_process_host_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698