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_EXTENSIONS_API_MEDIA_GALLERIES_PRIVATE_MEDIA_GALLERIES_PR
IVATE_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERIES_PRIVATE_MEDIA_GALLERIES_PR
IVATE_API_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERIES_PRIVATE_MEDIA_GALLERIES_PR
IVATE_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERIES_PRIVATE_MEDIA_GALLERIES_PR
IVATE_API_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 protected: | 139 protected: |
140 virtual ~MediaGalleriesPrivateRemoveAllGalleryWatchFunction(); | 140 virtual ~MediaGalleriesPrivateRemoveAllGalleryWatchFunction(); |
141 | 141 |
142 // SyncExtensionFunction overrides. | 142 // SyncExtensionFunction overrides. |
143 virtual bool RunAsync() OVERRIDE; | 143 virtual bool RunAsync() OVERRIDE; |
144 | 144 |
145 private: | 145 private: |
146 void OnPreferencesInit(); | 146 void OnPreferencesInit(); |
147 }; | 147 }; |
148 | 148 |
149 // Implements the chrome.mediaGalleriesPrivate.getHandlers method. | |
150 class MediaGalleriesPrivateGetHandlersFunction | |
151 : public ChromeAsyncExtensionFunction { | |
152 public: | |
153 DECLARE_EXTENSION_FUNCTION("mediaGalleriesPrivate.getHandlers", | |
154 MEDIAGALLERIESPRIVATE_GETHANDLERS); | |
155 | |
156 protected: | |
157 virtual ~MediaGalleriesPrivateGetHandlersFunction(); | |
158 | |
159 // AsyncExtensionFunction overrides. | |
160 virtual bool RunAsync() OVERRIDE; | |
161 }; | |
162 | |
163 } // namespace extensions | 149 } // namespace extensions |
164 | 150 |
165 #endif // CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERIES_PRIVATE_MEDIA_GALLERIES
_PRIVATE_API_H_ | 151 #endif // CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERIES_PRIVATE_MEDIA_GALLERIES
_PRIVATE_API_H_ |
OLD | NEW |