| 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_TESTING_BROWSER_PROCESS_H_ | 10 #ifndef CHROME_TEST_TESTING_BROWSER_PROCESS_H_ |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 virtual printing::PrintPreviewTabController* print_preview_tab_controller(); | 104 virtual printing::PrintPreviewTabController* print_preview_tab_controller(); |
| 105 | 105 |
| 106 virtual const std::string& GetApplicationLocale(); | 106 virtual const std::string& GetApplicationLocale(); |
| 107 | 107 |
| 108 virtual void SetApplicationLocale(const std::string& app_locale); | 108 virtual void SetApplicationLocale(const std::string& app_locale); |
| 109 | 109 |
| 110 virtual DownloadStatusUpdater* download_status_updater(); | 110 virtual DownloadStatusUpdater* download_status_updater(); |
| 111 | 111 |
| 112 virtual base::WaitableEvent* shutdown_event(); | 112 virtual base::WaitableEvent* shutdown_event(); |
| 113 | 113 |
| 114 virtual bool plugin_finder_disabled() const; |
| 115 |
| 114 virtual void CheckForInspectorFiles() {} | 116 virtual void CheckForInspectorFiles() {} |
| 115 | 117 |
| 116 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) | 118 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) |
| 117 virtual void StartAutoupdateTimer() {} | 119 virtual void StartAutoupdateTimer() {} |
| 118 #endif | 120 #endif |
| 119 | 121 |
| 120 virtual bool have_inspector_files() const; | 122 virtual bool have_inspector_files() const; |
| 121 | 123 |
| 122 virtual ChromeNetLog* net_log(); | 124 virtual ChromeNetLog* net_log(); |
| 123 | 125 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 | 158 |
| 157 private: | 159 private: |
| 158 // TODO(phajdan.jr): Temporary, for http://crbug.com/61062. | 160 // TODO(phajdan.jr): Temporary, for http://crbug.com/61062. |
| 159 // After the transition is over, we should just stack-allocate it. | 161 // After the transition is over, we should just stack-allocate it. |
| 160 scoped_ptr<TestingBrowserProcess> browser_process_; | 162 scoped_ptr<TestingBrowserProcess> browser_process_; |
| 161 | 163 |
| 162 DISALLOW_COPY_AND_ASSIGN(ScopedTestingBrowserProcess); | 164 DISALLOW_COPY_AND_ASSIGN(ScopedTestingBrowserProcess); |
| 163 }; | 165 }; |
| 164 | 166 |
| 165 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_ | 167 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_ |
| OLD | NEW |