summaryrefslogtreecommitdiffstats
path: root/net/base/cookie_policy.h
diff options
context:
space:
mode:
authorwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-11 18:24:21 +0000
committerwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-11 18:24:21 +0000
commitfba87b5c6d4181c147455078c44f80d39f262b2f (patch)
tree4be75b3046cb5ef6fa0a1f6479639996df0565f0 /net/base/cookie_policy.h
parentc59d845257c5245a476ffd4284c506ef58fe008d (diff)
downloadchromium_src-fba87b5c6d4181c147455078c44f80d39f262b2f.zip
chromium_src-fba87b5c6d4181c147455078c44f80d39f262b2f.tar.gz
chromium_src-fba87b5c6d4181c147455078c44f80d39f262b2f.tar.bz2
Reland r74561 after fixing ChromeOS build breakage.
Introduce OffTheRecordProfileIOData and ProfileImplIOData. They both inherit from ProfileIOData. The former is for the off the record (incognito) profile. The latter is for the normal ProfileImpl profile. All of the IO related Profile objects are now initialized at the same time, in the subtype implementations of ProfileIOData::LazyInitializeInternal(). I also took this opportunity to clean URLRequestContext up so it is a class and keeps its member variables private. This required touching a fair number of files. TODO: Remove lots of the refcounting of member variables, since they can now be owned by ProfileIOData. BUG=67237 TEST=none Review URL: http://codereview.chromium.org/6500002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74632 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/cookie_policy.h')
-rw-r--r--net/base/cookie_policy.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/base/cookie_policy.h b/net/base/cookie_policy.h
index c32c8a9..43b689f 100644
--- a/net/base/cookie_policy.h
+++ b/net/base/cookie_policy.h
@@ -21,6 +21,8 @@ enum {
class CookiePolicy {
public:
+ virtual ~CookiePolicy() {}
+
// Determines if the URL's cookies may be read.
//
// Returns:
@@ -57,9 +59,6 @@ class CookiePolicy {
const GURL& first_party_for_cookies,
const std::string& cookie_line,
CompletionCallback* callback) = 0;
-
- protected:
- virtual ~CookiePolicy() {}
};
} // namespace net