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

Side by Side Diff: net/base/cookie_store_test_helpers.cc

Issue 8915024: Retry 114494 - Remove BindStateHolder and have Bind() return a Callback<> object directly." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 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 | « net/base/cookie_store_test_helpers.h ('k') | net/http/http_proxy_client_socket.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 "net/base/cookie_store_test_helpers.h" 5 #include "net/base/cookie_store_test_helpers.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 8
9 namespace net { 9 namespace net {
10 10
(...skipping 15 matching lines...) Expand all
26 cookie_info_ = cookie_info; 26 cookie_info_ = cookie_info;
27 did_run_ = true; 27 did_run_ = true;
28 } 28 }
29 29
30 void DelayedCookieMonster::SetCookiesInternalCallback(bool result) { 30 void DelayedCookieMonster::SetCookiesInternalCallback(bool result) {
31 result_ = result; 31 result_ = result;
32 did_run_ = true; 32 did_run_ = true;
33 } 33 }
34 34
35 void DelayedCookieMonster::GetCookiesWithOptionsInternalCallback( 35 void DelayedCookieMonster::GetCookiesWithOptionsInternalCallback(
36 std::string cookie) { 36 const std::string& cookie) {
37 cookie_ = cookie; 37 cookie_ = cookie;
38 did_run_ = true; 38 did_run_ = true;
39 } 39 }
40 40
41 void DelayedCookieMonster::GetCookiesWithInfoAsync( 41 void DelayedCookieMonster::GetCookiesWithInfoAsync(
42 const GURL& url, 42 const GURL& url,
43 const CookieOptions& options, 43 const CookieOptions& options,
44 const CookieMonster::GetCookieInfoCallback& callback) { 44 const CookieMonster::GetCookieInfoCallback& callback) {
45 did_run_ = false; 45 did_run_ = false;
46 cookie_monster_->GetCookiesWithInfoAsync( 46 cookie_monster_->GetCookiesWithInfoAsync(
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 const std::string& cookie_name, 138 const std::string& cookie_name,
139 const base::Closure& callback) { 139 const base::Closure& callback) {
140 ADD_FAILURE(); 140 ADD_FAILURE();
141 } 141 }
142 142
143 CookieMonster* DelayedCookieMonster::GetCookieMonster() { 143 CookieMonster* DelayedCookieMonster::GetCookieMonster() {
144 return cookie_monster_; 144 return cookie_monster_;
145 } 145 }
146 146
147 } // namespace net 147 } // namespace net
OLDNEW
« no previous file with comments | « net/base/cookie_store_test_helpers.h ('k') | net/http/http_proxy_client_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698