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

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

Issue 676073003: Add AddCallbackForCookie method to CookieStore. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix PrerenderCookieStore build Created 6 years, 1 month 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
« no previous file with comments | « net/cookies/cookie_store.h ('k') | net/cookies/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) 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 #ifndef NET_COOKIES_COOKIE_STORE_TEST_HELPERS_H_ 5 #ifndef NET_COOKIES_COOKIE_STORE_TEST_HELPERS_H_
6 #define NET_COOKIES_COOKIE_STORE_TEST_HELPERS_H_ 6 #define NET_COOKIES_COOKIE_STORE_TEST_HELPERS_H_
7 7
8 #include "net/cookies/cookie_monster.h" 8 #include "net/cookies/cookie_monster.h"
9 9
10 #include <string> 10 #include <string>
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 void DeleteAllCreatedBetweenForHostAsync( 58 void DeleteAllCreatedBetweenForHostAsync(
59 const base::Time delete_begin, 59 const base::Time delete_begin,
60 const base::Time delete_end, 60 const base::Time delete_end,
61 const GURL& url, 61 const GURL& url,
62 const DeleteCallback& callback) override; 62 const DeleteCallback& callback) override;
63 63
64 void DeleteSessionCookiesAsync(const DeleteCallback&) override; 64 void DeleteSessionCookiesAsync(const DeleteCallback&) override;
65 65
66 CookieMonster* GetCookieMonster() override; 66 CookieMonster* GetCookieMonster() override;
67 67
68 scoped_ptr<CookieStore::CookieChangedSubscription>
69 AddCallbackForCookie(const GURL& url, const std::string& name,
70 const CookieChangedCallback& callback) override;
71
68 private: 72 private:
69 73
70 // Be called immediately from CookieMonster. 74 // Be called immediately from CookieMonster.
71 75
72 void SetCookiesInternalCallback(bool result); 76 void SetCookiesInternalCallback(bool result);
73 77
74 void GetCookiesWithOptionsInternalCallback(const std::string& cookie); 78 void GetCookiesWithOptionsInternalCallback(const std::string& cookie);
75 79
76 // Invoke the original callbacks. 80 // Invoke the original callbacks.
77 81
(...skipping 10 matching lines...) Expand all
88 92
89 bool did_run_; 93 bool did_run_;
90 bool result_; 94 bool result_;
91 std::string cookie_; 95 std::string cookie_;
92 std::string cookie_line_; 96 std::string cookie_line_;
93 }; 97 };
94 98
95 } // namespace net 99 } // namespace net
96 100
97 #endif // NET_COOKIES_COOKIE_STORE_TEST_HELPERS_H_ 101 #endif // NET_COOKIES_COOKIE_STORE_TEST_HELPERS_H_
OLDNEW
« no previous file with comments | « net/cookies/cookie_store.h ('k') | net/cookies/cookie_store_test_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698