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

Unified Diff: chrome/browser/automation/automation_util.cc

Issue 10785017: Move CanonicalCookie into separate files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added missing include Created 8 years, 5 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 | « no previous file | chrome/browser/browsing_data_cookie_helper.h » ('j') | net/cookies/canonical_cookie.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/automation/automation_util.cc
diff --git a/chrome/browser/automation/automation_util.cc b/chrome/browser/automation/automation_util.cc
index 12057f5d4f669b07a5395687db25c4c3341d5c2f..233799307f9ab9eac4902bae4cdaf2614f722904 100644
--- a/chrome/browser/automation/automation_util.cc
+++ b/chrome/browser/automation/automation_util.cc
@@ -33,6 +33,7 @@
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/web_contents.h"
+#include "net/cookies/canonical_cookie.h"
#include "net/cookies/cookie_monster.h"
#include "net/cookies/cookie_store.h"
#include "net/url_request/url_request_context.h"
@@ -101,7 +102,7 @@ void SetCookieOnIOThread(
void SetCookieWithDetailsOnIOThread(
const GURL& url,
- const net::CookieMonster::CanonicalCookie& cookie,
+ const net::CanonicalCookie& cookie,
const std::string& original_domain,
const scoped_refptr<net::URLRequestContextGetter>& context_getter,
base::WaitableEvent* event,
@@ -255,7 +256,7 @@ void GetCookiesJSON(AutomationProvider* provider,
ListValue* list = new ListValue();
for (size_t i = 0; i < cookie_list.size(); ++i) {
- const net::CookieMonster::CanonicalCookie& cookie = cookie_list[i];
+ const net::CanonicalCookie& cookie = cookie_list[i];
DictionaryValue* cookie_dict = new DictionaryValue();
cookie_dict->SetString("name", cookie.Name());
cookie_dict->SetString("value", cookie.Value());
@@ -364,8 +365,8 @@ void SetCookieJSON(AutomationProvider* provider,
return;
}
- scoped_ptr<net::CookieMonster::CanonicalCookie> cookie(
- net::CookieMonster::CanonicalCookie::Create(
+ scoped_ptr<net::CanonicalCookie> cookie(
+ net::CanonicalCookie::Create(
GURL(url), name, value, domain, path,
mac_key, mac_algorithm, base::Time(),
base::Time::FromDoubleT(expiry), secure, http_only));
« no previous file with comments | « no previous file | chrome/browser/browsing_data_cookie_helper.h » ('j') | net/cookies/canonical_cookie.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698