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

Unified Diff: chrome/utility/chrome_content_utility_client.h

Issue 103283003: Media Galleries API Metadata: SafeMediaMetadataParser and IPCTunnelDataReader. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: assign callback on io thread Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/utility/chrome_content_utility_client.h
diff --git a/chrome/utility/chrome_content_utility_client.h b/chrome/utility/chrome_content_utility_client.h
index e1b40f51209556a2781fc2c488fb3612479dc1f9..3c979f4beda5b0b171b40327b2cb58590e10cd3b 100644
--- a/chrome/utility/chrome_content_utility_client.h
+++ b/chrome/utility/chrome_content_utility_client.h
@@ -6,6 +6,7 @@
#define CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_
#include "base/compiler_specific.h"
+#include "base/memory/scoped_ptr.h"
#include "base/memory/scoped_vector.h"
#include "base/platform_file.h"
#include "chrome/common/media_galleries/picasa_types.h"
@@ -21,6 +22,11 @@ namespace gfx {
class Rect;
}
+namespace metadata {
+class IPCDataSource;
vandebo (ex-Chrome) 2014/01/08 17:48:06 Remove
tommycli 2014/01/08 18:59:37 Done.
+class MediaMetadataParser;
+}
+
namespace printing {
class PdfRenderSettings;
struct PageRange;
@@ -92,6 +98,9 @@ class ChromeContentUtilityClient : public content::ContentUtilityClient {
#if !defined(OS_ANDROID) && !defined(OS_IOS)
void OnCheckMediaFile(int64 milliseconds_of_decoding,
const IPC::PlatformFileForTransit& media_file);
+ void OnParseMediaMetadata(const std::string& mime_type, int64 total_size);
+ void OnParseMediaMetadataRequestBlobBytesFinished(int64 request_id,
vandebo (ex-Chrome) 2014/01/08 17:48:06 Remove
tommycli 2014/01/08 18:59:37 Done. Whoops. Thanks.
+ const std::string& bytes);
#endif // !defined(OS_ANDROID) && !defined(OS_IOS)
#if defined(OS_WIN)
@@ -118,6 +127,10 @@ class ChromeContentUtilityClient : public content::ContentUtilityClient {
typedef ScopedVector<UtilityMessageHandler> Handlers;
Handlers handlers_;
+#if !defined(OS_ANDROID) && !defined(OS_IOS)
+ scoped_ptr<metadata::MediaMetadataParser> media_metadata_parser_;
+#endif // !defined(OS_ANDROID) && !defined(OS_IOS)
+
DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient);
};

Powered by Google App Engine
This is Rietveld 408576698