Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(174)

Side by Side Diff: chrome/test/base/testing_browser_process.h

Issue 1420053005: Move code in components/safe_browsing_db and chrome/browser/s_b/ under the safe_browsing namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@02_components_move
Patch Set: Remove '// namespace safe_browsing' for a small fwd decl block. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 web_resource::PromoResourceService* promo_resource_service() override; 69 web_resource::PromoResourceService* promo_resource_service() override;
70 policy::BrowserPolicyConnector* browser_policy_connector() override; 70 policy::BrowserPolicyConnector* browser_policy_connector() override;
71 policy::PolicyService* policy_service() override; 71 policy::PolicyService* policy_service() override;
72 IconManager* icon_manager() override; 72 IconManager* icon_manager() override;
73 GLStringManager* gl_string_manager() override; 73 GLStringManager* gl_string_manager() override;
74 GpuModeManager* gpu_mode_manager() override; 74 GpuModeManager* gpu_mode_manager() override;
75 BackgroundModeManager* background_mode_manager() override; 75 BackgroundModeManager* background_mode_manager() override;
76 void set_background_mode_manager_for_test( 76 void set_background_mode_manager_for_test(
77 scoped_ptr<BackgroundModeManager> manager) override; 77 scoped_ptr<BackgroundModeManager> manager) override;
78 StatusTray* status_tray() override; 78 StatusTray* status_tray() override;
79 SafeBrowsingService* safe_browsing_service() override; 79 safe_browsing::SafeBrowsingService* safe_browsing_service() override;
80 safe_browsing::ClientSideDetectionService* safe_browsing_detection_service() 80 safe_browsing::ClientSideDetectionService* safe_browsing_detection_service()
81 override; 81 override;
82 net::URLRequestContextGetter* system_request_context() override; 82 net::URLRequestContextGetter* system_request_context() override;
83 BrowserProcessPlatformPart* platform_part() override; 83 BrowserProcessPlatformPart* platform_part() override;
84 84
85 extensions::EventRouterForwarder* extension_event_router_forwarder() override; 85 extensions::EventRouterForwarder* extension_event_router_forwarder() override;
86 NotificationUIManager* notification_ui_manager() override; 86 NotificationUIManager* notification_ui_manager() override;
87 message_center::MessageCenter* message_center() override; 87 message_center::MessageCenter* message_center() override;
88 IntranetRedirectDetector* intranet_redirect_detector() override; 88 IntranetRedirectDetector* intranet_redirect_detector() override;
89 void CreateDevToolsHttpProtocolHandler( 89 void CreateDevToolsHttpProtocolHandler(
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 gcm::GCMDriver* gcm_driver() override; 125 gcm::GCMDriver* gcm_driver() override;
126 memory::TabManager* GetTabManager() override; 126 memory::TabManager* GetTabManager() override;
127 ShellIntegration::DefaultWebClientState CachedDefaultWebClientState() 127 ShellIntegration::DefaultWebClientState CachedDefaultWebClientState()
128 override; 128 override;
129 129
130 // Set the local state for tests. Consumer is responsible for cleaning it up 130 // Set the local state for tests. Consumer is responsible for cleaning it up
131 // afterwards (using ScopedTestingLocalState, for example). 131 // afterwards (using ScopedTestingLocalState, for example).
132 void SetLocalState(PrefService* local_state); 132 void SetLocalState(PrefService* local_state);
133 void SetProfileManager(ProfileManager* profile_manager); 133 void SetProfileManager(ProfileManager* profile_manager);
134 void SetIOThread(IOThread* io_thread); 134 void SetIOThread(IOThread* io_thread);
135 void SetSafeBrowsingService(SafeBrowsingService* sb_service); 135 void SetSafeBrowsingService(safe_browsing::SafeBrowsingService* sb_service);
136 void SetSystemRequestContext(net::URLRequestContextGetter* context_getter); 136 void SetSystemRequestContext(net::URLRequestContextGetter* context_getter);
137 void SetNotificationUIManager( 137 void SetNotificationUIManager(
138 scoped_ptr<NotificationUIManager> notification_ui_manager); 138 scoped_ptr<NotificationUIManager> notification_ui_manager);
139 void ShutdownBrowserPolicyConnector(); 139 void ShutdownBrowserPolicyConnector();
140 140
141 private: 141 private:
142 // See CreateInstance() and DestoryInstance() above. 142 // See CreateInstance() and DestoryInstance() above.
143 TestingBrowserProcess(); 143 TestingBrowserProcess();
144 ~TestingBrowserProcess() override; 144 ~TestingBrowserProcess() override;
145 145
(...skipping 15 matching lines...) Expand all
161 #if defined(ENABLE_PRINTING) 161 #if defined(ENABLE_PRINTING)
162 scoped_ptr<printing::PrintJobManager> print_job_manager_; 162 scoped_ptr<printing::PrintJobManager> print_job_manager_;
163 #endif 163 #endif
164 164
165 #if defined(ENABLE_PRINT_PREVIEW) 165 #if defined(ENABLE_PRINT_PREVIEW)
166 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_; 166 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_;
167 scoped_refptr<printing::PrintPreviewDialogController> 167 scoped_refptr<printing::PrintPreviewDialogController>
168 print_preview_dialog_controller_; 168 print_preview_dialog_controller_;
169 #endif 169 #endif
170 170
171 scoped_refptr<SafeBrowsingService> sb_service_; 171 scoped_refptr<safe_browsing::SafeBrowsingService> sb_service_;
172 #endif // !defined(OS_IOS) 172 #endif // !defined(OS_IOS)
173 173
174 scoped_ptr<network_time::NetworkTimeTracker> network_time_tracker_; 174 scoped_ptr<network_time::NetworkTimeTracker> network_time_tracker_;
175 175
176 // The following objects are not owned by TestingBrowserProcess: 176 // The following objects are not owned by TestingBrowserProcess:
177 PrefService* local_state_; 177 PrefService* local_state_;
178 IOThread* io_thread_; 178 IOThread* io_thread_;
179 net::URLRequestContextGetter* system_request_context_; 179 net::URLRequestContextGetter* system_request_context_;
180 180
181 scoped_ptr<BrowserProcessPlatformPart> platform_part_; 181 scoped_ptr<BrowserProcessPlatformPart> platform_part_;
(...skipping 24 matching lines...) Expand all
206 class TestingBrowserProcessInitializer { 206 class TestingBrowserProcessInitializer {
207 public: 207 public:
208 TestingBrowserProcessInitializer(); 208 TestingBrowserProcessInitializer();
209 ~TestingBrowserProcessInitializer(); 209 ~TestingBrowserProcessInitializer();
210 210
211 private: 211 private:
212 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcessInitializer); 212 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcessInitializer);
213 }; 213 };
214 214
215 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ 215 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/interstitials/interstitial_ui.cc ('k') | chrome/test/base/testing_browser_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698