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

Side by Side Diff: chrome/browser/browser_process_impl.h

Issue 16703025: [StorageMonitor] Move StorageMonitor ownership to BrowserProcessImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 7 years, 5 months 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 // When each service is created, we set a flag indicating this. At this point, 5 // When each service is created, we set a flag indicating this. At this point,
6 // the service initialization could fail or succeed. This allows us to remember 6 // the service initialization could fail or succeed. This allows us to remember
7 // if we tried to create a service, and not try creating it over and over if 7 // if we tried to create a service, and not try creating it over and over if
8 // the creation failed. 8 // the creation failed.
9 9
10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ 10 #ifndef CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) 120 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
121 virtual void StartAutoupdateTimer() OVERRIDE; 121 virtual void StartAutoupdateTimer() OVERRIDE;
122 #endif 122 #endif
123 123
124 virtual ChromeNetLog* net_log() OVERRIDE; 124 virtual ChromeNetLog* net_log() OVERRIDE;
125 virtual prerender::PrerenderTracker* prerender_tracker() OVERRIDE; 125 virtual prerender::PrerenderTracker* prerender_tracker() OVERRIDE;
126 virtual ComponentUpdateService* component_updater() OVERRIDE; 126 virtual ComponentUpdateService* component_updater() OVERRIDE;
127 virtual CRLSetFetcher* crl_set_fetcher() OVERRIDE; 127 virtual CRLSetFetcher* crl_set_fetcher() OVERRIDE;
128 virtual PnaclComponentInstaller* pnacl_component_installer() OVERRIDE; 128 virtual PnaclComponentInstaller* pnacl_component_installer() OVERRIDE;
129 virtual BookmarkPromptController* bookmark_prompt_controller() OVERRIDE; 129 virtual BookmarkPromptController* bookmark_prompt_controller() OVERRIDE;
130 virtual chrome::StorageMonitor* storage_monitor() OVERRIDE;
131 void set_storage_monitor_for_test(scoped_ptr<chrome::StorageMonitor> monitor);
130 virtual chrome::MediaFileSystemRegistry* 132 virtual chrome::MediaFileSystemRegistry*
131 media_file_system_registry() OVERRIDE; 133 media_file_system_registry() OVERRIDE;
132 virtual bool created_local_state() const OVERRIDE; 134 virtual bool created_local_state() const OVERRIDE;
133 #if defined(ENABLE_WEBRTC) 135 #if defined(ENABLE_WEBRTC)
134 virtual WebRtcLogUploader* webrtc_log_uploader() OVERRIDE; 136 virtual WebRtcLogUploader* webrtc_log_uploader() OVERRIDE;
135 #endif 137 #endif
136 138
137 static void RegisterPrefs(PrefRegistrySimple* registry); 139 static void RegisterPrefs(PrefRegistrySimple* registry);
138 140
139 private: 141 private:
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 scoped_ptr<GpuModeManager> gpu_mode_manager_; 191 scoped_ptr<GpuModeManager> gpu_mode_manager_;
190 192
191 scoped_refptr<extensions::EventRouterForwarder> 193 scoped_refptr<extensions::EventRouterForwarder>
192 extension_event_router_forwarder_; 194 extension_event_router_forwarder_;
193 195
194 #if !defined(OS_ANDROID) 196 #if !defined(OS_ANDROID)
195 scoped_ptr<RemoteDebuggingServer> remote_debugging_server_; 197 scoped_ptr<RemoteDebuggingServer> remote_debugging_server_;
196 198
197 // Bookmark prompt controller displays the prompt for frequently visited URL. 199 // Bookmark prompt controller displays the prompt for frequently visited URL.
198 scoped_ptr<BookmarkPromptController> bookmark_prompt_controller_; 200 scoped_ptr<BookmarkPromptController> bookmark_prompt_controller_;
201 #endif
202
203 #if !defined(OS_ANDROID) && !defined(OS_IOS)
sky 2013/07/15 17:45:37 Would it be clearer to have a feature define, eg:
Greg Billock 2013/07/15 20:00:18 That might be a good idea. We'll talk about doing
204 scoped_ptr<chrome::StorageMonitor> storage_monitor_;
199 205
200 scoped_ptr<chrome::MediaFileSystemRegistry> media_file_system_registry_; 206 scoped_ptr<chrome::MediaFileSystemRegistry> media_file_system_registry_;
201 #endif 207 #endif
202 208
203 scoped_refptr<printing::PrintPreviewDialogController> 209 scoped_refptr<printing::PrintPreviewDialogController>
204 print_preview_dialog_controller_; 210 print_preview_dialog_controller_;
205 211
206 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_; 212 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_;
207 213
208 scoped_ptr<chrome_variations::VariationsService> variations_service_; 214 scoped_ptr<chrome_variations::VariationsService> variations_service_;
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 305
300 #if defined(ENABLE_WEBRTC) 306 #if defined(ENABLE_WEBRTC)
301 // Lazily initialized. 307 // Lazily initialized.
302 scoped_ptr<WebRtcLogUploader> webrtc_log_uploader_; 308 scoped_ptr<WebRtcLogUploader> webrtc_log_uploader_;
303 #endif 309 #endif
304 310
305 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); 311 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl);
306 }; 312 };
307 313
308 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ 314 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698