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

Unified Diff: content/public/browser/resource_dispatcher_host_delegate.h

Issue 1164073006: Make the logic for stream interception by MimeHandlerViews consistent with starting the plugin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: content/public/browser/resource_dispatcher_host_delegate.h
diff --git a/content/public/browser/resource_dispatcher_host_delegate.h b/content/public/browser/resource_dispatcher_host_delegate.h
index 9a08117d2fb9f2b7a847fd0dc723babe58a77a71..fecff2beb5bc5b68e0d477d6cd28c06f5fd97786 100644
--- a/content/public/browser/resource_dispatcher_host_delegate.h
+++ b/content/public/browser/resource_dispatcher_host_delegate.h
@@ -8,6 +8,7 @@
#include <string>
#include "base/basictypes.h"
+#include "base/files/file_path.h"
#include "base/memory/scoped_ptr.h"
#include "content/common/content_export.h"
#include "content/public/common/resource_type.h"
@@ -96,10 +97,12 @@ class CONTENT_EXPORT ResourceDispatcherHostDelegate {
// If the stream will be rendered in a BrowserPlugin, |payload| will contain
// the data that should be given to the old ResourceHandler to forward to the
// renderer process.
- virtual bool ShouldInterceptResourceAsStream(net::URLRequest* request,
- const std::string& mime_type,
- GURL* origin,
- std::string* payload);
+ virtual bool ShouldInterceptResourceAsStream(
+ net::URLRequest* request,
+ const base::FilePath& plugin_path,
Sam McNally 2015/07/03 06:21:31 Please document |plugin_path|.
raymes 2015/07/06 02:30:04 Done.
+ const std::string& mime_type,
+ GURL* origin,
+ std::string* payload);
// Informs the delegate that a Stream was created. The Stream can be read from
// the blob URL of the Stream, but can only be read once.

Powered by Google App Engine
This is Rietveld 408576698