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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 DECLARE_EXTENSION_FUNCTION("mediaGalleriesPrivate.addGalleryWatch", | 101 DECLARE_EXTENSION_FUNCTION("mediaGalleriesPrivate.addGalleryWatch", |
102 MEDIAGALLERIESPRIVATE_ADDGALLERYWATCH); | 102 MEDIAGALLERIESPRIVATE_ADDGALLERYWATCH); |
103 | 103 |
104 protected: | 104 protected: |
105 virtual ~MediaGalleriesPrivateAddGalleryWatchFunction(); | 105 virtual ~MediaGalleriesPrivateAddGalleryWatchFunction(); |
106 | 106 |
107 // AsyncExtensionFunction overrides. | 107 // AsyncExtensionFunction overrides. |
108 virtual bool RunImpl() OVERRIDE; | 108 virtual bool RunImpl() OVERRIDE; |
109 | 109 |
110 private: | 110 private: |
| 111 void OnPreferences(chrome::MediaGalleryPrefId pref_id, |
| 112 chrome::MediaGalleriesPreferences* preferences); |
| 113 |
111 // Gallery watch request handler. | 114 // Gallery watch request handler. |
112 void HandleResponse(chrome::MediaGalleryPrefId gallery_id, | 115 void HandleResponse(chrome::MediaGalleryPrefId gallery_id, |
113 bool success); | 116 bool success); |
114 }; | 117 }; |
115 | 118 |
116 // Implements the chrome.mediaGalleriesPrivate.removeGalleryWatch method. | 119 // Implements the chrome.mediaGalleriesPrivate.removeGalleryWatch method. |
117 class MediaGalleriesPrivateRemoveGalleryWatchFunction | 120 class MediaGalleriesPrivateRemoveGalleryWatchFunction |
118 : public SyncExtensionFunction { | 121 : public SyncExtensionFunction { |
119 public: | 122 public: |
120 DECLARE_EXTENSION_FUNCTION("mediaGalleriesPrivate.removeGalleryWatch", | 123 DECLARE_EXTENSION_FUNCTION("mediaGalleriesPrivate.removeGalleryWatch", |
(...skipping 23 matching lines...) Expand all Loading... |
144 class MediaGalleriesPrivateRemoveAllGalleryWatchFunction | 147 class MediaGalleriesPrivateRemoveAllGalleryWatchFunction |
145 : public SyncExtensionFunction { | 148 : public SyncExtensionFunction { |
146 public: | 149 public: |
147 DECLARE_EXTENSION_FUNCTION("mediaGalleriesPrivate.removeAllGalleryWatch", | 150 DECLARE_EXTENSION_FUNCTION("mediaGalleriesPrivate.removeAllGalleryWatch", |
148 MEDIAGALLERIESPRIVATE_REMOVEALLGALLERYWATCH); | 151 MEDIAGALLERIESPRIVATE_REMOVEALLGALLERYWATCH); |
149 protected: | 152 protected: |
150 virtual ~MediaGalleriesPrivateRemoveAllGalleryWatchFunction(); | 153 virtual ~MediaGalleriesPrivateRemoveAllGalleryWatchFunction(); |
151 | 154 |
152 // SyncExtensionFunction overrides. | 155 // SyncExtensionFunction overrides. |
153 virtual bool RunImpl() OVERRIDE; | 156 virtual bool RunImpl() OVERRIDE; |
| 157 |
| 158 private: |
| 159 void OnPreferences( |
| 160 chrome::MediaGalleriesPreferences* preferences, |
| 161 chrome::MediaGalleryPrefId pref_id); |
154 }; | 162 }; |
155 | 163 |
156 // Implements the chrome.mediaGalleriesPrivate.ejectDevice method. | 164 // Implements the chrome.mediaGalleriesPrivate.ejectDevice method. |
157 class MediaGalleriesPrivateEjectDeviceFunction | 165 class MediaGalleriesPrivateEjectDeviceFunction |
158 : public AsyncExtensionFunction { | 166 : public AsyncExtensionFunction { |
159 public: | 167 public: |
160 DECLARE_EXTENSION_FUNCTION("mediaGalleriesPrivate.ejectDevice", | 168 DECLARE_EXTENSION_FUNCTION("mediaGalleriesPrivate.ejectDevice", |
161 MEDIAGALLERIESPRIVATE_EJECTDEVICE); | 169 MEDIAGALLERIESPRIVATE_EJECTDEVICE); |
162 | 170 |
163 protected: | 171 protected: |
(...skipping 17 matching lines...) Expand all Loading... |
181 protected: | 189 protected: |
182 virtual ~MediaGalleriesPrivateGetHandlersFunction(); | 190 virtual ~MediaGalleriesPrivateGetHandlersFunction(); |
183 | 191 |
184 // AsyncExtensionFunction overrides. | 192 // AsyncExtensionFunction overrides. |
185 virtual bool RunImpl() OVERRIDE; | 193 virtual bool RunImpl() OVERRIDE; |
186 }; | 194 }; |
187 | 195 |
188 } // namespace extensions | 196 } // namespace extensions |
189 | 197 |
190 #endif // CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERIES_PRIVATE_MEDIA_GALLERIES
_PRIVATE_API_H_ | 198 #endif // CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERIES_PRIVATE_MEDIA_GALLERIES
_PRIVATE_API_H_ |
OLD | NEW |