summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/api/cookies/cookies_helpers.h
diff options
context:
space:
mode:
authorbattre@chromium.org <battre@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-18 13:13:34 +0000
committerbattre@chromium.org <battre@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-18 13:13:34 +0000
commit5b9bc3505d5cd23898d0bdb350f33956070cc3a6 (patch)
tree2e28070459f0324ce2dd9288e803f8aa095781fd /chrome/browser/extensions/api/cookies/cookies_helpers.h
parent64c186bdf8949a84c1b1e53da12710f50e51336b (diff)
downloadchromium_src-5b9bc3505d5cd23898d0bdb350f33956070cc3a6.zip
chromium_src-5b9bc3505d5cd23898d0bdb350f33956070cc3a6.tar.gz
chromium_src-5b9bc3505d5cd23898d0bdb350f33956070cc3a6.tar.bz2
Move CanonicalCookie into separate files
BUG=137014,112155 TEST=no TBR=sky@chromium.org, erg@chromium.org, tony@chromium.org, eroman@chromium.org Review URL: https://chromiumcodereview.appspot.com/10785017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147222 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/api/cookies/cookies_helpers.h')
-rw-r--r--chrome/browser/extensions/api/cookies/cookies_helpers.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/chrome/browser/extensions/api/cookies/cookies_helpers.h b/chrome/browser/extensions/api/cookies/cookies_helpers.h
index 77d1e5d..39e2087 100644
--- a/chrome/browser/extensions/api/cookies/cookies_helpers.h
+++ b/chrome/browser/extensions/api/cookies/cookies_helpers.h
@@ -22,6 +22,10 @@ class DictionaryValue;
class ListValue;
}
+namespace net {
+class CanonicalCookie;
+}
+
namespace extensions {
class Extension;
@@ -41,9 +45,8 @@ const char* GetStoreIdFromProfile(Profile* profile);
// Constructs a Cookie object as defined by the cookies API. This function
// allocates a new DictionaryValue object; the caller is responsible for
// freeing it.
-base::DictionaryValue* CreateCookieValue(
- const net::CookieMonster::CanonicalCookie& cookie,
- const std::string& store_id);
+base::DictionaryValue* CreateCookieValue(const net::CanonicalCookie& cookie,
+ const std::string& store_id);
// Constructs a CookieStore object as defined by the cookies API. This function
// allocates a new DictionaryValue object; the caller is responsible for
@@ -62,8 +65,7 @@ void GetCookieListFromStore(
// a cookie against the extension's host permissions. The Secure
// property of the cookie defines the URL scheme, and the cookie's
// domain becomes the URL host.
-GURL GetURLFromCanonicalCookie(
- const net::CookieMonster::CanonicalCookie& cookie);
+GURL GetURLFromCanonicalCookie(const net::CanonicalCookie& cookie);
// Looks through all cookies in the given cookie store, and appends to the
// match list all the cookies that both match the given URL and cookie details
@@ -94,7 +96,7 @@ class MatchFilter {
// Returns true if the given cookie matches the properties in the match
// filter.
- bool MatchesCookie(const net::CookieMonster::CanonicalCookie& cookie);
+ bool MatchesCookie(const net::CanonicalCookie& cookie);
private:
// Returns true if the details dictionary contains a string with the given