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

Side by Side Diff: extensions/browser/app_window/app_window_registry.h

Issue 622343002: replace OVERRIDE and FINAL with override and final in 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_REGISTRY_H_ 5 #ifndef EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_REGISTRY_H_
6 #define EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_REGISTRY_H_ 6 #define EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_REGISTRY_H_
7 7
8 #include <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 static Factory* GetInstance(); 109 static Factory* GetInstance();
110 110
111 private: 111 private:
112 friend struct DefaultSingletonTraits<Factory>; 112 friend struct DefaultSingletonTraits<Factory>;
113 113
114 Factory(); 114 Factory();
115 virtual ~Factory(); 115 virtual ~Factory();
116 116
117 // BrowserContextKeyedServiceFactory 117 // BrowserContextKeyedServiceFactory
118 virtual KeyedService* BuildServiceInstanceFor( 118 virtual KeyedService* BuildServiceInstanceFor(
119 content::BrowserContext* context) const OVERRIDE; 119 content::BrowserContext* context) const override;
120 virtual bool ServiceIsCreatedWithBrowserContext() const OVERRIDE; 120 virtual bool ServiceIsCreatedWithBrowserContext() const override;
121 virtual bool ServiceIsNULLWhileTesting() const OVERRIDE; 121 virtual bool ServiceIsNULLWhileTesting() const override;
122 virtual content::BrowserContext* GetBrowserContextToUse( 122 virtual content::BrowserContext* GetBrowserContextToUse(
123 content::BrowserContext* context) const OVERRIDE; 123 content::BrowserContext* context) const override;
124 }; 124 };
125 125
126 protected: 126 protected:
127 void OnDevToolsStateChanged(content::DevToolsAgentHost*, bool attached); 127 void OnDevToolsStateChanged(content::DevToolsAgentHost*, bool attached);
128 128
129 private: 129 private:
130 // Ensures the specified |app_window| is included in |app_windows_|. 130 // Ensures the specified |app_window| is included in |app_windows_|.
131 // Otherwise adds |app_window| to the back of |app_windows_|. 131 // Otherwise adds |app_window| to the back of |app_windows_|.
132 void AddAppWindowToList(AppWindow* app_window); 132 void AddAppWindowToList(AppWindow* app_window);
133 133
134 // Bring |app_window| to the front of |app_windows_|. If it is not in the 134 // Bring |app_window| to the front of |app_windows_|. If it is not in the
135 // list, add it first. 135 // list, add it first.
136 void BringToFront(AppWindow* app_window); 136 void BringToFront(AppWindow* app_window);
137 137
138 content::BrowserContext* context_; 138 content::BrowserContext* context_;
139 AppWindowList app_windows_; 139 AppWindowList app_windows_;
140 InspectedWindowSet inspected_windows_; 140 InspectedWindowSet inspected_windows_;
141 ObserverList<Observer> observers_; 141 ObserverList<Observer> observers_;
142 base::Callback<void(content::DevToolsAgentHost*, bool)> devtools_callback_; 142 base::Callback<void(content::DevToolsAgentHost*, bool)> devtools_callback_;
143 }; 143 };
144 144
145 } // namespace extensions 145 } // namespace extensions
146 146
147 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_REGISTRY_H_ 147 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_WINDOW_REGISTRY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698