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

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

Issue 8609010: Make DevToolsManager a singleton, remove it from ContentBrowserClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reverted notification service changes, use non-leaky singleton Created 9 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/browser_process_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
11 #define CHROME_BROWSER_BROWSER_PROCESS_H_ 11 #define CHROME_BROWSER_BROWSER_PROCESS_H_
12 #pragma once 12 #pragma once
13 13
14 #include <string> 14 #include <string>
15 #include <vector> 15 #include <vector>
16 16
17 #include "base/basictypes.h" 17 #include "base/basictypes.h"
18 #include "base/memory/ref_counted.h" 18 #include "base/memory/ref_counted.h"
19 #include "ipc/ipc_message.h" 19 #include "ipc/ipc_message.h"
20 20
21 class AutomationProviderList; 21 class AutomationProviderList;
22 class BackgroundModeManager; 22 class BackgroundModeManager;
23 class ChromeNetLog; 23 class ChromeNetLog;
24 class CRLSetFetcher; 24 class CRLSetFetcher;
25 class ComponentUpdateService; 25 class ComponentUpdateService;
26 class DevToolsManager;
27 class DownloadRequestLimiter; 26 class DownloadRequestLimiter;
28 class DownloadStatusUpdater; 27 class DownloadStatusUpdater;
29 class ExtensionEventRouterForwarder; 28 class ExtensionEventRouterForwarder;
30 class GpuBlacklistUpdater; 29 class GpuBlacklistUpdater;
31 class GoogleURLTracker; 30 class GoogleURLTracker;
32 class IconManager; 31 class IconManager;
33 class IntranetRedirectDetector; 32 class IntranetRedirectDetector;
34 class IOThread; 33 class IOThread;
35 class MetricsService; 34 class MetricsService;
36 class MHTMLGenerationManager; 35 class MHTMLGenerationManager;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 // to normal shutdown and saves any state that must be saved before we are 93 // to normal shutdown and saves any state that must be saved before we are
95 // continue shutdown. 94 // continue shutdown.
96 virtual void EndSession() = 0; 95 virtual void EndSession() = 0;
97 96
98 // Services: any of these getters may return NULL 97 // Services: any of these getters may return NULL
99 virtual ResourceDispatcherHost* resource_dispatcher_host() = 0; 98 virtual ResourceDispatcherHost* resource_dispatcher_host() = 0;
100 99
101 virtual MetricsService* metrics_service() = 0; 100 virtual MetricsService* metrics_service() = 0;
102 virtual ProfileManager* profile_manager() = 0; 101 virtual ProfileManager* profile_manager() = 0;
103 virtual PrefService* local_state() = 0; 102 virtual PrefService* local_state() = 0;
104 virtual DevToolsManager* devtools_manager() = 0;
105 virtual SidebarManager* sidebar_manager() = 0; 103 virtual SidebarManager* sidebar_manager() = 0;
106 virtual ui::Clipboard* clipboard() = 0; 104 virtual ui::Clipboard* clipboard() = 0;
107 virtual net::URLRequestContextGetter* system_request_context() = 0; 105 virtual net::URLRequestContextGetter* system_request_context() = 0;
108 106
109 #if defined(OS_CHROMEOS) 107 #if defined(OS_CHROMEOS)
110 // Returns the out-of-memory priority manager. 108 // Returns the out-of-memory priority manager.
111 virtual browser::OomPriorityManager* oom_priority_manager() = 0; 109 virtual browser::OomPriorityManager* oom_priority_manager() = 0;
112 #endif // defined(OS_CHROMEOS) 110 #endif // defined(OS_CHROMEOS)
113 111
114 virtual ExtensionEventRouterForwarder* 112 virtual ExtensionEventRouterForwarder*
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 230
233 virtual CRLSetFetcher* crl_set_fetcher() = 0; 231 virtual CRLSetFetcher* crl_set_fetcher() = 0;
234 232
235 private: 233 private:
236 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); 234 DISALLOW_COPY_AND_ASSIGN(BrowserProcess);
237 }; 235 };
238 236
239 extern BrowserProcess* g_browser_process; 237 extern BrowserProcess* g_browser_process;
240 238
241 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ 239 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/browser_process_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698