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

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

Issue 10392007: Restoring the chrome variatioons client, with a fix for browser_test failures caused by it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: max retries in a const Created 8 years, 7 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 | Annotate | Revision Log
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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // BrowserProcess implementation. 61 // BrowserProcess implementation.
62 virtual void ResourceDispatcherHostCreated() OVERRIDE; 62 virtual void ResourceDispatcherHostCreated() OVERRIDE;
63 virtual void EndSession() OVERRIDE; 63 virtual void EndSession() OVERRIDE;
64 virtual MetricsService* metrics_service() OVERRIDE; 64 virtual MetricsService* metrics_service() OVERRIDE;
65 virtual IOThread* io_thread() OVERRIDE; 65 virtual IOThread* io_thread() OVERRIDE;
66 virtual WatchDogThread* watchdog_thread() OVERRIDE; 66 virtual WatchDogThread* watchdog_thread() OVERRIDE;
67 virtual ProfileManager* profile_manager() OVERRIDE; 67 virtual ProfileManager* profile_manager() OVERRIDE;
68 virtual PrefService* local_state() OVERRIDE; 68 virtual PrefService* local_state() OVERRIDE;
69 virtual ui::Clipboard* clipboard() OVERRIDE; 69 virtual ui::Clipboard* clipboard() OVERRIDE;
70 virtual net::URLRequestContextGetter* system_request_context() OVERRIDE; 70 virtual net::URLRequestContextGetter* system_request_context() OVERRIDE;
71 virtual VariationsService* variations_service() OVERRIDE;
71 #if defined(OS_CHROMEOS) 72 #if defined(OS_CHROMEOS)
72 virtual chromeos::OomPriorityManager* oom_priority_manager() OVERRIDE; 73 virtual chromeos::OomPriorityManager* oom_priority_manager() OVERRIDE;
73 #endif // defined(OS_CHROMEOS) 74 #endif // defined(OS_CHROMEOS)
74 virtual ExtensionEventRouterForwarder* 75 virtual ExtensionEventRouterForwarder*
75 extension_event_router_forwarder() OVERRIDE; 76 extension_event_router_forwarder() OVERRIDE;
76 virtual NotificationUIManager* notification_ui_manager() OVERRIDE; 77 virtual NotificationUIManager* notification_ui_manager() OVERRIDE;
77 virtual policy::BrowserPolicyConnector* browser_policy_connector() OVERRIDE; 78 virtual policy::BrowserPolicyConnector* browser_policy_connector() OVERRIDE;
78 virtual policy::PolicyService* policy_service() OVERRIDE; 79 virtual policy::PolicyService* policy_service() OVERRIDE;
79 virtual IconManager* icon_manager() OVERRIDE; 80 virtual IconManager* icon_manager() OVERRIDE;
80 virtual ThumbnailGenerator* GetThumbnailGenerator() OVERRIDE; 81 virtual ThumbnailGenerator* GetThumbnailGenerator() OVERRIDE;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 122
122 private: 123 private:
123 void CreateMetricsService(); 124 void CreateMetricsService();
124 void CreateWatchdogThread(); 125 void CreateWatchdogThread();
125 #if defined(OS_CHROMEOS) 126 #if defined(OS_CHROMEOS)
126 void InitializeWebSocketProxyThread(); 127 void InitializeWebSocketProxyThread();
127 #endif 128 #endif
128 void CreateTemplateURLService(); 129 void CreateTemplateURLService();
129 void CreateProfileManager(); 130 void CreateProfileManager();
130 void CreateLocalState(); 131 void CreateLocalState();
132 void CreateVariationsService();
131 void CreateViewedPageTracker(); 133 void CreateViewedPageTracker();
132 void CreateIconManager(); 134 void CreateIconManager();
133 void CreateIntranetRedirectDetector(); 135 void CreateIntranetRedirectDetector();
134 void CreateNotificationUIManager(); 136 void CreateNotificationUIManager();
135 void CreateStatusTrayManager(); 137 void CreateStatusTrayManager();
136 void CreateTabCloseableStateWatcher(); 138 void CreateTabCloseableStateWatcher();
137 void CreatePrintPreviewTabController(); 139 void CreatePrintPreviewTabController();
138 void CreateBackgroundPrintingManager(); 140 void CreateBackgroundPrintingManager();
139 void CreateSafeBrowsingService(); 141 void CreateSafeBrowsingService();
140 void CreateSafeBrowsingDetectionService(); 142 void CreateSafeBrowsingDetectionService();
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 bool created_browser_policy_connector_; 175 bool created_browser_policy_connector_;
174 scoped_ptr<policy::BrowserPolicyConnector> browser_policy_connector_; 176 scoped_ptr<policy::BrowserPolicyConnector> browser_policy_connector_;
175 177
176 scoped_refptr<printing::PrintPreviewTabController> 178 scoped_refptr<printing::PrintPreviewTabController>
177 print_preview_tab_controller_; 179 print_preview_tab_controller_;
178 180
179 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_; 181 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_;
180 182
181 scoped_ptr<ui::Clipboard> clipboard_; 183 scoped_ptr<ui::Clipboard> clipboard_;
182 184
185 bool created_variations_service_;
Ilya Sherman 2012/05/15 22:11:17 nit: Why do we need this boolean? Can't this be i
jwd 2012/05/16 14:47:31 Done.
186 scoped_ptr<VariationsService> variations_service_;
187
183 // Manager for desktop notification UI. 188 // Manager for desktop notification UI.
184 bool created_notification_ui_manager_; 189 bool created_notification_ui_manager_;
185 scoped_ptr<NotificationUIManager> notification_ui_manager_; 190 scoped_ptr<NotificationUIManager> notification_ui_manager_;
186 191
187 #if defined(ENABLE_AUTOMATION) 192 #if defined(ENABLE_AUTOMATION)
188 scoped_ptr<AutomationProviderList> automation_provider_list_; 193 scoped_ptr<AutomationProviderList> automation_provider_list_;
189 #endif 194 #endif
190 195
191 scoped_ptr<IntranetRedirectDetector> intranet_redirect_detector_; 196 scoped_ptr<IntranetRedirectDetector> intranet_redirect_detector_;
192 197
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 #endif 262 #endif
258 263
259 // TODO(eroman): Remove this when done debugging 113031. This tracks 264 // TODO(eroman): Remove this when done debugging 113031. This tracks
260 // the callstack which released the final module reference count. 265 // the callstack which released the final module reference count.
261 base::debug::StackTrace release_last_reference_callstack_; 266 base::debug::StackTrace release_last_reference_callstack_;
262 267
263 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); 268 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl);
264 }; 269 };
265 270
266 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ 271 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698