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

Side by Side Diff: chrome/browser/browser_process.h

Issue 6966017: Remove a chrome dependency by removing Prerender from ResourceDispatcherHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unit_tests build Created 9 years, 7 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // This interface is for managing the global services of the application. Each 5 // This interface is for managing the global services of the application. Each
6 // service is lazily created when requested the first time. The service getters 6 // service is lazily created when requested the first time. The service getters
7 // will return NULL if the service is not available, so callers must check for 7 // will return NULL if the service is not available, so callers must check for
8 // this condition. 8 // this condition.
9 9
10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_H_ 10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_H_
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 #if defined(OS_CHROMEOS) 51 #if defined(OS_CHROMEOS)
52 namespace chromeos { 52 namespace chromeos {
53 class ProxyConfigServiceImpl; 53 class ProxyConfigServiceImpl;
54 } 54 }
55 #endif // defined(OS_CHROMEOS) 55 #endif // defined(OS_CHROMEOS)
56 56
57 namespace net { 57 namespace net {
58 class URLRequestContextGetter; 58 class URLRequestContextGetter;
59 } 59 }
60 60
61 namespace prerender {
62 class PrerenderTracker;
63 }
64
61 namespace printing { 65 namespace printing {
62 class BackgroundPrintingManager; 66 class BackgroundPrintingManager;
63 class PrintJobManager; 67 class PrintJobManager;
64 class PrintPreviewTabController; 68 class PrintPreviewTabController;
65 } 69 }
66 70
67 namespace policy { 71 namespace policy {
68 class BrowserPolicyConnector; 72 class BrowserPolicyConnector;
69 } 73 }
70 74
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 // browser. Note that restart code will strip some of the command line keys 218 // browser. Note that restart code will strip some of the command line keys
215 // and all loose values from the cl this instance of Chrome was launched with, 219 // and all loose values from the cl this instance of Chrome was launched with,
216 // and add the command line key that will force Chrome to start in the 220 // and add the command line key that will force Chrome to start in the
217 // background mode. For the full list of "blacklisted" keys, refer to 221 // background mode. For the full list of "blacklisted" keys, refer to
218 // |kSwitchesToRemoveOnAutorestart| array in browser_process_impl.cc. 222 // |kSwitchesToRemoveOnAutorestart| array in browser_process_impl.cc.
219 virtual void StartAutoupdateTimer() = 0; 223 virtual void StartAutoupdateTimer() = 0;
220 #endif 224 #endif
221 225
222 virtual ChromeNetLog* net_log() = 0; 226 virtual ChromeNetLog* net_log() = 0;
223 227
228 virtual prerender::PrerenderTracker* prerender_tracker() = 0;
jam 2011/05/24 05:36:23 you only need to add a getter here if people need
dominich 2011/05/24 15:10:28 PrerenderContents accesses through BrowserProcess*
229
224 #if defined(IPC_MESSAGE_LOG_ENABLED) 230 #if defined(IPC_MESSAGE_LOG_ENABLED)
225 // Enable or disable IPC logging for the browser, all processes 231 // Enable or disable IPC logging for the browser, all processes
226 // derived from ChildProcess (plugin etc), and all 232 // derived from ChildProcess (plugin etc), and all
227 // renderers. 233 // renderers.
228 virtual void SetIPCLoggingEnabled(bool enable) = 0; 234 virtual void SetIPCLoggingEnabled(bool enable) = 0;
229 #endif 235 #endif
230 236
231 const std::string& plugin_data_remover_mime_type() const { 237 const std::string& plugin_data_remover_mime_type() const {
232 return plugin_data_remover_mime_type_; 238 return plugin_data_remover_mime_type_;
233 } 239 }
234 240
235 void set_plugin_data_remover_mime_type(const std::string& mime_type) { 241 void set_plugin_data_remover_mime_type(const std::string& mime_type) {
236 plugin_data_remover_mime_type_ = mime_type; 242 plugin_data_remover_mime_type_ = mime_type;
237 } 243 }
238 244
239 private: 245 private:
240 // User-data-dir based profiles. 246 // User-data-dir based profiles.
241 std::vector<std::wstring> user_data_dir_profiles_; 247 std::vector<std::wstring> user_data_dir_profiles_;
242 248
243 // Used for testing plugin data removal at shutdown. 249 // Used for testing plugin data removal at shutdown.
244 std::string plugin_data_remover_mime_type_; 250 std::string plugin_data_remover_mime_type_;
245 251
246 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); 252 DISALLOW_COPY_AND_ASSIGN(BrowserProcess);
247 }; 253 };
248 254
249 extern BrowserProcess* g_browser_process; 255 extern BrowserProcess* g_browser_process;
250 256
251 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ 257 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/browser_process_impl.h » ('j') | chrome/browser/browser_process_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698