diff options
author | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-11 17:47:10 +0000 |
---|---|---|
committer | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-11 17:47:10 +0000 |
commit | 99c773d9f8244e0d339bbc07accf2e866b5051cc (patch) | |
tree | bb0998432bc4b3537ac066110c615be13d57d749 /webkit/tools/test_shell/test_webview_delegate.h | |
parent | a4b7bef339f61cb9da5e7985a27b65fab03b1ec3 (diff) | |
download | chromium_src-99c773d9f8244e0d339bbc07accf2e866b5051cc.zip chromium_src-99c773d9f8244e0d339bbc07accf2e866b5051cc.tar.gz chromium_src-99c773d9f8244e0d339bbc07accf2e866b5051cc.tar.bz2 |
Add setWillSendRequestClearHeader to LayoutTestController.
See https://bugs.webkit.org/show_bug.cgi?id=35920 for the webkit side.
TEST=http/tests/security/no-referrer.html
BUG=none
Review URL: http://codereview.chromium.org/884001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41286 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/test_webview_delegate.h')
-rw-r--r-- | webkit/tools/test_shell/test_webview_delegate.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/webkit/tools/test_shell/test_webview_delegate.h b/webkit/tools/test_shell/test_webview_delegate.h index 4bd36f5..8b12590 100644 --- a/webkit/tools/test_shell/test_webview_delegate.h +++ b/webkit/tools/test_shell/test_webview_delegate.h @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -16,6 +16,7 @@ #endif #include <map> +#include <set> #include <string> #if defined(TOOLKIT_USES_GTK) @@ -264,6 +265,13 @@ class TestWebViewDelegate : public WebKit::WebViewClient, void SetCustomPolicyDelegate(bool is_custom, bool is_permissive); void WaitForPolicyDelegate(); + void set_clear_header(const std::string& header) { + clear_headers_.insert(header); + } + const std::set<std::string>& clear_headers() { + return clear_headers_; + } + void set_block_redirects(bool block_redirects) { block_redirects_ = block_redirects; } @@ -392,6 +400,9 @@ class TestWebViewDelegate : public WebKit::WebViewClient, // true if we want to enable selection of trailing whitespaces bool select_trailing_whitespace_enabled_; + // Set of headers to clear in willSendRequest. + std::set<std::string> clear_headers_; + // true if we should block any redirects bool block_redirects_; |