| 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 <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" | 12 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" |
| 13 #include "net/url_request/url_request_context.h" | 13 #include "net/url_request/url_request_context.h" |
| 14 #include "net/url_request/url_request_context_getter.h" | 14 #include "net/url_request/url_request_context_getter.h" |
| 15 #include "net/url_request/url_request_job_factory.h" | 15 #include "net/url_request/url_request_job_factory.h" |
| 16 | 16 |
| 17 class ChromeURLRequestContextFactory; | 17 class ChromeURLRequestContextFactory; |
| 18 class IOThread; | |
| 19 class Profile; | 18 class Profile; |
| 20 class ProfileIOData; | 19 class ProfileIOData; |
| 21 struct StoragePartitionDescriptor; | 20 struct StoragePartitionDescriptor; |
| 22 | 21 |
| 23 // A net::URLRequestContextGetter subclass used by the browser. This returns a | 22 // A net::URLRequestContextGetter subclass used by the browser. This returns a |
| 24 // subclass of net::URLRequestContext which can be used to store extra | 23 // subclass of net::URLRequestContext which can be used to store extra |
| 25 // information about requests. | 24 // information about requests. |
| 26 // | 25 // |
| 27 // Most methods are expected to be called on the UI thread, except for | 26 // Most methods are expected to be called on the UI thread, except for |
| 28 // the destructor and GetURLRequestContext(). | 27 // the destructor and GetURLRequestContext(). |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 // NULL before initialization and after invalidation. | 93 // NULL before initialization and after invalidation. |
| 95 // Otherwise, it is the URLRequestContext instance that | 94 // Otherwise, it is the URLRequestContext instance that |
| 96 // was lazily created by GetURLRequestContext(). | 95 // was lazily created by GetURLRequestContext(). |
| 97 // Access only from the IO thread. | 96 // Access only from the IO thread. |
| 98 net::URLRequestContext* url_request_context_; | 97 net::URLRequestContext* url_request_context_; |
| 99 | 98 |
| 100 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContextGetter); | 99 DISALLOW_COPY_AND_ASSIGN(ChromeURLRequestContextGetter); |
| 101 }; | 100 }; |
| 102 | 101 |
| 103 #endif // CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_GETTER_H_ | 102 #endif // CHROME_BROWSER_NET_CHROME_URL_REQUEST_CONTEXT_GETTER_H_ |
| OLD | NEW |