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

Side by Side Diff: chrome/browser/ui/ash/app_sync_ui_state.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: fixcaller 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 #ifndef CHROME_BROWSER_UI_ASH_APP_SYNC_UI_STATE_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_APP_SYNC_UI_STATE_H_
6 #define CHROME_BROWSER_UI_ASH_APP_SYNC_UI_STATE_H_ 6 #define CHROME_BROWSER_UI_ASH_APP_SYNC_UI_STATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 void OnStateChanged() override; 71 void OnStateChanged() override;
72 72
73 // extensions::ExtensionRegistryObserver overrides: 73 // extensions::ExtensionRegistryObserver overrides:
74 void OnExtensionLoaded(content::BrowserContext* browser_context, 74 void OnExtensionLoaded(content::BrowserContext* browser_context,
75 const extensions::Extension* extension) override; 75 const extensions::Extension* extension) override;
76 76
77 Profile* profile_; 77 Profile* profile_;
78 ProfileSyncService* sync_service_; 78 ProfileSyncService* sync_service_;
79 79
80 // Timer to limit how much time STATUS_SYNCING is allowed. 80 // Timer to limit how much time STATUS_SYNCING is allowed.
81 base::OneShotTimer<AppSyncUIState> max_syncing_status_timer_; 81 base::OneShotTimer max_syncing_status_timer_;
82 82
83 Status status_; 83 Status status_;
84 base::ObserverList<AppSyncUIStateObserver> observers_; 84 base::ObserverList<AppSyncUIStateObserver> observers_;
85 85
86 extensions::ExtensionRegistry* extension_registry_; 86 extensions::ExtensionRegistry* extension_registry_;
87 87
88 DISALLOW_COPY_AND_ASSIGN(AppSyncUIState); 88 DISALLOW_COPY_AND_ASSIGN(AppSyncUIState);
89 }; 89 };
90 90
91 #endif // CHROME_BROWSER_UI_ASH_APP_SYNC_UI_STATE_H_ 91 #endif // CHROME_BROWSER_UI_ASH_APP_SYNC_UI_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698