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

Unified Diff: extensions/renderer/dispatcher.cc

Issue 1312653003: Fix for WebView accessible resources. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments by kalman@. Created 5 years, 3 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
« extensions/renderer/dispatcher.h ('K') | « extensions/renderer/dispatcher.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/dispatcher.cc
diff --git a/extensions/renderer/dispatcher.cc b/extensions/renderer/dispatcher.cc
index 34324e2be1bf10a27c375337e720fd03c5a85029..5804d31f143ae946a83af3b4007e7743cf073c5b 100644
--- a/extensions/renderer/dispatcher.cc
+++ b/extensions/renderer/dispatcher.cc
@@ -840,6 +840,8 @@ bool Dispatcher::OnControlMessageReceived(const IPC::Message& message) {
IPC_MESSAGE_HANDLER(ExtensionMsg_SetScriptingWhitelist,
OnSetScriptingWhitelist)
IPC_MESSAGE_HANDLER(ExtensionMsg_SetSystemFont, OnSetSystemFont)
+ IPC_MESSAGE_HANDLER(ExtensionMsg_SetWebViewPartitionID,
+ OnSetWebViewPartitionID)
IPC_MESSAGE_HANDLER(ExtensionMsg_ShouldSuspend, OnShouldSuspend)
IPC_MESSAGE_HANDLER(ExtensionMsg_Suspend, OnSuspend)
IPC_MESSAGE_HANDLER(ExtensionMsg_TransferBlobs, OnTransferBlobs)
@@ -1054,6 +1056,14 @@ void Dispatcher::OnSetSystemFont(const std::string& font_family,
system_font_size_ = font_size;
}
+void Dispatcher::OnSetWebViewPartitionID(const std::string& partition_id) {
+ // |webview_partition_id_| cannot be changed once set.
+ DCHECK(webview_partition_id_.empty() ||
not at google - send to devlin 2015/09/03 20:17:54 Make this a CHECK, then you don't need the extra "
paulmeyer 2015/09/08 18:51:36 Done.
+ webview_partition_id_ == partition_id);
+ if (webview_partition_id_.empty())
+ webview_partition_id_ = partition_id;
+}
+
void Dispatcher::OnShouldSuspend(const std::string& extension_id,
uint64 sequence_id) {
RenderThread::Get()->Send(
« extensions/renderer/dispatcher.h ('K') | « extensions/renderer/dispatcher.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698