| 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_GALLERIES_MEDIA_GALLERIES_API_H_ | 8 #ifndef CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERIES_MEDIA_GALLERIES_API_H_ |
| 9 #define CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERIES_MEDIA_GALLERIES_API_H_ | 9 #define CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERIES_MEDIA_GALLERIES_API_H_ |
| 10 | 10 |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "chrome/browser/extensions/extension_function.h" | 13 #include "chrome/browser/extensions/extension_function.h" |
| 14 #include "chrome/browser/media_gallery/media_file_system_registry.h" | 14 #include "chrome/browser/media_gallery/media_file_system_registry.h" |
| 15 | 15 |
| 16 namespace extensions { | 16 namespace extensions { |
| 17 | 17 |
| 18 class MediaGalleriesGetMediaFileSystemsFunction | 18 class MediaGalleriesGetMediaFileSystemsFunction |
| 19 : public AsyncExtensionFunction { | 19 : public AsyncExtensionFunction { |
| 20 public: | 20 public: |
| 21 DECLARE_EXTENSION_FUNCTION_NAME( | 21 DECLARE_EXTENSION_FUNCTION_NAME("mediaGalleries.getMediaFileSystems") |
| 22 "experimental.mediaGalleries.getMediaFileSystems") | |
| 23 | 22 |
| 24 protected: | 23 protected: |
| 25 virtual ~MediaGalleriesGetMediaFileSystemsFunction(); | 24 virtual ~MediaGalleriesGetMediaFileSystemsFunction(); |
| 26 virtual bool RunImpl() OVERRIDE; | 25 virtual bool RunImpl() OVERRIDE; |
| 27 | 26 |
| 28 private: | 27 private: |
| 29 // Grabs galleries from the media file system registry and passes them to | 28 // Grabs galleries from the media file system registry and passes them to |
| 30 // |ReturnGalleries|. | 29 // |ReturnGalleries|. |
| 31 void GetAndReturnGalleries(); | 30 void GetAndReturnGalleries(); |
| 32 | 31 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 45 "experimental.mediaGalleries.assembleMediaFile") | 44 "experimental.mediaGalleries.assembleMediaFile") |
| 46 | 45 |
| 47 protected: | 46 protected: |
| 48 virtual ~MediaGalleriesAssembleMediaFileFunction(); | 47 virtual ~MediaGalleriesAssembleMediaFileFunction(); |
| 49 virtual bool RunImpl() OVERRIDE; | 48 virtual bool RunImpl() OVERRIDE; |
| 50 }; | 49 }; |
| 51 | 50 |
| 52 } // namespace extensions | 51 } // namespace extensions |
| 53 | 52 |
| 54 #endif // CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERIES_MEDIA_GALLERIES_API_H_ | 53 #endif // CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERIES_MEDIA_GALLERIES_API_H_ |
| OLD | NEW |