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

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

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: . Created 5 years, 3 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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 261
262 // Lives here so can safely log events on shutdown. 262 // Lives here so can safely log events on shutdown.
263 scoped_ptr<ChromeNetLog> net_log_; 263 scoped_ptr<ChromeNetLog> net_log_;
264 264
265 scoped_ptr<ChromeResourceDispatcherHostDelegate> 265 scoped_ptr<ChromeResourceDispatcherHostDelegate>
266 resource_dispatcher_host_delegate_; 266 resource_dispatcher_host_delegate_;
267 267
268 scoped_ptr<web_resource::PromoResourceService> promo_resource_service_; 268 scoped_ptr<web_resource::PromoResourceService> promo_resource_service_;
269 269
270 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) 270 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
271 base::RepeatingTimer<BrowserProcessImpl> autoupdate_timer_; 271 base::RepeatingTimer autoupdate_timer_;
272 272
273 // Gets called by autoupdate timer to see if browser needs restart and can be 273 // Gets called by autoupdate timer to see if browser needs restart and can be
274 // restarted, and if that's the case, restarts the browser. 274 // restarted, and if that's the case, restarts the browser.
275 void OnAutoupdateTimer(); 275 void OnAutoupdateTimer();
276 bool CanAutorestartForUpdate() const; 276 bool CanAutorestartForUpdate() const;
277 void RestartBackgroundInstance(); 277 void RestartBackgroundInstance();
278 #endif // defined(OS_WIN) || defined(OS_LINUX) && !defined(OS_CHROMEOS) 278 #endif // defined(OS_WIN) || defined(OS_LINUX) && !defined(OS_CHROMEOS)
279 279
280 // component updater is normally not used under ChromeOS due 280 // component updater is normally not used under ChromeOS due
281 // to concerns over integrity of data shared between profiles, 281 // to concerns over integrity of data shared between profiles,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 // chrome/browser/memory/oom_priority_manager_browsertest.cc 321 // chrome/browser/memory/oom_priority_manager_browsertest.cc
322 scoped_ptr<memory::OomPriorityManager> oom_priority_manager_; 322 scoped_ptr<memory::OomPriorityManager> oom_priority_manager_;
323 #endif 323 #endif
324 324
325 ShellIntegration::DefaultWebClientState cached_default_web_client_state_; 325 ShellIntegration::DefaultWebClientState cached_default_web_client_state_;
326 326
327 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl); 327 DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl);
328 }; 328 };
329 329
330 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_ 330 #endif // CHROME_BROWSER_BROWSER_PROCESS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698