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

Unified Diff: extensions/browser/guest_view/web_view/web_view_guest.h

Issue 1312653003: Fix for WebView accessible resources. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments by lfg@. Created 5 years, 4 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: extensions/browser/guest_view/web_view/web_view_guest.h
diff --git a/extensions/browser/guest_view/web_view/web_view_guest.h b/extensions/browser/guest_view/web_view/web_view_guest.h
index 9605ad26df449fff635779928dbc221c2f5f664a..d44b5df4bd5aafe68d500756d59191f55470113c 100644
--- a/extensions/browser/guest_view/web_view/web_view_guest.h
+++ b/extensions/browser/guest_view/web_view/web_view_guest.h
@@ -19,6 +19,8 @@
#include "extensions/browser/guest_view/web_view/web_view_permission_types.h"
#include "extensions/browser/script_executor.h"
+struct ExtensionMsg_Loaded_Params;
+
namespace blink {
struct WebFindOptions;
} // nanespace blink
@@ -60,6 +62,12 @@ class WebViewGuest : public guest_view::GuestView<WebViewGuest>,
std::string* partition_name,
bool* in_memory);
+ // Returns the webview partition ID associated with the render process
+ // represented by |render_process_host|, if any. Otherwise, nullptr is
+ // returned.
+ static std::string GetPartitionID(
+ const content::RenderProcessHost* render_process_host);
+
static const char Type[];
// Returns the stored rules registry ID of the given webview. Will generate

Powered by Google App Engine
This is Rietveld 408576698