summaryrefslogtreecommitdiffstats
path: root/extensions/common/extension_messages.h
diff options
context:
space:
mode:
authorsammc <sammc@chromium.org>2015-01-15 20:38:53 -0800
committerCommit bot <commit-bot@chromium.org>2015-01-16 04:40:02 +0000
commit02d138dca286c1429d1f1f6fa2dbcdd6d4304bd0 (patch)
tree8fa30ece8aefd7466a7d4f458f5a0aee31024576 /extensions/common/extension_messages.h
parent6f35f92af0e73d407b3ebde95019e93775631a5d (diff)
downloadchromium_src-02d138dca286c1429d1f1f6fa2dbcdd6d4304bd0.zip
chromium_src-02d138dca286c1429d1f1f6fa2dbcdd6d4304bd0.tar.gz
chromium_src-02d138dca286c1429d1f1f6fa2dbcdd6d4304bd0.tar.bz2
Abort streams when the containing RenderFrameHost navigates or closes.
Previously, streams used by MimeHandlerViewGuest can be leaked if the guest is closed before it finishes reading from the stream, blocking further access to that resource. This CL adds tracking of RenderFrameHosts containing MimeHandlerViewGuests and aborts the corresponding streams when the containing RenderFrameHost navigates or closes. BUG=436345 Review URL: https://codereview.chromium.org/834113003 Cr-Commit-Position: refs/heads/master@{#311839}
Diffstat (limited to 'extensions/common/extension_messages.h')
-rw-r--r--extensions/common/extension_messages.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/extensions/common/extension_messages.h b/extensions/common/extension_messages.h
index 9e3e6bb..f5505438 100644
--- a/extensions/common/extension_messages.h
+++ b/extensions/common/extension_messages.h
@@ -798,11 +798,9 @@ IPC_MESSAGE_CONTROL4(ExtensionHostMsg_AttachGuest,
base::DictionaryValue /* attach_params */)
// Tells the browser to create a mime handler guest view for a plugin.
-IPC_MESSAGE_CONTROL5(ExtensionHostMsg_CreateMimeHandlerViewGuest,
+IPC_MESSAGE_CONTROL3(ExtensionHostMsg_CreateMimeHandlerViewGuest,
int /* render_frame_id */,
- std::string /* embedder_url */,
- std::string /* content_url */,
- std::string /* mime_type */,
+ std::string /* view_id */,
int /* element_instance_id */)
// Sent when a query selector request is made from the automation API.