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

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

Issue 7529043: Rename NET_API to NET_EXPORT, and rename NET_TEST to NET_EXPORT_PRIVATE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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) 2011 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/task.h" 10 #include "base/task.h"
11 #include "net/base/net_api.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_API 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 30 // See http://crbug.com/77835 for why this shouldn't be used. Instead use
31 // GetURLRequestContext()->cookie_store(); 31 // GetURLRequestContext()->cookie_store();
32 virtual CookieStore* DONTUSEME_GetCookieStore(); 32 virtual CookieStore* DONTUSEME_GetCookieStore();
33 33
34 // Returns a MessageLoopProxy corresponding to the thread on which the 34 // Returns a MessageLoopProxy corresponding to the thread on which the
(...skipping 19 matching lines...) Expand all
54 54
55 struct URLRequestContextGetterTraits { 55 struct URLRequestContextGetterTraits {
56 static void Destruct(const URLRequestContextGetter* context_getter) { 56 static void Destruct(const URLRequestContextGetter* context_getter) {
57 context_getter->OnDestruct(); 57 context_getter->OnDestruct();
58 } 58 }
59 }; 59 };
60 60
61 } // namespace net 61 } // namespace net
62 62
63 #endif // CHROME_COMMON_NET_URL_REQUEST_CONTEXT_GETTER_H_ 63 #endif // CHROME_COMMON_NET_URL_REQUEST_CONTEXT_GETTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698