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

Side by Side Diff: chrome/browser/chromeos/extensions/file_browser_event_router.h

Issue 10908088: Cleanup: Constify some ProfileKeyedBaseFactory methods and all overrides. Remove ProfileKeyedBaseFa… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase, remove a few more lines of code Created 8 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 | Annotate | Revision Log
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_CHROMEOS_EXTENSIONS_FILE_BROWSER_EVENT_ROUTER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_EVENT_ROUTER_H_
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_EVENT_ROUTER_H_ 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_EVENT_ROUTER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 public: 220 public:
221 // Returns the FileBrowserEventRouter for |profile|, creating it if 221 // Returns the FileBrowserEventRouter for |profile|, creating it if
222 // it is not yet created. 222 // it is not yet created.
223 static scoped_refptr<FileBrowserEventRouter> GetForProfile(Profile* profile); 223 static scoped_refptr<FileBrowserEventRouter> GetForProfile(Profile* profile);
224 224
225 // Returns the FileBrowserEventRouterFactory instance. 225 // Returns the FileBrowserEventRouterFactory instance.
226 static FileBrowserEventRouterFactory* GetInstance(); 226 static FileBrowserEventRouterFactory* GetInstance();
227 227
228 protected: 228 protected:
229 // ProfileKeyedBasedFactory overrides: 229 // ProfileKeyedBasedFactory overrides:
230 virtual bool ServiceHasOwnInstanceInIncognito() OVERRIDE; 230 virtual bool ServiceHasOwnInstanceInIncognito() const OVERRIDE;
231 231
232 private: 232 private:
233 friend struct DefaultSingletonTraits<FileBrowserEventRouterFactory>; 233 friend struct DefaultSingletonTraits<FileBrowserEventRouterFactory>;
234 234
235 FileBrowserEventRouterFactory(); 235 FileBrowserEventRouterFactory();
236 virtual ~FileBrowserEventRouterFactory(); 236 virtual ~FileBrowserEventRouterFactory();
237 237
238 // ProfileKeyedServiceFactory: 238 // ProfileKeyedServiceFactory:
239 virtual scoped_refptr<RefcountedProfileKeyedService> BuildServiceInstanceFor( 239 virtual scoped_refptr<RefcountedProfileKeyedService> BuildServiceInstanceFor(
240 Profile* profile) const OVERRIDE; 240 Profile* profile) const OVERRIDE;
241 }; 241 };
242 242
243 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_EVENT_ROUTER_H_ 243 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_BROWSER_EVENT_ROUTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698