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

Unified Diff: extensions/renderer/dispatcher.h

Issue 1312653003: Fix for WebView accessible resources. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Small fix. Rebased. 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
« no previous file with comments | « extensions/common/manifest_handlers/webview_info.cc ('k') | extensions/renderer/dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/dispatcher.h
diff --git a/extensions/renderer/dispatcher.h b/extensions/renderer/dispatcher.h
index 9ffbf16da9692dd5c7d6b20cc25dde697f81f262..27adbaec192769ce8165773527d487f6915444f7 100644
--- a/extensions/renderer/dispatcher.h
+++ b/extensions/renderer/dispatcher.h
@@ -79,6 +79,8 @@ class Dispatcher : public content::RenderProcessObserver,
RequestSender* request_sender() { return request_sender_.get(); }
+ const std::string& webview_partition_id() { return webview_partition_id_; }
+
void OnRenderFrameCreated(content::RenderFrame* render_frame);
bool IsExtensionActive(const std::string& extension_id) const;
@@ -166,6 +168,7 @@ class Dispatcher : public content::RenderProcessObserver,
const ExtensionsClient::ScriptingWhitelist& extension_ids);
void OnSetSystemFont(const std::string& font_family,
const std::string& font_size);
+ void OnSetWebViewPartitionID(const std::string& partition_id);
void OnShouldSuspend(const std::string& extension_id, uint64 sequence_id);
void OnSuspend(const std::string& extension_id);
void OnTransferBlobs(const std::vector<std::string>& blob_uuids);
@@ -297,6 +300,11 @@ class Dispatcher : public content::RenderProcessObserver,
// Status of webrequest usage.
bool webrequest_used_;
+ // The WebView partition ID associated with this process's storage partition,
+ // if this renderer is a WebView guest render process. Otherwise, this will be
+ // empty.
+ std::string webview_partition_id_;
+
DISALLOW_COPY_AND_ASSIGN(Dispatcher);
};
« no previous file with comments | « extensions/common/manifest_handlers/webview_info.cc ('k') | extensions/renderer/dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698