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

Unified Diff: webkit/tools/test_shell/layout_test_controller.cc

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/WebSecurityPolicy.cpp ('k') | webkit/tools/test_shell/test_shell_webkit_init.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/layout_test_controller.cc
diff --git a/webkit/tools/test_shell/layout_test_controller.cc b/webkit/tools/test_shell/layout_test_controller.cc
index 48ec6f0675a79cbd5ea796ed70c0016b8dc0b442..db50fac7ca86c03fbc3bbbc70d2eadef2623ff55 100644
--- a/webkit/tools/test_shell/layout_test_controller.cc
+++ b/webkit/tools/test_shell/layout_test_controller.cc
@@ -18,6 +18,7 @@
#include "webkit/api/public/WebFrame.h"
#include "webkit/api/public/WebKit.h"
#include "webkit/api/public/WebScriptSource.h"
+#include "webkit/api/public/WebSecurityPolicy.h"
#include "webkit/api/public/WebURL.h"
#include "webkit/api/public/WebView.h"
#include "webkit/glue/dom_operations.h"
@@ -32,6 +33,7 @@ using std::wstring;
using WebKit::WebConsoleMessage;
using WebKit::WebScriptSource;
+using WebKit::WebSecurityPolicy;
using WebKit::WebString;
TestShell* LayoutTestController::shell_ = NULL;
@@ -439,7 +441,7 @@ void LayoutTestController::Reset() {
webHistoryItemCount_.Set(0);
SimpleResourceLoaderBridge::SetAcceptAllCookies(false);
- WebKit::resetOriginAccessWhiteLists();
+ WebSecurityPolicy::resetOriginAccessWhiteLists();
setlocale(LC_ALL, "");
@@ -969,10 +971,10 @@ void LayoutTestController::whiteListAccessFromOrigin(
if (!url.isValid())
return;
- WebKit::whiteListAccessFromOrigin(url,
- WebString::fromUTF8(args[1].ToString()),
- WebString::fromUTF8(args[2].ToString()),
- args[3].ToBoolean());
+ WebSecurityPolicy::whiteListAccessFromOrigin(url,
+ WebString::fromUTF8(args[1].ToString()),
+ WebString::fromUTF8(args[2].ToString()),
+ args[3].ToBoolean());
}
void LayoutTestController::clearAllDatabases(
« no previous file with comments | « webkit/api/src/WebSecurityPolicy.cpp ('k') | webkit/tools/test_shell/test_shell_webkit_init.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698