Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(532)

Side by Side Diff: chrome/browser/extensions/api/media_galleries/media_galleries_api.h

Issue 250143002: Media Galleries API: Audio/Video attached pictures support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 IDL. 6 // user's media files, as specified in the extension API IDL.
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
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 public: 256 public:
257 DECLARE_EXTENSION_FUNCTION("mediaGalleries.getMetadata", 257 DECLARE_EXTENSION_FUNCTION("mediaGalleries.getMetadata",
258 MEDIAGALLERIES_GETMETADATA) 258 MEDIAGALLERIES_GETMETADATA)
259 259
260 protected: 260 protected:
261 virtual ~MediaGalleriesGetMetadataFunction(); 261 virtual ~MediaGalleriesGetMetadataFunction();
262 virtual bool RunImpl() OVERRIDE; 262 virtual bool RunImpl() OVERRIDE;
263 263
264 private: 264 private:
265 // Bottom half for RunImpl, invoked after the preferences is initialized. 265 // Bottom half for RunImpl, invoked after the preferences is initialized.
266 void OnPreferencesInit(bool mime_type_only, const std::string& blob_uuid); 266 void OnPreferencesInit(bool mime_type_only, bool get_attached_pictures,
267 const std::string& blob_uuid);
267 268
268 void SniffMimeType(bool mime_type_only, 269 void SniffMimeType(bool mime_type_only,
vandebo (ex-Chrome) 2014/04/23 23:22:45 Should this now be named GetMetadata ?
tommycli 2014/04/29 00:15:51 Done.
270 bool get_attached_pictures,
269 const std::string& blob_uuid, 271 const std::string& blob_uuid,
270 scoped_ptr<std::string> blob_header, 272 scoped_ptr<std::string> blob_header,
271 int64 total_blob_length); 273 int64 total_blob_length);
272 274
273 void OnSafeMediaMetadataParserDone( 275 void OnSafeMediaMetadataParserDone(
274 bool parse_success, base::DictionaryValue* metadata_dictionary); 276 bool parse_success, base::DictionaryValue* metadata_dictionary,
277 const std::vector<std::string>& attached_pictures_bytes,
278 const std::vector<std::string>& attached_pictures_types);
275 }; 279 };
276 280
277 } // namespace extensions 281 } // namespace extensions
278 282
279 #endif // CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERIES_MEDIA_GALLERIES_API_H_ 283 #endif // CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERIES_MEDIA_GALLERIES_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698