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 // Defines the Chrome Extensions Media Galleries API functions for accessing | 5 // Defines the Chrome Extensions Media Galleries API functions for accessing |
6 // user's media files, as specified in the extension API JSON. | 6 // user's media files, as specified in the extension API JSON. |
7 | 7 |
8 #ifndef CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERY_MEDIA_GALLERY_API_H_ | 8 #ifndef CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERY_MEDIA_GALLERY_API_H_ |
9 #define CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERY_MEDIA_GALLERY_API_H_ | 9 #define CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERY_MEDIA_GALLERY_API_H_ |
10 #pragma once | 10 #pragma once |
11 | 11 |
12 #include "chrome/browser/extensions/extension_function.h" | 12 #include "chrome/browser/extensions/extension_function.h" |
13 | 13 |
14 namespace extensions { | 14 namespace extensions { |
15 | 15 |
16 class GetMediaFileSystemsFunction : public SyncExtensionFunction { | 16 class GetMediaFileSystemsFunction : public SyncExtensionFunction { |
17 public: | 17 public: |
| 18 DECLARE_EXTENSION_FUNCTION_NAME( |
| 19 "experimental.mediaGalleries.getMediaFileSystems") |
| 20 |
| 21 protected: |
18 virtual ~GetMediaFileSystemsFunction(); | 22 virtual ~GetMediaFileSystemsFunction(); |
19 virtual bool RunImpl() OVERRIDE; | 23 virtual bool RunImpl() OVERRIDE; |
20 DECLARE_EXTENSION_FUNCTION_NAME( | |
21 "experimental.mediaGalleries.getMediaFileSystems") | |
22 }; | 24 }; |
23 | 25 |
24 class OpenMediaGalleryManagerFunction : public SyncExtensionFunction { | 26 class OpenMediaGalleryManagerFunction : public SyncExtensionFunction { |
25 public: | 27 public: |
| 28 DECLARE_EXTENSION_FUNCTION_NAME( |
| 29 "experimental.mediaGalleries.openMediaGalleryManager") |
| 30 |
| 31 protected: |
26 virtual ~OpenMediaGalleryManagerFunction(); | 32 virtual ~OpenMediaGalleryManagerFunction(); |
27 virtual bool RunImpl() OVERRIDE; | 33 virtual bool RunImpl() OVERRIDE; |
28 DECLARE_EXTENSION_FUNCTION_NAME( | |
29 "experimental.mediaGalleries.openMediaGalleryManager") | |
30 }; | 34 }; |
31 | 35 |
32 class AssembleMediaFileFunction : public SyncExtensionFunction { | 36 class AssembleMediaFileFunction : public SyncExtensionFunction { |
33 public: | 37 public: |
| 38 DECLARE_EXTENSION_FUNCTION_NAME( |
| 39 "experimental.mediaGalleries.assembleMediaFile") |
| 40 |
| 41 protected: |
34 virtual ~AssembleMediaFileFunction(); | 42 virtual ~AssembleMediaFileFunction(); |
35 virtual bool RunImpl() OVERRIDE; | 43 virtual bool RunImpl() OVERRIDE; |
36 DECLARE_EXTENSION_FUNCTION_NAME( | |
37 "experimental.mediaGalleries.assembleMediaFile") | |
38 }; | 44 }; |
39 | 45 |
40 } // namespace extensions | 46 } // namespace extensions |
41 | 47 |
42 #endif // CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERY_MEDIA_GALLERY_API_H_ | 48 #endif // CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERY_MEDIA_GALLERY_API_H_ |
OLD | NEW |