| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_NET_URL_REQUEST_CONTEXT_GETTER_H_ |
| 6 #define CHROME_BROWSER_NET_URL_REQUEST_CONTEXT_GETTER_H_ |
| 7 |
| 8 #include "base/ref_counted.h" |
| 9 |
| 10 namespace net { |
| 11 class CookieStore; |
| 12 } |
| 13 |
| 14 class URLRequestContext; |
| 15 |
| 16 // Interface for retrieving an URLRequestContext. |
| 17 class URLRequestContextGetter |
| 18 : public base::RefCountedThreadSafe<URLRequestContextGetter> { |
| 19 public: |
| 20 virtual ~URLRequestContextGetter() {} |
| 21 |
| 22 virtual URLRequestContext* GetURLRequestContext() = 0; |
| 23 |
| 24 // Defaults to GetURLRequestContext()->cookie_store(), but |
| 25 // implementations can override it. |
| 26 virtual net::CookieStore* GetCookieStore(); |
| 27 }; |
| 28 |
| 29 #endif // CHROME_BROWSER_NET_URL_REQUEST_CONTEXT_GETTER_H_ |
| 30 |
| OLD | NEW |