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

Side by Side Diff: chrome/browser/extensions/api/idle/idle_manager.h

Issue 624153002: replace OVERRIDE and FINAL with override and final in chrome/browser/extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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_EXTENSIONS_API_IDLE_IDLE_MANAGER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_IDLE_IDLE_MANAGER_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_IDLE_IDLE_MANAGER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_IDLE_IDLE_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 private: 67 private:
68 DISALLOW_COPY_AND_ASSIGN(EventDelegate); 68 DISALLOW_COPY_AND_ASSIGN(EventDelegate);
69 }; 69 };
70 70
71 explicit IdleManager(Profile* profile); 71 explicit IdleManager(Profile* profile);
72 virtual ~IdleManager(); 72 virtual ~IdleManager();
73 73
74 void Init(); 74 void Init();
75 75
76 // KeyedService implementation. 76 // KeyedService implementation.
77 virtual void Shutdown() OVERRIDE; 77 virtual void Shutdown() override;
78 78
79 // ExtensionRegistryObserver implementation. 79 // ExtensionRegistryObserver implementation.
80 virtual void OnExtensionUnloaded( 80 virtual void OnExtensionUnloaded(
81 content::BrowserContext* browser_context, 81 content::BrowserContext* browser_context,
82 const Extension* extension, 82 const Extension* extension,
83 UnloadedExtensionInfo::Reason reason) OVERRIDE; 83 UnloadedExtensionInfo::Reason reason) override;
84 84
85 // EventRouter::Observer implementation. 85 // EventRouter::Observer implementation.
86 virtual void OnListenerAdded(const EventListenerInfo& details) OVERRIDE; 86 virtual void OnListenerAdded(const EventListenerInfo& details) override;
87 virtual void OnListenerRemoved(const EventListenerInfo& details) OVERRIDE; 87 virtual void OnListenerRemoved(const EventListenerInfo& details) override;
88 88
89 void QueryState(int threshold, QueryStateCallback notify); 89 void QueryState(int threshold, QueryStateCallback notify);
90 void SetThreshold(const std::string& extension_id, int threshold); 90 void SetThreshold(const std::string& extension_id, int threshold);
91 static base::StringValue* CreateIdleValue(IdleState idle_state); 91 static base::StringValue* CreateIdleValue(IdleState idle_state);
92 92
93 // Override default event class. Callee assumes ownership. Used for testing. 93 // Override default event class. Callee assumes ownership. Used for testing.
94 void SetEventDelegateForTest(scoped_ptr<EventDelegate> event_delegate); 94 void SetEventDelegateForTest(scoped_ptr<EventDelegate> event_delegate);
95 95
96 // Override default idle time calculations. Callee assumes ownership. Used 96 // Override default idle time calculations. Callee assumes ownership. Used
97 // for testing. 97 // for testing.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 extension_registry_observer_; 137 extension_registry_observer_;
138 138
139 base::WeakPtrFactory<IdleManager> weak_factory_; 139 base::WeakPtrFactory<IdleManager> weak_factory_;
140 140
141 DISALLOW_COPY_AND_ASSIGN(IdleManager); 141 DISALLOW_COPY_AND_ASSIGN(IdleManager);
142 }; 142 };
143 143
144 } // namespace extensions 144 } // namespace extensions
145 145
146 #endif // CHROME_BROWSER_EXTENSIONS_API_IDLE_IDLE_MANAGER_H_ 146 #endif // CHROME_BROWSER_EXTENSIONS_API_IDLE_IDLE_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/idle/idle_api_unittest.cc ('k') | chrome/browser/extensions/api/idle/idle_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698