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

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: rebase 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 b4a580b50de37e443a2c9d322de432b2ff21bee4..642a6cd3a9e2a7fa3121cecd585b30591843eb1e 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