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

Unified Diff: chrome/browser/extensions/api/streams_private/streams_private_api.h

Issue 263513004: Forward MIME types to BrowserPlugin when a viewer is specified. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unittests Created 6 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/streams_private/streams_private_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/streams_private/streams_private_api.h
diff --git a/chrome/browser/extensions/api/streams_private/streams_private_api.h b/chrome/browser/extensions/api/streams_private/streams_private_api.h
index d1375814682893cd86edaab35eb376da0bd0365e..daa81c4b39caa86890d68d4abae6cba40d2c482a 100644
--- a/chrome/browser/extensions/api/streams_private/streams_private_api.h
+++ b/chrome/browser/extensions/api/streams_private/streams_private_api.h
@@ -30,9 +30,15 @@ class StreamsPrivateAPI : public BrowserContextKeyedAPI,
explicit StreamsPrivateAPI(content::BrowserContext* context);
virtual ~StreamsPrivateAPI();
+ // Send the onExecuteMimeTypeHandler event to |extension_id|.
+ // |web_contents| is used to determine the tabId where the document is being
+ // opened. The data for the document will be readable from |stream|, and
+ // should be |expected_content_size| bytes long. If the viewer is being opened
+ // in a BrowserPlugin, specify a non-empty |view_id| of the plugin.
void ExecuteMimeTypeHandler(const std::string& extension_id,
content::WebContents* web_contents,
scoped_ptr<content::StreamHandle> stream,
+ const std::string& view_id,
int64 expected_content_size);
void AbortStream(const std::string& extension_id,
« no previous file with comments | « no previous file | chrome/browser/extensions/api/streams_private/streams_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698