summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authordeanm@google.com <deanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-01 12:33:47 +0000
committerdeanm@google.com <deanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-01 12:33:47 +0000
commit2087806f7555fe5bca7d8b8894246c3b2fd2745d (patch)
tree3acde8c1e910b2bbbc09f70817bbedc4f05170b7 /net
parentb5d2066f28e7963b7c752f0bdf9bfb8c2d9fdd2f (diff)
downloadchromium_src-2087806f7555fe5bca7d8b8894246c3b2fd2745d.zip
chromium_src-2087806f7555fe5bca7d8b8894246c3b2fd2745d.tar.gz
chromium_src-2087806f7555fe5bca7d8b8894246c3b2fd2745d.tar.bz2
Forward declare GURL in cookie_policy.
TBR=maruel git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r--net/base/cookie_policy.cc1
-rw-r--r--net/base/cookie_policy.h4
-rw-r--r--net/base/cookie_policy_unittest.cc3
3 files changed, 6 insertions, 2 deletions
diff --git a/net/base/cookie_policy.cc b/net/base/cookie_policy.cc
index da859ee..7126109 100644
--- a/net/base/cookie_policy.cc
+++ b/net/base/cookie_policy.cc
@@ -30,6 +30,7 @@
#include "net/base/cookie_policy.h"
#include "base/logging.h"
+#include "googleurl/src/gurl.h"
#include "net/base/registry_controlled_domain.h"
namespace net {
diff --git a/net/base/cookie_policy.h b/net/base/cookie_policy.h
index 6c7b0e6..ccc4115 100644
--- a/net/base/cookie_policy.h
+++ b/net/base/cookie_policy.h
@@ -30,7 +30,9 @@
#ifndef NET_BASE_COOKIE_POLICY_H__
#define NET_BASE_COOKIE_POLICY_H__
-#include "googleurl/src/gurl.h"
+#include "base/basictypes.h"
+
+class GURL;
namespace net {
diff --git a/net/base/cookie_policy_unittest.cc b/net/base/cookie_policy_unittest.cc
index 7d2ce8e..37f6005f 100644
--- a/net/base/cookie_policy_unittest.cc
+++ b/net/base/cookie_policy_unittest.cc
@@ -29,6 +29,7 @@
#include "net/base/cookie_policy.h"
#include "testing/gtest/include/gtest/gtest.h"
+#include "googleurl/src/gurl.h"
namespace {
@@ -112,4 +113,4 @@ TEST_F(CookiePolicyTest, BlockAllCookiesTest) {
EXPECT_FALSE(cp.CanSetCookie(url_google_, url_google_mail_));
EXPECT_FALSE(cp.CanSetCookie(url_google_, url_google_analytics_));
EXPECT_FALSE(cp.CanSetCookie(url_google_, GURL()));
-} \ No newline at end of file
+}