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

Unified Diff: webkit/api/public/WebKit.h

Issue 293021: Introduce WebSecurityPolicy for security related methods (Closed)
Patch Set: socket needs weburl import Created 11 years, 2 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 | « chrome/renderer/render_thread.cc ('k') | webkit/api/public/WebSecurityPolicy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/api/public/WebKit.h
diff --git a/webkit/api/public/WebKit.h b/webkit/api/public/WebKit.h
index cf2cea126640bebfb47ac36c5c3779cc315a570d..3be1abe5e9fd3b54266dfd43f781942403b5bec3 100644
--- a/webkit/api/public/WebKit.h
+++ b/webkit/api/public/WebKit.h
@@ -32,11 +32,9 @@
#define WebKit_h
#include "WebCommon.h"
-#include "WebURL.h"
namespace WebKit {
class WebKitClient;
- class WebString;
// Must be called on the thread that will be the main WebKit thread before
// using any other WebKit APIs. The provided WebKitClient must be non-null
@@ -56,16 +54,6 @@ namespace WebKit {
WEBKIT_API void setLayoutTestMode(bool);
WEBKIT_API bool layoutTestMode();
- // Registers a URL scheme to be treated as a local scheme (i.e., with the
- // same security rules as those applied to "file" URLs). This means that
- // normal pages cannot link to or access URLs of this scheme.
- WEBKIT_API void registerURLSchemeAsLocal(const WebString&);
-
- // Registers a URL scheme to be treated as a noAccess scheme. This means
- // that pages loaded with this URL scheme cannot access pages loaded with
- // any other URL scheme.
- WEBKIT_API void registerURLSchemeAsNoAccess(const WebString&);
-
// Enables HTML5 media support.
WEBKIT_API void enableMediaPlayer();
@@ -77,12 +65,6 @@ namespace WebKit {
WEBKIT_API void enableDatabases();
WEBKIT_API bool databasesEnabled();
- // Support for whitelisting access to origins beyond the same-origin policy.
- WEBKIT_API void whiteListAccessFromOrigin(
- const WebURL& sourceOrigin, const WebString& destinationProtocol,
- const WebString& destinationHost, bool allowDestinationSubdomains);
- WEBKIT_API void resetOriginAccessWhiteLists();
-
// Enables HTML5 Web Sockets support.
WEBKIT_API void enableWebSockets();
WEBKIT_API bool webSocketsEnabled();
« no previous file with comments | « chrome/renderer/render_thread.cc ('k') | webkit/api/public/WebSecurityPolicy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698