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

Unified Diff: extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest.h

Issue 797183005: Add a mimeHandler extension API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@streams-lifetime
Patch Set: Created 5 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: extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest.h
diff --git a/extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest.h b/extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest.h
index a1a5c2136d31f0f6e5c6d3a639ed0bf478d2e460..cba159e54ecf7902be5676016e7ba6b1b01bc7ea 100644
--- a/extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest.h
+++ b/extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest.h
@@ -23,6 +23,9 @@ class MimeHandlerViewGuestDelegate;
class StreamContainer {
public:
StreamContainer(scoped_ptr<content::StreamInfo> stream,
+ int tab_id,
+ int64_t expected_content_size,
raymes 2015/01/12 05:26:04 I'm tempted to remove content size because I don't
Sam McNally 2015/01/12 07:13:35 Done.
+ bool embedded,
const GURL& handler_url,
const std::string& extension_id);
~StreamContainer();
@@ -33,11 +36,17 @@ class StreamContainer {
base::WeakPtr<StreamContainer> GetWeakPtr();
const content::StreamInfo* stream_info() { return stream_.get(); }
+ bool embedded() { return embedded_; }
+ int64_t expected_content_size() { return expected_content_size_; }
+ int tab_id() { return tab_id_; }
GURL handler_url() { return handler_url_; }
std::string extension_id() { return extension_id_; }
private:
const scoped_ptr<content::StreamInfo> stream_;
+ const bool embedded_;
+ const int64_t expected_content_size_;
+ const int tab_id_;
const GURL handler_url_;
const std::string extension_id_;

Powered by Google App Engine
This is Rietveld 408576698