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

Unified Diff: content/browser/loader/buffered_resource_handler.h

Issue 953793003: Ensuring interception of stream get determined by plugin path before checking mime type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/browser/loader/buffered_resource_handler.h
diff --git a/content/browser/loader/buffered_resource_handler.h b/content/browser/loader/buffered_resource_handler.h
index 4e80ec53bd58e9c731037c14fc10ac3af05b7099..8a41f2ab162ccf153cea274dc608f9c34f6ca0b6 100644
--- a/content/browser/loader/buffered_resource_handler.h
+++ b/content/browser/loader/buffered_resource_handler.h
@@ -56,6 +56,7 @@ class CONTENT_EXPORT BufferedResourceHandler
bool ShouldSniffContent();
bool DetermineMimeType();
+ bool IsHandledByPlugin(bool* defer, bool* result);
mmenke 2015/03/24 14:44:32 This should be documented. We return a boolean, a
raymes 2015/03/25 00:26:32 It was never clear how we call back in the case de
Deepak 2015/03/25 05:43:34 Done.
bool SelectNextHandler(bool* defer);
bool UseAlternateNextHandler(scoped_ptr<ResourceHandler> handler,
const std::string& payload_for_old_handler);
@@ -64,7 +65,7 @@ class CONTENT_EXPORT BufferedResourceHandler
void CallReplayReadCompleted();
bool MustDownload();
- bool HasSupportingPlugin(bool* is_stale);
+ bool GetSupportingPlugin(WebPluginInfo* plugin, bool* stale);
mmenke 2015/03/24 14:44:32 Mind documenting this? Unclear what the return va
raymes 2015/03/25 00:26:32 As you mentioned in your comment, this function ca
Deepak 2015/03/25 05:43:34 Have made this function inline as it is not gettin
// Copies data from |read_buffer_| to |next_handler_|.
bool CopyReadBufferToNextHandler();

Powered by Google App Engine
This is Rietveld 408576698