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

Unified Diff: chrome/common/extensions/media_parser.mojom

Issue 2611283002: [mojo talk demo] Convert utility process CheckMediaFile IPC to mojo (Closed)
Patch Set: Created 3 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/common/extensions/media_parser.mojom
diff --git a/chrome/common/extensions/media_parser.mojom b/chrome/common/extensions/media_parser.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..5abacb08d28eb4a3ce45210634ff8050cfec40d8
--- /dev/null
+++ b/chrome/common/extensions/media_parser.mojom
@@ -0,0 +1,20 @@
+// Copyright 2016 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.
+
+// Media parsing interface provided by the utility process and exposed by
+// mojo policy control to the chrome browser process.
+
+module extensions.mojom;
+
+import "mojo/common/file.mojom";
+
+interface MediaParser {
+ // Validate the passed media file with sanity checks, and file decoding
+ // for up to |decode_time_ms| wall clock time. Return |success| true if
+ // |file| appears to be a well-formed media file. Note: it is still not
+ // safe to decode the file in the browser process based on the returned
+ // |success|.
+ CheckMediaFile(int64 decode_time_ms, mojo.common.mojom.File file)
+ => (bool success);
+};
« no previous file with comments | « chrome/common/extensions/chrome_utility_extensions_messages.h ('k') | chrome/utility/chrome_content_utility_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698