Chromium Code Reviews| Index: chrome/browser/extensions/api/media_gallery/media_gallery_api.h |
| diff --git a/chrome/browser/extensions/api/media_gallery/media_gallery_api.h b/chrome/browser/extensions/api/media_gallery/media_gallery_api.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c139cd668531e809e1caa2a0cd682fafb464d8cb |
| --- /dev/null |
| +++ b/chrome/browser/extensions/api/media_gallery/media_gallery_api.h |
| @@ -0,0 +1,54 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +// Defines the Chrome Extensions Cookies API functions for accessing internet |
| +// cookies, as specified in the extension API JSON. |
| + |
| +#ifndef CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERY_MEDIA_GALLERY_API_H_ |
| +#define CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERY_MEDIA_GALLERY_API_H_ |
| +#pragma once |
| + |
| +#include "chrome/browser/extensions/extension_function.h" |
| + |
| +namespace extensions { |
| + |
| +// Implements the mediaGalleries.GetMediaGalleries() extension function. |
| +class GetMediaGalleriesFunction : public AsyncExtensionFunction { |
|
jstritar
2012/02/16 21:34:18
These should just be SyncExtensionFunctions until
vandebo (ex-Chrome)
2012/03/19 23:09:52
Done.
|
| + public: |
| + virtual ~GetMediaGalleriesFunction(); |
| + virtual bool RunImpl() OVERRIDE; |
| + DECLARE_EXTENSION_FUNCTION_NAME( |
| + "experimental.mediaGalleries.getMediaGalleries") |
| +}; |
| + |
| +// Implements the mediaGalleries.OpenMediaGalleryManager() extension function. |
| +class OpenMediaGalleryManagerFunction : public SyncExtensionFunction { |
| + public: |
| + virtual ~OpenMediaGalleryManagerFunction(); |
| + virtual bool RunImpl() OVERRIDE; |
| + DECLARE_EXTENSION_FUNCTION_NAME( |
| + "experimental.mediaGalleries.openMediaGalleryManager") |
| +}; |
| + |
| +// Implements the mediaGalleries.AssembleMediaFile() extension function. |
| +class AssembleMediaFileFunction : public AsyncExtensionFunction { |
| + public: |
| + virtual ~AssembleMediaFileFunction(); |
| + virtual bool RunImpl() OVERRIDE; |
| + DECLARE_EXTENSION_FUNCTION_NAME( |
| + "experimental.mediaGalleries.assembleMediaFile") |
| +}; |
| + |
| +// Implements the mediaGalleries.ParseMediaFileMetadata() extension function. |
| +class ParseMediaFileMetadataFunction : public AsyncExtensionFunction { |
| + public: |
| + virtual ~ParseMediaFileMetadataFunction(); |
| + virtual bool RunImpl() OVERRIDE; |
| + DECLARE_EXTENSION_FUNCTION_NAME( |
| + "experimental.mediaGalleries.parseMediaFileMetadata") |
| +}; |
| + |
| +} // namespace extensions |
| + |
| +#endif // CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERY_MEDIA_GALLERY_API_H_ |