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

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

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 | « net/base/cookie_store.cc ('k') | net/base/cookie_store_test_helpers.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 #ifndef NET_BASE_COOKIE_STORE_TEST_HELPERS_H_ 5 #ifndef NET_BASE_COOKIE_STORE_TEST_HELPERS_H_
6 #define NET_BASE_COOKIE_STORE_TEST_HELPERS_H_ 6 #define NET_BASE_COOKIE_STORE_TEST_HELPERS_H_
7 #pragma once 7 #pragma once
8 8
9 #include "net/base/cookie_monster.h" 9 #include "net/base/cookie_monster.h"
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 const std::string& cookie_name, 58 const std::string& cookie_name,
59 const base::Closure& callback); 59 const base::Closure& callback);
60 60
61 virtual CookieMonster* GetCookieMonster(); 61 virtual CookieMonster* GetCookieMonster();
62 62
63 private: 63 private:
64 64
65 // Be called immediately from CookieMonster. 65 // Be called immediately from CookieMonster.
66 66
67 void GetCookiesInternalCallback( 67 void GetCookiesInternalCallback(
68 std::string* cookie_line, 68 const std::string& cookie_line,
69 std::vector<CookieStore::CookieInfo>* cookie_info); 69 const std::vector<CookieStore::CookieInfo>& cookie_info);
70 70
71 void SetCookiesInternalCallback(bool result); 71 void SetCookiesInternalCallback(bool result);
72 72
73 void GetCookiesWithOptionsInternalCallback(std::string cookie); 73 void GetCookiesWithOptionsInternalCallback(std::string cookie);
74 74
75 // Invoke the original callbacks. 75 // Invoke the original callbacks.
76 76
77 void InvokeGetCookiesCallback( 77 void InvokeGetCookiesCallback(
78 const CookieMonster::GetCookieInfoCallback& callback); 78 const CookieMonster::GetCookieInfoCallback& callback);
79 79
(...skipping 11 matching lines...) Expand all
91 bool did_run_; 91 bool did_run_;
92 bool result_; 92 bool result_;
93 std::string cookie_; 93 std::string cookie_;
94 std::string cookie_line_; 94 std::string cookie_line_;
95 std::vector<CookieStore::CookieInfo> cookie_info_; 95 std::vector<CookieStore::CookieInfo> cookie_info_;
96 }; 96 };
97 97
98 } // namespace net 98 } // namespace net
99 99
100 #endif // NET_BASE_COOKIE_STORE_TEST_HELPERS_H_ 100 #endif // NET_BASE_COOKIE_STORE_TEST_HELPERS_H_
OLDNEW
« no previous file with comments | « net/base/cookie_store.cc ('k') | net/base/cookie_store_test_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698