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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 virtual void InitDevToolsLegacyProtocolHandler(int port); | 95 virtual void InitDevToolsLegacyProtocolHandler(int port); |
96 virtual unsigned int AddRefModule(); | 96 virtual unsigned int AddRefModule(); |
97 virtual unsigned int ReleaseModule(); | 97 virtual unsigned int ReleaseModule(); |
98 virtual bool IsShuttingDown(); | 98 virtual bool IsShuttingDown(); |
99 virtual printing::PrintJobManager* print_job_manager(); | 99 virtual printing::PrintJobManager* print_job_manager(); |
100 virtual printing::PrintPreviewTabController* print_preview_tab_controller(); | 100 virtual printing::PrintPreviewTabController* print_preview_tab_controller(); |
101 virtual printing::BackgroundPrintingManager* background_printing_manager(); | 101 virtual printing::BackgroundPrintingManager* background_printing_manager(); |
102 virtual const std::string& GetApplicationLocale(); | 102 virtual const std::string& GetApplicationLocale(); |
103 virtual void SetApplicationLocale(const std::string& app_locale); | 103 virtual void SetApplicationLocale(const std::string& app_locale); |
104 virtual DownloadStatusUpdater* download_status_updater(); | 104 virtual DownloadStatusUpdater* download_status_updater(); |
| 105 virtual DownloadRequestLimiter* download_request_limiter(); |
105 virtual bool plugin_finder_disabled() const; | 106 virtual bool plugin_finder_disabled() const; |
106 virtual void CheckForInspectorFiles() {} | 107 virtual void CheckForInspectorFiles() {} |
107 | 108 |
108 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) | 109 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) |
109 virtual void StartAutoupdateTimer() {} | 110 virtual void StartAutoupdateTimer() {} |
110 #endif | 111 #endif |
111 | 112 |
112 virtual ChromeNetLog* net_log(); | 113 virtual ChromeNetLog* net_log(); |
113 virtual prerender::PrerenderTracker* prerender_tracker(); | 114 virtual prerender::PrerenderTracker* prerender_tracker(); |
114 | 115 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 | 160 |
160 private: | 161 private: |
161 // TODO(phajdan.jr): Temporary, for http://crbug.com/61062. | 162 // TODO(phajdan.jr): Temporary, for http://crbug.com/61062. |
162 // After the transition is over, we should just stack-allocate it. | 163 // After the transition is over, we should just stack-allocate it. |
163 scoped_ptr<TestingBrowserProcess> browser_process_; | 164 scoped_ptr<TestingBrowserProcess> browser_process_; |
164 | 165 |
165 DISALLOW_COPY_AND_ASSIGN(ScopedTestingBrowserProcess); | 166 DISALLOW_COPY_AND_ASSIGN(ScopedTestingBrowserProcess); |
166 }; | 167 }; |
167 | 168 |
168 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ | 169 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ |
OLD | NEW |