| 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 // 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_ |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 namespace ui { | 41 namespace ui { |
| 42 class Clipboard; | 42 class Clipboard; |
| 43 } | 43 } |
| 44 | 44 |
| 45 class TestingBrowserProcess : public BrowserProcess { | 45 class TestingBrowserProcess : public BrowserProcess { |
| 46 public: | 46 public: |
| 47 TestingBrowserProcess(); | 47 TestingBrowserProcess(); |
| 48 virtual ~TestingBrowserProcess(); | 48 virtual ~TestingBrowserProcess(); |
| 49 | 49 |
| 50 virtual void ResourceDispatcherHostCreated() OVERRIDE; |
| 50 virtual void EndSession() OVERRIDE; | 51 virtual void EndSession() OVERRIDE; |
| 51 virtual ResourceDispatcherHost* resource_dispatcher_host() OVERRIDE; | |
| 52 virtual MetricsService* metrics_service() OVERRIDE; | 52 virtual MetricsService* metrics_service() OVERRIDE; |
| 53 virtual IOThread* io_thread() OVERRIDE; | 53 virtual IOThread* io_thread() OVERRIDE; |
| 54 virtual WatchDogThread* watchdog_thread() OVERRIDE; | 54 virtual WatchDogThread* watchdog_thread() OVERRIDE; |
| 55 virtual ProfileManager* profile_manager() OVERRIDE; | 55 virtual ProfileManager* profile_manager() OVERRIDE; |
| 56 virtual PrefService* local_state() OVERRIDE; | 56 virtual PrefService* local_state() OVERRIDE; |
| 57 virtual policy::BrowserPolicyConnector* browser_policy_connector() OVERRIDE; | 57 virtual policy::BrowserPolicyConnector* browser_policy_connector() OVERRIDE; |
| 58 virtual IconManager* icon_manager() OVERRIDE; | 58 virtual IconManager* icon_manager() OVERRIDE; |
| 59 virtual ThumbnailGenerator* GetThumbnailGenerator() OVERRIDE; | 59 virtual ThumbnailGenerator* GetThumbnailGenerator() OVERRIDE; |
| 60 virtual SidebarManager* sidebar_manager() OVERRIDE; | 60 virtual SidebarManager* sidebar_manager() OVERRIDE; |
| 61 virtual TabCloseableStateWatcher* tab_closeable_state_watcher() OVERRIDE; | 61 virtual TabCloseableStateWatcher* tab_closeable_state_watcher() OVERRIDE; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_; | 130 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_; |
| 131 scoped_refptr<printing::PrintPreviewTabController> | 131 scoped_refptr<printing::PrintPreviewTabController> |
| 132 print_preview_tab_controller_; | 132 print_preview_tab_controller_; |
| 133 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_; | 133 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_; |
| 134 IOThread* io_thread_; | 134 IOThread* io_thread_; |
| 135 | 135 |
| 136 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); | 136 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); |
| 137 }; | 137 }; |
| 138 | 138 |
| 139 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ | 139 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ |
| OLD | NEW |