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

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

Issue 12647008: Refactor OAuth2TokenService to have profile- and device-based implementations. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Moved DeviceOAuth2TokenService factory method to g_browser_process Created 7 years, 9 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 virtual void EndSession() OVERRIDE; 78 virtual void EndSession() OVERRIDE;
79 virtual MetricsService* metrics_service() OVERRIDE; 79 virtual MetricsService* metrics_service() OVERRIDE;
80 virtual IOThread* io_thread() OVERRIDE; 80 virtual IOThread* io_thread() OVERRIDE;
81 virtual WatchDogThread* watchdog_thread() OVERRIDE; 81 virtual WatchDogThread* watchdog_thread() OVERRIDE;
82 virtual ProfileManager* profile_manager() OVERRIDE; 82 virtual ProfileManager* profile_manager() OVERRIDE;
83 virtual PrefService* local_state() OVERRIDE; 83 virtual PrefService* local_state() OVERRIDE;
84 virtual net::URLRequestContextGetter* system_request_context() OVERRIDE; 84 virtual net::URLRequestContextGetter* system_request_context() OVERRIDE;
85 virtual chrome_variations::VariationsService* variations_service() OVERRIDE; 85 virtual chrome_variations::VariationsService* variations_service() OVERRIDE;
86 #if defined(OS_CHROMEOS) 86 #if defined(OS_CHROMEOS)
87 virtual chromeos::OomPriorityManager* oom_priority_manager() OVERRIDE; 87 virtual chromeos::OomPriorityManager* oom_priority_manager() OVERRIDE;
88 virtual chromeos::DeviceOAuth2TokenService* device_oauth2_token_service()
89 OVERRIDE;
88 #endif // defined(OS_CHROMEOS) 90 #endif // defined(OS_CHROMEOS)
89 virtual extensions::EventRouterForwarder* 91 virtual extensions::EventRouterForwarder*
90 extension_event_router_forwarder() OVERRIDE; 92 extension_event_router_forwarder() OVERRIDE;
91 virtual NotificationUIManager* notification_ui_manager() OVERRIDE; 93 virtual NotificationUIManager* notification_ui_manager() OVERRIDE;
92 #if defined(ENABLE_MESSAGE_CENTER) 94 #if defined(ENABLE_MESSAGE_CENTER)
93 virtual message_center::MessageCenter* message_center() OVERRIDE; 95 virtual message_center::MessageCenter* message_center() OVERRIDE;
94 #endif 96 #endif
95 virtual policy::BrowserPolicyConnector* browser_policy_connector() OVERRIDE; 97 virtual policy::BrowserPolicyConnector* browser_policy_connector() OVERRIDE;
96 virtual policy::PolicyService* policy_service() OVERRIDE; 98 virtual policy::PolicyService* policy_service() OVERRIDE;
97 virtual IconManager* icon_manager() OVERRIDE; 99 virtual IconManager* icon_manager() OVERRIDE;
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 280
279 // Gets called by autoupdate timer to see if browser needs restart and can be 281 // Gets called by autoupdate timer to see if browser needs restart and can be
280 // restarted, and if that's the case, restarts the browser. 282 // restarted, and if that's the case, restarts the browser.
281 void OnAutoupdateTimer(); 283 void OnAutoupdateTimer();
282 bool CanAutorestartForUpdate() const; 284 bool CanAutorestartForUpdate() const;
283 void RestartBackgroundInstance(); 285 void RestartBackgroundInstance();
284 #endif // defined(OS_WIN) || defined(OS_LINUX) && !defined(OS_CHROMEOS) 286 #endif // defined(OS_WIN) || defined(OS_LINUX) && !defined(OS_CHROMEOS)
285 287
286 #if defined(OS_CHROMEOS) 288 #if defined(OS_CHROMEOS)
287 scoped_ptr<chromeos::OomPriorityManager> oom_priority_manager_; 289 scoped_ptr<chromeos::OomPriorityManager> oom_priority_manager_;
290 scoped_ptr<chromeos::DeviceOAuth2TokenService> device_oauth2_token_service_;
288 #else 291 #else
289 scoped_ptr<ComponentUpdateService> component_updater_; 292 scoped_ptr<ComponentUpdateService> component_updater_;
290 293
291 scoped_refptr<CRLSetFetcher> crl_set_fetcher_; 294 scoped_refptr<CRLSetFetcher> crl_set_fetcher_;
292 #endif 295 #endif
293 296
294 #if defined(ENABLE_PLUGIN_INSTALLATION) 297 #if defined(ENABLE_PLUGIN_INSTALLATION)
295 scoped_refptr<PluginsResourceService> plugins_resource_service_; 298 scoped_refptr<PluginsResourceService> plugins_resource_service_;
296 #endif 299 #endif
297 300
(...skipping 11 matching lines...) Expand all
309 #endif 312 #endif
310 313
311 // TODO(eroman): Remove this when done debugging 113031. This tracks 314 // TODO(eroman): Remove this when done debugging 113031. This tracks
312 // the callstack which released the final module reference count. 315 // the callstack which released the final module reference count.
313 base::debug::StackTrace release_last_reference_callstack_; 316 base::debug::StackTrace release_last_reference_callstack_;
314 317
315 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); 318 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl);
316 }; 319 };
317 320
318 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ 321 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698