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 21 matching lines...) Expand all Loading... | |
142 | 145 |
143 // Implements the chrome.mediaGalleriesPrivate.removeAllGalleryWatch method. | 146 // Implements the chrome.mediaGalleriesPrivate.removeAllGalleryWatch method. |
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 |
155 void OnPreferences( | |
Lei Zhang
2013/05/14 04:12:23
private?
Greg Billock
2013/05/14 21:27:13
Done.
| |
156 chrome::MediaGalleriesPreferences* preferences, | |
157 chrome::MediaGalleryPrefId pref_id); | |
158 | |
152 // SyncExtensionFunction overrides. | 159 // SyncExtensionFunction overrides. |
153 virtual bool RunImpl() OVERRIDE; | 160 virtual bool RunImpl() OVERRIDE; |
154 }; | 161 }; |
155 | 162 |
156 // Implements the chrome.mediaGalleriesPrivate.ejectDevice method. | 163 // Implements the chrome.mediaGalleriesPrivate.ejectDevice method. |
157 class MediaGalleriesPrivateEjectDeviceFunction | 164 class MediaGalleriesPrivateEjectDeviceFunction |
158 : public AsyncExtensionFunction { | 165 : public AsyncExtensionFunction { |
159 public: | 166 public: |
160 DECLARE_EXTENSION_FUNCTION("mediaGalleriesPrivate.ejectDevice", | 167 DECLARE_EXTENSION_FUNCTION("mediaGalleriesPrivate.ejectDevice", |
161 MEDIAGALLERIESPRIVATE_EJECTDEVICE); | 168 MEDIAGALLERIESPRIVATE_EJECTDEVICE); |
(...skipping 19 matching lines...) Expand all Loading... | |
181 protected: | 188 protected: |
182 virtual ~MediaGalleriesPrivateGetHandlersFunction(); | 189 virtual ~MediaGalleriesPrivateGetHandlersFunction(); |
183 | 190 |
184 // AsyncExtensionFunction overrides. | 191 // AsyncExtensionFunction overrides. |
185 virtual bool RunImpl() OVERRIDE; | 192 virtual bool RunImpl() OVERRIDE; |
186 }; | 193 }; |
187 | 194 |
188 } // namespace extensions | 195 } // namespace extensions |
189 | 196 |
190 #endif // CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERIES_PRIVATE_MEDIA_GALLERIES _PRIVATE_API_H_ | 197 #endif // CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERIES_PRIVATE_MEDIA_GALLERIES _PRIVATE_API_H_ |
OLD | NEW |