OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_GETTER_H_ | 5 #ifndef CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_GETTER_H_ |
6 #define CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_GETTER_H_ | 6 #define CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_GETTER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
| 10 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
11 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" | 12 #include "chrome/browser/custom_handlers/protocol_handler_registry.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 #include "net/url_request/url_request_job_factory.h" | 15 #include "net/url_request/url_request_job_factory.h" |
15 | 16 |
16 class ChromeURLRequestContextFactory; | 17 class ChromeURLRequestContextFactory; |
17 class IOThread; | 18 class IOThread; |
18 class Profile; | 19 class Profile; |
19 class ProfileIOData; | 20 class ProfileIOData; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 // NULL before initialization and after invalidation. | 94 // NULL before initialization and after invalidation. |
94 // Otherwise, it is the URLRequestContext instance that | 95 // Otherwise, it is the URLRequestContext instance that |
95 // was lazily created by GetURLRequestContext(). | 96 // was lazily created by GetURLRequestContext(). |
96 // Access only from the IO thread. | 97 // Access only from the IO thread. |
97 net::URLRequestContext* url_request_context_; | 98 net::URLRequestContext* url_request_context_; |
98 | 99 |
99 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContextGetter); | 100 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContextGetter); |
100 }; | 101 }; |
101 | 102 |
102 #endif // CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_GETTER_H_ | 103 #endif // CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_GETTER_H_ |
OLD | NEW |