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

Unified Diff: chrome/browser/extensions/api/webview/webview_api.h

Issue 24243007: Allow webview API in an unblessed extension process (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased and comments added Created 7 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
Index: chrome/browser/extensions/api/webview/webview_api.h
diff --git a/chrome/browser/extensions/api/webview/webview_api.h b/chrome/browser/extensions/api/webview/webview_api.h
index 59f9d975073894e00ac898bb040e93f78bc46583..29502d2ca65b1488a18d262647dc5891911c7d67 100644
--- a/chrome/browser/extensions/api/webview/webview_api.h
+++ b/chrome/browser/extensions/api/webview/webview_api.h
@@ -7,6 +7,10 @@
#include "chrome/browser/extensions/api/execute_code_function.h"
+// WARNING: Webview could be loaded in an unblessed context, thus any new
+// APIs must be guarded with process ID check to prevent abuse by normal
+// renderer processes.
not at google - send to devlin 2013/09/25 17:14:03 To enforce this at another level, consider having
guohui 2013/09/25 22:43:51 Done.
+
namespace extensions {
class WebviewClearDataFunction : public AsyncExtensionFunction {
« no previous file with comments | « no previous file | chrome/common/extensions/api/_api_features.json » ('j') | chrome/renderer/extensions/dispatcher.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698