OLD | NEW |
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 28 matching lines...) Expand all Loading... |
39 class DriveWebAppsRegistry; | 39 class DriveWebAppsRegistry; |
40 struct DriveWebAppInfo; | 40 struct DriveWebAppInfo; |
41 struct SearchResultInfo; | 41 struct SearchResultInfo; |
42 } | 42 } |
43 | 43 |
44 namespace ui { | 44 namespace ui { |
45 struct SelectedFileInfo; | 45 struct SelectedFileInfo; |
46 } | 46 } |
47 | 47 |
48 // Manages and registers the fileBrowserPrivate API with the extension system. | 48 // Manages and registers the fileBrowserPrivate API with the extension system. |
49 class FileBrowserPrivateAPI : public ProfileKeyedService { | 49 class FileBrowserPrivateAPI : public BrowserContextKeyedService { |
50 public: | 50 public: |
51 explicit FileBrowserPrivateAPI(Profile* profile); | 51 explicit FileBrowserPrivateAPI(Profile* profile); |
52 virtual ~FileBrowserPrivateAPI(); | 52 virtual ~FileBrowserPrivateAPI(); |
53 | 53 |
54 // ProfileKeyedService overrides. | 54 // BrowserContextKeyedService overrides. |
55 virtual void Shutdown() OVERRIDE; | 55 virtual void Shutdown() OVERRIDE; |
56 | 56 |
57 // Convenience function to return the FileBrowserPrivateAPI for a Profile. | 57 // Convenience function to return the FileBrowserPrivateAPI for a Profile. |
58 static FileBrowserPrivateAPI* Get(Profile* profile); | 58 static FileBrowserPrivateAPI* Get(Profile* profile); |
59 | 59 |
60 FileManagerEventRouter* event_router() { | 60 FileManagerEventRouter* event_router() { |
61 return event_router_.get(); | 61 return event_router_.get(); |
62 } | 62 } |
63 | 63 |
64 private: | 64 private: |
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
813 OpenNewWindowFunction(); | 813 OpenNewWindowFunction(); |
814 | 814 |
815 protected: | 815 protected: |
816 virtual ~OpenNewWindowFunction(); | 816 virtual ~OpenNewWindowFunction(); |
817 | 817 |
818 // AsyncExtensionFunction overrides. | 818 // AsyncExtensionFunction overrides. |
819 virtual bool RunImpl() OVERRIDE; | 819 virtual bool RunImpl() OVERRIDE; |
820 }; | 820 }; |
821 | 821 |
822 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_BROWSER_PRIVATE_
API_H_ | 822 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FILE_MANAGER_FILE_BROWSER_PRIVATE_
API_H_ |
OLD | NEW |