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_ |
(...skipping 23 matching lines...) Expand all Loading... |
34 class TabCloseableStateWatcher; | 34 class TabCloseableStateWatcher; |
35 class ThumbnailGenerator; | 35 class ThumbnailGenerator; |
36 | 36 |
37 namespace base { | 37 namespace base { |
38 class Thread; | 38 class Thread; |
39 class WaitableEvent; | 39 class WaitableEvent; |
40 } | 40 } |
41 | 41 |
42 namespace printing { | 42 namespace printing { |
43 class PrintJobManager; | 43 class PrintJobManager; |
| 44 class PrintPreviewTabController; |
44 } | 45 } |
45 | 46 |
46 class IOThread; | 47 class IOThread; |
47 | 48 |
48 // NOT THREAD SAFE, call only from the main thread. | 49 // NOT THREAD SAFE, call only from the main thread. |
49 // These functions shouldn't return NULL unless otherwise noted. | 50 // These functions shouldn't return NULL unless otherwise noted. |
50 class BrowserProcess { | 51 class BrowserProcess { |
51 public: | 52 public: |
52 BrowserProcess(); | 53 BrowserProcess(); |
53 virtual ~BrowserProcess(); | 54 virtual ~BrowserProcess(); |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 virtual AutomationProviderList* InitAutomationProviderList() = 0; | 110 virtual AutomationProviderList* InitAutomationProviderList() = 0; |
110 | 111 |
111 virtual void InitDebuggerWrapper(int port, bool useHttp) = 0; | 112 virtual void InitDebuggerWrapper(int port, bool useHttp) = 0; |
112 | 113 |
113 virtual unsigned int AddRefModule() = 0; | 114 virtual unsigned int AddRefModule() = 0; |
114 virtual unsigned int ReleaseModule() = 0; | 115 virtual unsigned int ReleaseModule() = 0; |
115 | 116 |
116 virtual bool IsShuttingDown() = 0; | 117 virtual bool IsShuttingDown() = 0; |
117 | 118 |
118 virtual printing::PrintJobManager* print_job_manager() = 0; | 119 virtual printing::PrintJobManager* print_job_manager() = 0; |
| 120 virtual printing::PrintPreviewTabController* |
| 121 print_preview_tab_controller() = 0; |
119 | 122 |
120 virtual GoogleURLTracker* google_url_tracker() = 0; | 123 virtual GoogleURLTracker* google_url_tracker() = 0; |
121 virtual IntranetRedirectDetector* intranet_redirect_detector() = 0; | 124 virtual IntranetRedirectDetector* intranet_redirect_detector() = 0; |
122 | 125 |
123 // Returns the locale used by the application. | 126 // Returns the locale used by the application. |
124 virtual const std::string& GetApplicationLocale() = 0; | 127 virtual const std::string& GetApplicationLocale() = 0; |
125 virtual void SetApplicationLocale(const std::string& locale) = 0; | 128 virtual void SetApplicationLocale(const std::string& locale) = 0; |
126 | 129 |
127 DownloadRequestLimiter* download_request_limiter(); | 130 DownloadRequestLimiter* download_request_limiter(); |
128 virtual DownloadStatusUpdater* download_status_updater() = 0; | 131 virtual DownloadStatusUpdater* download_status_updater() = 0; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 private: | 171 private: |
169 // User-data-dir based profiles. | 172 // User-data-dir based profiles. |
170 std::vector<std::wstring> user_data_dir_profiles_; | 173 std::vector<std::wstring> user_data_dir_profiles_; |
171 | 174 |
172 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); | 175 DISALLOW_COPY_AND_ASSIGN(BrowserProcess); |
173 }; | 176 }; |
174 | 177 |
175 extern BrowserProcess* g_browser_process; | 178 extern BrowserProcess* g_browser_process; |
176 | 179 |
177 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ | 180 #endif // CHROME_BROWSER_BROWSER_PROCESS_H_ |
OLD | NEW |