Chromium Code Reviews

Side by Side Diff: chrome/browser/automation/automation_profile_impl.cc

Issue 517070: Revert 35769 - Deleting cookies by setting the expires (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/automation/url_request_automation_job.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/automation/automation_profile_impl.h" 5 #include "chrome/browser/automation/automation_profile_impl.h"
6 #include "chrome/browser/automation/automation_resource_message_filter.h" 6 #include "chrome/browser/automation/automation_resource_message_filter.h"
7 #include "chrome/browser/chrome_thread.h" 7 #include "chrome/browser/chrome_thread.h"
8 #include "chrome/browser/net/chrome_url_request_context.h" 8 #include "chrome/browser/net/chrome_url_request_context.h"
9 #include "chrome/browser/profile.h" 9 #include "chrome/browser/profile.h"
10 #include "net/url_request/url_request_context.h" 10 #include "net/url_request/url_request_context.h"
(...skipping 87 matching lines...)
98 original_cookie_store_->SetCookiesWithOptions(url, cookies, options); 98 original_cookie_store_->SetCookiesWithOptions(url, cookies, options);
99 } 99 }
100 virtual std::string GetCookies(const GURL& url) { 100 virtual std::string GetCookies(const GURL& url) {
101 return original_cookie_store_->GetCookies(url); 101 return original_cookie_store_->GetCookies(url);
102 } 102 }
103 virtual std::string GetCookiesWithOptions(const GURL& url, 103 virtual std::string GetCookiesWithOptions(const GURL& url,
104 const net::CookieOptions& options) { 104 const net::CookieOptions& options) {
105 return original_cookie_store_->GetCookiesWithOptions(url, options); 105 return original_cookie_store_->GetCookiesWithOptions(url, options);
106 } 106 }
107 107
108 virtual void DeleteCookie(const GURL& url,
109 const std::string& cookie_name) {
110 return original_cookie_store_->DeleteCookie(url, cookie_name);
111 }
112
113 protected: 108 protected:
114 void SendIPCMessageOnIOThread(IPC::Message* m) { 109 void SendIPCMessageOnIOThread(IPC::Message* m) {
115 if (ChromeThread::CurrentlyOn(ChromeThread::IO)) { 110 if (ChromeThread::CurrentlyOn(ChromeThread::IO)) {
116 automation_client_->Send(m); 111 automation_client_->Send(m);
117 } else { 112 } else {
118 Task* task = NewRunnableMethod(this, 113 Task* task = NewRunnableMethod(this,
119 &AutomationCookieStore::SendIPCMessageOnIOThread, m); 114 &AutomationCookieStore::SendIPCMessageOnIOThread, m);
120 ChromeThread::PostTask(ChromeThread::IO, FROM_HERE, task); 115 ChromeThread::PostTask(ChromeThread::IO, FROM_HERE, task);
121 } 116 }
122 } 117 }
(...skipping 49 matching lines...)
172 ChromeURLRequestContextGetter* request_context = 167 ChromeURLRequestContextGetter* request_context =
173 new ChromeURLRequestContextGetter( 168 new ChromeURLRequestContextGetter(
174 NULL, // Don't register an observer on PrefService. 169 NULL, // Don't register an observer on PrefService.
175 new Factory(original_context, profile, automation_client, 170 new Factory(original_context, profile, automation_client,
176 tab_handle)); 171 tab_handle));
177 return request_context; 172 return request_context;
178 } 173 }
179 174
180 } // namespace AutomationRequestContext 175 } // namespace AutomationRequestContext
181 176
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/automation/url_request_automation_job.h » ('j') | no next file with comments »

Powered by Google App Engine