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

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/file_browser_private_api.h

Issue 15517005: Remove references to Profile from browser_context_keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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_MANAGER_FILE_BROWSER_PRIVATE_API _H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_BROWSER_PRIVATE_API _H_
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_BROWSER_PRIVATE_API _H_ 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_BROWSER_PRIVATE_API _H_
7 7
8 #include <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 #include <string> 10 #include <string>
(...skipping 27 matching lines...) Expand all
38 class DriveWebAppsRegistry; 38 class DriveWebAppsRegistry;
39 struct DriveWebAppInfo; 39 struct DriveWebAppInfo;
40 struct SearchResultInfo; 40 struct SearchResultInfo;
41 } 41 }
42 42
43 namespace ui { 43 namespace ui {
44 struct SelectedFileInfo; 44 struct SelectedFileInfo;
45 } 45 }
46 46
47 // Manages and registers the fileBrowserPrivate API with the extension system. 47 // Manages and registers the fileBrowserPrivate API with the extension system.
48 class FileBrowserPrivateAPI : public ProfileKeyedService { 48 class FileBrowserPrivateAPI : public BrowserContextKeyedService {
49 public: 49 public:
50 explicit FileBrowserPrivateAPI(Profile* profile); 50 explicit FileBrowserPrivateAPI(Profile* profile);
51 virtual ~FileBrowserPrivateAPI(); 51 virtual ~FileBrowserPrivateAPI();
52 52
53 // ProfileKeyedService overrides. 53 // BrowserContextKeyedService overrides.
54 virtual void Shutdown() OVERRIDE; 54 virtual void Shutdown() OVERRIDE;
55 55
56 // Convenience function to return the FileBrowserPrivateAPI for a Profile. 56 // Convenience function to return the FileBrowserPrivateAPI for a Profile.
57 static FileBrowserPrivateAPI* Get(Profile* profile); 57 static FileBrowserPrivateAPI* Get(Profile* profile);
58 58
59 FileManagerEventRouter* event_router() { 59 FileManagerEventRouter* event_router() {
60 return event_router_.get(); 60 return event_router_.get();
61 } 61 }
62 62
63 private: 63 private:
(...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after
801 OpenNewWindowFunction(); 801 OpenNewWindowFunction();
802 802
803 protected: 803 protected:
804 virtual ~OpenNewWindowFunction(); 804 virtual ~OpenNewWindowFunction();
805 805
806 // AsyncExtensionFunction overrides. 806 // AsyncExtensionFunction overrides.
807 virtual bool RunImpl() OVERRIDE; 807 virtual bool RunImpl() OVERRIDE;
808 }; 808 };
809 809
810 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_BROWSER_PRIVATE_ API_H_ 810 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_BROWSER_PRIVATE_ API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698