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

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 5378d126f546ccc6ee78145f587a72a8b9d75073..06b43f4bb2b7f5ab43c52e3a24ce041acced3272 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,21 +23,27 @@ class MimeHandlerViewGuestDelegate;
class StreamContainer {
public:
StreamContainer(scoped_ptr<content::StreamInfo> stream,
+ int tab_id,
+ bool embedded,
const GURL& handler_url,
const std::string& extension_id);
~StreamContainer();
// Aborts the stream.
- void Abort();
+ void Abort(const base::Closure& callback);
base::WeakPtr<StreamContainer> GetWeakPtr();
const content::StreamInfo* stream_info() const { return stream_.get(); }
+ bool embedded() const { return embedded_; }
+ int tab_id() const { return tab_id_; }
GURL handler_url() const { return handler_url_; }
std::string extension_id() const { return extension_id_; }
private:
const scoped_ptr<content::StreamInfo> stream_;
+ const bool embedded_;
+ const int tab_id_;
const GURL handler_url_;
const std::string extension_id_;

Powered by Google App Engine
This is Rietveld 408576698