| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // An implementation of BrowserProcess for unit tests that fails for most | 5 // An implementation of BrowserProcess for unit tests that fails for most |
| 6 // services. By preventing creation of services, we reduce dependencies and | 6 // services. By preventing creation of services, we reduce dependencies and |
| 7 // keep the profile clean. Clients of this class must handle the NULL return | 7 // keep the profile clean. Clients of this class must handle the NULL return |
| 8 // value, however. | 8 // value, however. |
| 9 | 9 |
| 10 #ifndef CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ | 10 #ifndef CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ |
| 11 #define CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ | 11 #define CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ |
| 12 | 12 |
| 13 #include <stdint.h> | 13 #include <stdint.h> |
| 14 | 14 |
| 15 #include <memory> | 15 #include <memory> |
| 16 #include <string> | 16 #include <string> |
| 17 | 17 |
| 18 #include "base/macros.h" | 18 #include "base/macros.h" |
| 19 #include "base/memory/ref_counted.h" | 19 #include "base/memory/ref_counted.h" |
| 20 #include "build/build_config.h" | 20 #include "build/build_config.h" |
| 21 #include "chrome/browser/browser_process.h" | 21 #include "chrome/browser/browser_process.h" |
| 22 #include "chrome/browser/browser_process_platform_part.h" | 22 #include "chrome/browser/browser_process_platform_part.h" |
| 23 | 23 |
| 24 class BackgroundModeManager; | 24 class BackgroundModeManager; |
| 25 class CRLSetFetcher; | 25 class CRLSetFetcher; |
| 26 class IOThread; | 26 class IOThread; |
| 27 class MHTMLGenerationManager; | 27 class MHTMLGenerationManager; |
| 28 class NotificationBridge; |
| 28 class NotificationUIManager; | 29 class NotificationUIManager; |
| 29 class PrefService; | 30 class PrefService; |
| 30 class WatchDogThread; | 31 class WatchDogThread; |
| 31 | 32 |
| 32 namespace content { | 33 namespace content { |
| 33 class NotificationService; | 34 class NotificationService; |
| 34 } | 35 } |
| 35 | 36 |
| 36 namespace extensions { | 37 namespace extensions { |
| 37 class ExtensionsBrowserClient; | 38 class ExtensionsBrowserClient; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 std::unique_ptr<BackgroundModeManager> manager) override; | 81 std::unique_ptr<BackgroundModeManager> manager) override; |
| 81 StatusTray* status_tray() override; | 82 StatusTray* status_tray() override; |
| 82 safe_browsing::SafeBrowsingService* safe_browsing_service() override; | 83 safe_browsing::SafeBrowsingService* safe_browsing_service() override; |
| 83 safe_browsing::ClientSideDetectionService* safe_browsing_detection_service() | 84 safe_browsing::ClientSideDetectionService* safe_browsing_detection_service() |
| 84 override; | 85 override; |
| 85 net::URLRequestContextGetter* system_request_context() override; | 86 net::URLRequestContextGetter* system_request_context() override; |
| 86 BrowserProcessPlatformPart* platform_part() override; | 87 BrowserProcessPlatformPart* platform_part() override; |
| 87 | 88 |
| 88 extensions::EventRouterForwarder* extension_event_router_forwarder() override; | 89 extensions::EventRouterForwarder* extension_event_router_forwarder() override; |
| 89 NotificationUIManager* notification_ui_manager() override; | 90 NotificationUIManager* notification_ui_manager() override; |
| 91 NotificationBridge* notification_bridge() override; |
| 90 message_center::MessageCenter* message_center() override; | 92 message_center::MessageCenter* message_center() override; |
| 91 IntranetRedirectDetector* intranet_redirect_detector() override; | 93 IntranetRedirectDetector* intranet_redirect_detector() override; |
| 92 void CreateDevToolsHttpProtocolHandler(const std::string& ip, | 94 void CreateDevToolsHttpProtocolHandler(const std::string& ip, |
| 93 uint16_t port) override; | 95 uint16_t port) override; |
| 94 void CreateDevToolsAutoOpener() override; | 96 void CreateDevToolsAutoOpener() override; |
| 95 bool IsShuttingDown() override; | 97 bool IsShuttingDown() override; |
| 96 printing::PrintJobManager* print_job_manager() override; | 98 printing::PrintJobManager* print_job_manager() override; |
| 97 printing::PrintPreviewDialogController* print_preview_dialog_controller() | 99 printing::PrintPreviewDialogController* print_preview_dialog_controller() |
| 98 override; | 100 override; |
| 99 printing::BackgroundPrintingManager* background_printing_manager() override; | 101 printing::BackgroundPrintingManager* background_printing_manager() override; |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 class TestingBrowserProcessInitializer { | 204 class TestingBrowserProcessInitializer { |
| 203 public: | 205 public: |
| 204 TestingBrowserProcessInitializer(); | 206 TestingBrowserProcessInitializer(); |
| 205 ~TestingBrowserProcessInitializer(); | 207 ~TestingBrowserProcessInitializer(); |
| 206 | 208 |
| 207 private: | 209 private: |
| 208 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcessInitializer); | 210 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcessInitializer); |
| 209 }; | 211 }; |
| 210 | 212 |
| 211 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ | 213 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ |
| OLD | NEW |