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

Side by Side Diff: chrome/browser/prerender/prerender_cookie_store.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 | « no previous file | chrome/browser/prerender/prerender_cookie_store.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROME_BROWSER_PRERENDER_PRERENDER_COOKIE_STORE_H_ 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_COOKIE_STORE_H_
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_COOKIE_STORE_H_ 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_COOKIE_STORE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 void DeleteAllCreatedBetweenForHostAsync( 77 void DeleteAllCreatedBetweenForHostAsync(
78 const base::Time delete_begin, 78 const base::Time delete_begin,
79 const base::Time delete_end, 79 const base::Time delete_end,
80 const GURL& url, 80 const GURL& url,
81 const DeleteCallback& callback) override; 81 const DeleteCallback& callback) override;
82 82
83 void DeleteSessionCookiesAsync(const DeleteCallback&) override; 83 void DeleteSessionCookiesAsync(const DeleteCallback&) override;
84 84
85 net::CookieMonster* GetCookieMonster() override; 85 net::CookieMonster* GetCookieMonster() override;
86 86
87 scoped_ptr<net::CookieStore::CookieChangedSubscription> AddCallbackForCookie(
88 const GURL& url,
89 const std::string& name,
90 const CookieChangedCallback& callback) override;
91
87 // Commits the changes made to the underlying cookie store, and switches 92 // Commits the changes made to the underlying cookie store, and switches
88 // into forwarding mode. To be called on the IO thread. 93 // into forwarding mode. To be called on the IO thread.
89 // |cookie_change_urls| will be populated with all URLs for which cookies 94 // |cookie_change_urls| will be populated with all URLs for which cookies
90 // were updated. 95 // were updated.
91 void ApplyChanges(std::vector<GURL>* cookie_change_urls); 96 void ApplyChanges(std::vector<GURL>* cookie_change_urls);
92 97
93 // Called when a cookie for a URL is changed in the underlying default cookie 98 // Called when a cookie for a URL is changed in the underlying default cookie
94 // store. To be called on the IO thread. If the key corresponding to the URL 99 // store. To be called on the IO thread. If the key corresponding to the URL
95 // was copied or read, the prerender will be cancelled. 100 // was copied or read, the prerender will be cancelled.
96 void OnCookieChangedForURL(net::CookieMonster* cookie_monster, 101 void OnCookieChangedForURL(net::CookieMonster* cookie_monster,
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 156
152 // Indicates whether a cookie conflict has been detected yet. 157 // Indicates whether a cookie conflict has been detected yet.
153 bool cookie_conflict_; 158 bool cookie_conflict_;
154 159
155 DISALLOW_COPY_AND_ASSIGN(PrerenderCookieStore); 160 DISALLOW_COPY_AND_ASSIGN(PrerenderCookieStore);
156 }; 161 };
157 162
158 } // namespace prerender 163 } // namespace prerender
159 164
160 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_COOKIE_STORE_H_ 165 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_COOKIE_STORE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/prerender/prerender_cookie_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698