OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 IOS_CHROME_BROWSER_NET_IOS_CHROME_URL_REQUEST_CONTEXT_GETTER_H_ | 5 #ifndef IOS_CHROME_BROWSER_NET_IOS_CHROME_URL_REQUEST_CONTEXT_GETTER_H_ |
6 #define IOS_CHROME_BROWSER_NET_IOS_CHROME_URL_REQUEST_CONTEXT_GETTER_H_ | 6 #define IOS_CHROME_BROWSER_NET_IOS_CHROME_URL_REQUEST_CONTEXT_GETTER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/single_thread_task_runner.h" |
11 #include "ios/chrome/browser/net/net_types.h" | 12 #include "ios/chrome/browser/net/net_types.h" |
12 #include "net/url_request/url_request_context.h" | 13 #include "net/url_request/url_request_context.h" |
13 #include "net/url_request/url_request_context_getter.h" | 14 #include "net/url_request/url_request_context_getter.h" |
14 | 15 |
15 class ChromeBrowserStateIOData; | 16 class ChromeBrowserStateIOData; |
16 class IOSChromeURLRequestContextFactory; | 17 class IOSChromeURLRequestContextFactory; |
17 | 18 |
18 // A net::URLRequestContextGetter subclass used by the browser. This returns a | 19 // A net::URLRequestContextGetter subclass used by the browser. This returns a |
19 // subclass of net::URLRequestContext which can be used to store extra | 20 // subclass of net::URLRequestContext which can be used to store extra |
20 // information about requests. | 21 // information about requests. |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 // NULL before initialization and after invalidation. | 65 // NULL before initialization and after invalidation. |
65 // Otherwise, it is the URLRequestContext instance that | 66 // Otherwise, it is the URLRequestContext instance that |
66 // was lazily created by GetURLRequestContext(). | 67 // was lazily created by GetURLRequestContext(). |
67 // Access only from the IO thread. | 68 // Access only from the IO thread. |
68 net::URLRequestContext* url_request_context_; | 69 net::URLRequestContext* url_request_context_; |
69 | 70 |
70 DISALLOW_COPY_AND_ASSIGN(IOSChromeURLRequestContextGetter); | 71 DISALLOW_COPY_AND_ASSIGN(IOSChromeURLRequestContextGetter); |
71 }; | 72 }; |
72 | 73 |
73 #endif // IOS_CHROME_BROWSER_NET_IOS_CHROME_URL_REQUEST_CONTEXT_GETTER_H_ | 74 #endif // IOS_CHROME_BROWSER_NET_IOS_CHROME_URL_REQUEST_CONTEXT_GETTER_H_ |
OLD | NEW |