OLD | NEW |
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 // Brought to you by number 42. | 5 // Brought to you by number 42. |
6 | 6 |
7 #ifndef NET_COOKIES_COOKIE_STORE_H_ | 7 #ifndef NET_COOKIES_COOKIE_STORE_H_ |
8 #define NET_COOKIES_COOKIE_STORE_H_ | 8 #define NET_COOKIES_COOKIE_STORE_H_ |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 // implementors need to be improved to not behave this way. | 199 // implementors need to be improved to not behave this way. |
200 virtual scoped_ptr<CookieChangedSubscription> AddCallbackForCookie( | 200 virtual scoped_ptr<CookieChangedSubscription> AddCallbackForCookie( |
201 const GURL& url, | 201 const GURL& url, |
202 const std::string& name, | 202 const std::string& name, |
203 const CookieChangedCallback& callback) = 0; | 203 const CookieChangedCallback& callback) = 0; |
204 | 204 |
205 // Returns true if this cookie store is ephemeral, and false if it is backed | 205 // Returns true if this cookie store is ephemeral, and false if it is backed |
206 // by some sort of persistence layer. | 206 // by some sort of persistence layer. |
207 // TODO(nharper): Remove this method once crbug.com/548423 has been closed. | 207 // TODO(nharper): Remove this method once crbug.com/548423 has been closed. |
208 virtual bool IsEphemeral() = 0; | 208 virtual bool IsEphemeral() = 0; |
| 209 void SetChannelIDServiceID(int id); |
| 210 int GetChannelIDServiceID(); |
209 | 211 |
210 protected: | 212 protected: |
211 CookieStore(); | 213 CookieStore(); |
| 214 int channel_id_service_id_; |
212 }; | 215 }; |
213 | 216 |
214 } // namespace net | 217 } // namespace net |
215 | 218 |
216 #endif // NET_COOKIES_COOKIE_STORE_H_ | 219 #endif // NET_COOKIES_COOKIE_STORE_H_ |
OLD | NEW |