| OLD | NEW |
| 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 // When each service is created, we set a flag indicating this. At this point, | 5 // When each service is created, we set a flag indicating this. At this point, |
| 6 // the service initialization could fail or succeed. This allows us to remember | 6 // the service initialization could fail or succeed. This allows us to remember |
| 7 // if we tried to create a service, and not try creating it over and over if | 7 // if we tried to create a service, and not try creating it over and over if |
| 8 // the creation failed. | 8 // the creation failed. |
| 9 | 9 |
| 10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
| 11 #define CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 11 #define CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
| 12 #pragma once | 12 #pragma once |
| 13 | 13 |
| 14 #include <string> | 14 #include <string> |
| 15 | 15 |
| 16 #include "base/basictypes.h" | 16 #include "base/basictypes.h" |
| 17 #include "base/message_loop.h" | 17 #include "base/message_loop.h" |
| 18 #include "base/scoped_ptr.h" |
| 18 #include "base/threading/non_thread_safe.h" | 19 #include "base/threading/non_thread_safe.h" |
| 19 #include "base/timer.h" | 20 #include "base/timer.h" |
| 20 #include "base/scoped_ptr.h" | |
| 21 #include "chrome/browser/browser_process.h" | 21 #include "chrome/browser/browser_process.h" |
| 22 #include "chrome/browser/download/download_status_updater.h" | 22 #include "chrome/browser/download/download_status_updater.h" |
| 23 #include "chrome/browser/prefs/pref_change_registrar.h" | 23 #include "chrome/browser/prefs/pref_change_registrar.h" |
| 24 #include "chrome/browser/tab_contents/thumbnail_generator.h" | 24 #include "chrome/browser/tab_contents/thumbnail_generator.h" |
| 25 #include "chrome/common/notification_observer.h" | 25 #include "chrome/common/notification_observer.h" |
| 26 #include "chrome/common/notification_registrar.h" | 26 #include "chrome/common/notification_registrar.h" |
| 27 #include "ipc/ipc_message.h" | 27 #include "ipc/ipc_message.h" |
| 28 | 28 |
| 29 class ChromeNetLog; | 29 class ChromeNetLog; |
| 30 class CommandLine; | 30 class CommandLine; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 55 virtual base::Thread* cache_thread(); | 55 virtual base::Thread* cache_thread(); |
| 56 #if defined(USE_X11) | 56 #if defined(USE_X11) |
| 57 virtual base::Thread* background_x11_thread(); | 57 virtual base::Thread* background_x11_thread(); |
| 58 #endif | 58 #endif |
| 59 virtual ProfileManager* profile_manager(); | 59 virtual ProfileManager* profile_manager(); |
| 60 virtual PrefService* local_state(); | 60 virtual PrefService* local_state(); |
| 61 virtual DevToolsManager* devtools_manager(); | 61 virtual DevToolsManager* devtools_manager(); |
| 62 virtual SidebarManager* sidebar_manager(); | 62 virtual SidebarManager* sidebar_manager(); |
| 63 virtual ui::Clipboard* clipboard(); | 63 virtual ui::Clipboard* clipboard(); |
| 64 virtual NotificationUIManager* notification_ui_manager(); | 64 virtual NotificationUIManager* notification_ui_manager(); |
| 65 virtual policy::ConfigurationPolicyProviderKeeper* | 65 virtual policy::BrowserPolicyConnector* browser_policy_connector(); |
| 66 configuration_policy_provider_keeper(); | |
| 67 virtual IconManager* icon_manager(); | 66 virtual IconManager* icon_manager(); |
| 68 virtual ThumbnailGenerator* GetThumbnailGenerator(); | 67 virtual ThumbnailGenerator* GetThumbnailGenerator(); |
| 69 virtual AutomationProviderList* InitAutomationProviderList(); | 68 virtual AutomationProviderList* InitAutomationProviderList(); |
| 70 virtual void InitDevToolsHttpProtocolHandler( | 69 virtual void InitDevToolsHttpProtocolHandler( |
| 71 const std::string& ip, | 70 const std::string& ip, |
| 72 int port, | 71 int port, |
| 73 const std::string& frontend_url); | 72 const std::string& frontend_url); |
| 74 virtual void InitDevToolsLegacyProtocolHandler(int port); | 73 virtual void InitDevToolsLegacyProtocolHandler(int port); |
| 75 virtual unsigned int AddRefModule(); | 74 virtual unsigned int AddRefModule(); |
| 76 virtual unsigned int ReleaseModule(); | 75 virtual unsigned int ReleaseModule(); |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 scoped_refptr<DevToolsHttpProtocolHandler> devtools_http_handler_; | 178 scoped_refptr<DevToolsHttpProtocolHandler> devtools_http_handler_; |
| 180 | 179 |
| 181 scoped_refptr<DevToolsProtocolHandler> devtools_legacy_handler_; | 180 scoped_refptr<DevToolsProtocolHandler> devtools_legacy_handler_; |
| 182 | 181 |
| 183 bool created_devtools_manager_; | 182 bool created_devtools_manager_; |
| 184 scoped_refptr<DevToolsManager> devtools_manager_; | 183 scoped_refptr<DevToolsManager> devtools_manager_; |
| 185 | 184 |
| 186 bool created_sidebar_manager_; | 185 bool created_sidebar_manager_; |
| 187 scoped_refptr<SidebarManager> sidebar_manager_; | 186 scoped_refptr<SidebarManager> sidebar_manager_; |
| 188 | 187 |
| 189 bool created_configuration_policy_provider_keeper_; | 188 bool created_browser_policy_connector_; |
| 190 scoped_ptr<policy::ConfigurationPolicyProviderKeeper> | 189 scoped_ptr<policy::BrowserPolicyConnector> browser_policy_connector_; |
| 191 configuration_policy_provider_keeper_; | |
| 192 | 190 |
| 193 scoped_refptr<printing::PrintPreviewTabController> | 191 scoped_refptr<printing::PrintPreviewTabController> |
| 194 print_preview_tab_controller_; | 192 print_preview_tab_controller_; |
| 195 | 193 |
| 196 scoped_ptr<ui::Clipboard> clipboard_; | 194 scoped_ptr<ui::Clipboard> clipboard_; |
| 197 | 195 |
| 198 // Manager for desktop notification UI. | 196 // Manager for desktop notification UI. |
| 199 bool created_notification_ui_manager_; | 197 bool created_notification_ui_manager_; |
| 200 scoped_ptr<NotificationUIManager> notification_ui_manager_; | 198 scoped_ptr<NotificationUIManager> notification_ui_manager_; |
| 201 | 199 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 // restarted, and if that's the case, restarts the browser. | 256 // restarted, and if that's the case, restarts the browser. |
| 259 void OnAutoupdateTimer(); | 257 void OnAutoupdateTimer(); |
| 260 bool CanAutorestartForUpdate() const; | 258 bool CanAutorestartForUpdate() const; |
| 261 void RestartPersistentInstance(); | 259 void RestartPersistentInstance(); |
| 262 #endif // defined(OS_WIN) || defined(OS_LINUX) | 260 #endif // defined(OS_WIN) || defined(OS_LINUX) |
| 263 | 261 |
| 264 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); | 262 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); |
| 265 }; | 263 }; |
| 266 | 264 |
| 267 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ | 265 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ |
| OLD | NEW |