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

Side by Side Diff: net/url_request/url_request_context_getter.h

Issue 9810022: Remove DONTUSEME_GetCookieStore(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 9 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
OLDNEW
1 // Copyright (c) 2011 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 CHROME_COMMON_NET_URL_REQUEST_CONTEXT_GETTER_H_ 5 #ifndef CHROME_COMMON_NET_URL_REQUEST_CONTEXT_GETTER_H_
6 #define CHROME_COMMON_NET_URL_REQUEST_CONTEXT_GETTER_H_ 6 #define CHROME_COMMON_NET_URL_REQUEST_CONTEXT_GETTER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/message_loop_helpers.h" 10 #include "base/message_loop_helpers.h"
11 #include "net/base/net_export.h" 11 #include "net/base/net_export.h"
12 12
13 namespace base { 13 namespace base {
14 class MessageLoopProxy; 14 class MessageLoopProxy;
15 } 15 }
16 16
17 namespace net { 17 namespace net {
18 class CookieStore; 18 class CookieStore;
19 class URLRequestContext; 19 class URLRequestContext;
20 20
21 struct URLRequestContextGetterTraits; 21 struct URLRequestContextGetterTraits;
22 22
23 // Interface for retrieving an net::URLRequestContext. 23 // Interface for retrieving an net::URLRequestContext.
24 class NET_EXPORT URLRequestContextGetter 24 class NET_EXPORT URLRequestContextGetter
25 : public base::RefCountedThreadSafe<URLRequestContextGetter, 25 : public base::RefCountedThreadSafe<URLRequestContextGetter,
26 URLRequestContextGetterTraits> { 26 URLRequestContextGetterTraits> {
27 public: 27 public:
28 virtual URLRequestContext* GetURLRequestContext() = 0; 28 virtual URLRequestContext* GetURLRequestContext() = 0;
29 29
30 // See http://crbug.com/77835 for why this shouldn't be used. Instead use
31 // GetURLRequestContext()->cookie_store();
32 virtual CookieStore* DONTUSEME_GetCookieStore();
33
34 // Returns a MessageLoopProxy corresponding to the thread on which the 30 // Returns a MessageLoopProxy corresponding to the thread on which the
35 // request IO happens (the thread on which the returned net::URLRequestContext 31 // request IO happens (the thread on which the returned net::URLRequestContext
36 // may be used). 32 // may be used).
37 virtual scoped_refptr<base::MessageLoopProxy> 33 virtual scoped_refptr<base::MessageLoopProxy>
38 GetIOMessageLoopProxy() const = 0; 34 GetIOMessageLoopProxy() const = 0;
39 35
40 protected: 36 protected:
41 friend class base::RefCountedThreadSafe<URLRequestContextGetter, 37 friend class base::RefCountedThreadSafe<URLRequestContextGetter,
42 URLRequestContextGetterTraits>; 38 URLRequestContextGetterTraits>;
43 friend class base::DeleteHelper<URLRequestContextGetter>; 39 friend class base::DeleteHelper<URLRequestContextGetter>;
(...skipping 10 matching lines...) Expand all
54 50
55 struct URLRequestContextGetterTraits { 51 struct URLRequestContextGetterTraits {
56 static void Destruct(const URLRequestContextGetter* context_getter) { 52 static void Destruct(const URLRequestContextGetter* context_getter) {
57 context_getter->OnDestruct(); 53 context_getter->OnDestruct();
58 } 54 }
59 }; 55 };
60 56
61 } // namespace net 57 } // namespace net
62 58
63 #endif // CHROME_COMMON_NET_URL_REQUEST_CONTEXT_GETTER_H_ 59 #endif // CHROME_COMMON_NET_URL_REQUEST_CONTEXT_GETTER_H_
OLDNEW
« no previous file with comments | « content/shell/shell_url_request_context_getter.cc ('k') | net/url_request/url_request_context_getter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698