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

Side by Side Diff: chrome_frame/chrome_frame_automation.cc

Issue 102763005: Remove the ChromeFrame specific cookie code between the renderer and browser process. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome_frame/chrome_frame_automation.h ('k') | chrome_frame/chrome_frame_delegate.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_frame/chrome_frame_automation.h" 5 #include "chrome_frame/chrome_frame_automation.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 967 matching lines...) Expand 10 before | Expand all | Expand 10 after
978 break; 978 break;
979 979
980 case AutomationMsg_DownloadRequestInHost::ID: 980 case AutomationMsg_DownloadRequestInHost::ID:
981 if (ui_thread || (url_fetcher_flags_ & 981 if (ui_thread || (url_fetcher_flags_ &
982 PluginUrlRequestManager::DOWNLOAD_REQUEST_THREADSAFE)) { 982 PluginUrlRequestManager::DOWNLOAD_REQUEST_THREADSAFE)) {
983 AutomationMsg_DownloadRequestInHost::Dispatch(&msg, url_fetcher_, this, 983 AutomationMsg_DownloadRequestInHost::Dispatch(&msg, url_fetcher_, this,
984 &PluginUrlRequestManager::DownloadUrlRequestInHost); 984 &PluginUrlRequestManager::DownloadUrlRequestInHost);
985 return true; 985 return true;
986 } 986 }
987 break; 987 break;
988
989 case AutomationMsg_GetCookiesFromHost::ID:
990 if (ui_thread || (url_fetcher_flags_ &
991 PluginUrlRequestManager::COOKIE_REQUEST_THREADSAFE)) {
992 AutomationMsg_GetCookiesFromHost::Dispatch(&msg, url_fetcher_, this,
993 &PluginUrlRequestManager::GetCookiesFromHost);
994 return true;
995 }
996 break;
997
998 case AutomationMsg_SetCookieAsync::ID:
999 if (ui_thread || (url_fetcher_flags_ &
1000 PluginUrlRequestManager::COOKIE_REQUEST_THREADSAFE)) {
1001 AutomationMsg_SetCookieAsync::Dispatch(&msg, url_fetcher_, this,
1002 &PluginUrlRequestManager::SetCookiesInHost);
1003 return true;
1004 }
1005 break;
1006 } 988 }
1007 989
1008 PostTask( 990 PostTask(
1009 FROM_HERE, 991 FROM_HERE,
1010 base::Bind( 992 base::Bind(
1011 base::IgnoreResult( 993 base::IgnoreResult(
1012 &ChromeFrameAutomationClient::ProcessUrlRequestMessage), 994 &ChromeFrameAutomationClient::ProcessUrlRequestMessage),
1013 base::Unretained(this), tab, msg, true)); 995 base::Unretained(this), tab, msg, true));
1014 return true; 996 return true;
1015 } 997 }
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
1280 automation_server_->Send(new AutomationMsg_RequestData( 1262 automation_server_->Send(new AutomationMsg_RequestData(
1281 tab_->handle(), request_id, data)); 1263 tab_->handle(), request_id, data));
1282 } 1264 }
1283 1265
1284 void ChromeFrameAutomationClient::OnResponseEnd( 1266 void ChromeFrameAutomationClient::OnResponseEnd(
1285 int request_id, 1267 int request_id,
1286 const net::URLRequestStatus& status) { 1268 const net::URLRequestStatus& status) {
1287 automation_server_->Send(new AutomationMsg_RequestEnd( 1269 automation_server_->Send(new AutomationMsg_RequestEnd(
1288 tab_->handle(), request_id, status)); 1270 tab_->handle(), request_id, status));
1289 } 1271 }
1290
1291 void ChromeFrameAutomationClient::OnCookiesRetrieved(bool success,
1292 const GURL& url, const std::string& cookie_string, int cookie_id) {
1293 automation_server_->Send(new AutomationMsg_GetCookiesHostResponse(
1294 tab_->handle(), success, url, cookie_string, cookie_id));
1295 }
OLDNEW
« no previous file with comments | « chrome_frame/chrome_frame_automation.h ('k') | chrome_frame/chrome_frame_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698