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

Unified Diff: webkit/api/src/WebKit.cpp

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 | « webkit/api/src/SocketStreamHandle.cpp ('k') | webkit/api/src/WebSecurityPolicy.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/api/src/WebKit.cpp
diff --git a/webkit/api/src/WebKit.cpp b/webkit/api/src/WebKit.cpp
index c0ea7a37159ad235e7683109a9a56b29fbe6210e..7a04fe6b20a142a1dcccc1ca84d9599dc721b9f2 100644
--- a/webkit/api/src/WebKit.cpp
+++ b/webkit/api/src/WebKit.cpp
@@ -32,13 +32,10 @@
#include "WebKit.h"
#include "WebMediaPlayerClientImpl.h"
-#include "WebString.h"
#include "AtomicString.h"
#include "DOMTimer.h"
-#include "FrameLoader.h"
#include "Page.h"
-#include "SecurityOrigin.h"
#include "TextEncoding.h"
#include "WebSocket.h"
#include "WorkerContextExecutionProxy.h"
@@ -97,16 +94,6 @@ bool layoutTestMode()
return s_layoutTestMode;
}
-void registerURLSchemeAsLocal(const WebString& scheme)
-{
- WebCore::SecurityOrigin::registerURLSchemeAsLocal(scheme);
-}
-
-void registerURLSchemeAsNoAccess(const WebString& scheme)
-{
- WebCore::SecurityOrigin::registerURLSchemeAsNoAccess(scheme);
-}
-
void enableMediaPlayer()
{
#if ENABLE(VIDEO)
@@ -131,21 +118,6 @@ bool databasesEnabled()
return s_databasesEnabled;
}
-void whiteListAccessFromOrigin(const WebURL& sourceOrigin,
- const WebString& destinationProtocol,
- const WebString& destinationHost,
- bool allowDestinationSubdomains)
-{
- WebCore::SecurityOrigin::whiteListAccessFromOrigin(
- *WebCore::SecurityOrigin::create(sourceOrigin), destinationProtocol,
- destinationHost, allowDestinationSubdomains);
-}
-
-void resetOriginAccessWhiteLists()
-{
- WebCore::SecurityOrigin::resetOriginAccessWhiteLists();
-}
-
void enableWebSockets()
{
#if ENABLE(WEB_SOCKETS)
« no previous file with comments | « webkit/api/src/SocketStreamHandle.cpp ('k') | webkit/api/src/WebSecurityPolicy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698