OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "ipc/ipc_message.h" | 18 #include "ipc/ipc_message.h" |
19 | 19 |
20 class AutomationProviderList; | 20 class AutomationProviderList; |
21 class Clipboard; | 21 class Clipboard; |
22 class DevToolsManager; | 22 class DevToolsManager; |
23 class DownloadRequestLimiter; | 23 class DownloadRequestLimiter; |
24 class DownloadStatusUpdater; | 24 class DownloadStatusUpdater; |
25 class GoogleURLTracker; | 25 class GoogleURLTracker; |
| 26 class IconManager; |
26 class IntranetRedirectDetector; | 27 class IntranetRedirectDetector; |
27 class IconManager; | 28 class IOThread; |
28 class MetricsService; | 29 class MetricsService; |
29 class NotificationUIManager; | 30 class NotificationUIManager; |
30 class PrefService; | 31 class PrefService; |
31 class ProfileManager; | 32 class ProfileManager; |
32 class ResourceDispatcherHost; | 33 class ResourceDispatcherHost; |
33 class SidebarManager; | 34 class SidebarManager; |
34 class TabCloseableStateWatcher; | 35 class TabCloseableStateWatcher; |
35 class ThumbnailGenerator; | 36 class ThumbnailGenerator; |
36 | 37 |
37 namespace base { | 38 namespace base { |
38 class Thread; | 39 class Thread; |
39 class WaitableEvent; | 40 class WaitableEvent; |
40 } | 41 } |
41 | 42 |
42 namespace printing { | 43 namespace printing { |
43 class PrintJobManager; | 44 class PrintJobManager; |
44 class PrintPreviewTabController; | 45 class PrintPreviewTabController; |
45 } | 46 } |
46 | 47 |
47 class IOThread; | |
48 | |
49 // NOT THREAD SAFE, call only from the main thread. | 48 // NOT THREAD SAFE, call only from the main thread. |
50 // These functions shouldn't return NULL unless otherwise noted. | 49 // These functions shouldn't return NULL unless otherwise noted. |
51 class BrowserProcess { | 50 class BrowserProcess { |
52 public: | 51 public: |
53 BrowserProcess(); | 52 BrowserProcess(); |
54 virtual ~BrowserProcess(); | 53 virtual ~BrowserProcess(); |
55 | 54 |
56 // Invoked when the user is logging out/shutting down. When logging off we may | 55 // Invoked when the user is logging out/shutting down. When logging off we may |
57 // not have enough time to do a normal shutdown. This method is invoked prior | 56 // not have enough time to do a normal shutdown. This method is invoked prior |
58 // to normal shutdown and saves any state that must be saved before we are | 57 // to normal shutdown and saves any state that must be saved before we are |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 private: | 170 private: |
172 // User-data-dir based profiles. | 171 // User-data-dir based profiles. |
173 std::vector<std::wstring> user_data_dir_profiles_; | 172 std::vector<std::wstring> user_data_dir_profiles_; |
174 | 173 |
175 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 174 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
176 }; | 175 }; |
177 | 176 |
178 extern BrowserProcess* g_browser_process; | 177 extern BrowserProcess* g_browser_process; |
179 | 178 |
180 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 179 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
OLD | NEW |