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

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

Issue 7833042: Finalize a CL originally by departed intern ycxiao@ that detaches the loading of cookies from the... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/browsing_data_remover.cc » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_util.h" 5 #include "chrome/browser/automation/automation_util.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 24 matching lines...) Expand all
35 *cookies = cookie_line; 35 *cookies = cookie_line;
36 event->Signal(); 36 event->Signal();
37 } 37 }
38 38
39 void GetCookiesOnIOThread( 39 void GetCookiesOnIOThread(
40 const GURL& url, 40 const GURL& url,
41 const scoped_refptr<net::URLRequestContextGetter>& context_getter, 41 const scoped_refptr<net::URLRequestContextGetter>& context_getter,
42 base::WaitableEvent* event, 42 base::WaitableEvent* event,
43 std::string* cookies) { 43 std::string* cookies) {
44 context_getter->GetURLRequestContext()->cookie_store()-> 44 context_getter->GetURLRequestContext()->cookie_store()->
45 GetCookiesAsync(url, 45 GetCookiesWithOptionsAsync(url, net::CookieOptions(),
46 base::Bind(&GetCookiesCallback, event, cookies)); 46 base::Bind(&GetCookiesCallback, event, cookies));
47 } 47 }
48 48
49 void GetCanonicalCookiesCallback( 49 void GetCanonicalCookiesCallback(
50 base::WaitableEvent* event, 50 base::WaitableEvent* event,
51 net::CookieList* cookie_list, 51 net::CookieList* cookie_list,
52 const net::CookieList& cookies) { 52 const net::CookieList& cookies) {
53 *cookie_list = cookies; 53 *cookie_list = cookies;
54 event->Signal(); 54 event->Signal();
55 } 55 }
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 IPC::Message* message) { 378 IPC::Message* message) {
379 bool active = AppModalDialogQueue::GetInstance()->HasActiveDialog(); 379 bool active = AppModalDialogQueue::GetInstance()->HasActiveDialog();
380 if (active) { 380 if (active) {
381 AutomationJSONReply(provider, message).SendError( 381 AutomationJSONReply(provider, message).SendError(
382 "Command cannot be performed because a modal dialog is active"); 382 "Command cannot be performed because a modal dialog is active");
383 } 383 }
384 return active; 384 return active;
385 } 385 }
386 386
387 } // namespace automation_util 387 } // namespace automation_util
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/browsing_data_remover.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698