OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 interfaces is for managing the global services of the application. Each | 5 // This interfaces 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 | 12 |
13 #include <string> | 13 #include <string> |
| 14 #include <vector> |
14 | 15 |
15 #include "base/basictypes.h" | 16 #include "base/basictypes.h" |
16 #include "base/message_loop.h" | 17 #include "base/message_loop.h" |
17 #if defined(OS_WIN) | 18 #if defined(OS_WIN) |
18 #include "chrome/browser/resource_dispatcher_host.h" | 19 #include "chrome/browser/resource_dispatcher_host.h" |
19 #endif // defined(OS_WIN) | 20 #endif // defined(OS_WIN) |
20 | 21 |
21 class AutomationProviderList; | 22 class AutomationProviderList; |
22 class ClipboardService; | 23 class ClipboardService; |
23 class DownloadRequestManager; | 24 class DownloadRequestManager; |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 #if defined(OS_WIN) | 128 #if defined(OS_WIN) |
128 DownloadRequestManager* download_request_manager() { | 129 DownloadRequestManager* download_request_manager() { |
129 ResourceDispatcherHost* rdh = resource_dispatcher_host(); | 130 ResourceDispatcherHost* rdh = resource_dispatcher_host(); |
130 return rdh ? rdh->download_request_manager() : NULL; | 131 return rdh ? rdh->download_request_manager() : NULL; |
131 } | 132 } |
132 | 133 |
133 // Returns an event that is signaled when the browser shutdown. | 134 // Returns an event that is signaled when the browser shutdown. |
134 virtual HANDLE shutdown_event() = 0; | 135 virtual HANDLE shutdown_event() = 0; |
135 #endif | 136 #endif |
136 | 137 |
| 138 // Returns a reference to the user-data-dir based profiles vector. |
| 139 std::vector<std::wstring>& user_data_dir_profiles() { |
| 140 return user_data_dir_profiles_; |
| 141 } |
| 142 |
137 private: | 143 private: |
| 144 // User-data-dir based profiles. |
| 145 std::vector<std::wstring> user_data_dir_profiles_; |
| 146 |
138 DISALLOW_EVIL_CONSTRUCTORS(BrowserProcess); | 147 DISALLOW_EVIL_CONSTRUCTORS(BrowserProcess); |
139 }; | 148 }; |
140 | 149 |
141 extern BrowserProcess* g_browser_process; | 150 extern BrowserProcess* g_browser_process; |
142 | 151 |
143 #endif // CHROME_BROWSER_BROWSER_PROCESS_H__ | 152 #endif // CHROME_BROWSER_BROWSER_PROCESS_H__ |
144 | 153 |
OLD | NEW |