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 COMPONENTS_CRONET_ANDROID_URL_REQUEST_CONTEXT_ADAPTER_H_ | 5 #ifndef COMPONENTS_CRONET_ANDROID_URL_REQUEST_CONTEXT_ADAPTER_H_ |
6 #define COMPONENTS_CRONET_ANDROID_URL_REQUEST_CONTEXT_ADAPTER_H_ | 6 #define COMPONENTS_CRONET_ANDROID_URL_REQUEST_CONTEXT_ADAPTER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 scoped_refptr<URLRequestContextAdapterDelegate> delegate_; | 70 scoped_refptr<URLRequestContextAdapterDelegate> delegate_; |
71 scoped_ptr<net::URLRequestContext> context_; | 71 scoped_ptr<net::URLRequestContext> context_; |
72 std::string user_agent_; | 72 std::string user_agent_; |
73 base::Thread* network_thread_; | 73 base::Thread* network_thread_; |
74 scoped_ptr<net::NetworkChangeNotifier> network_change_notifier_; | 74 scoped_ptr<net::NetworkChangeNotifier> network_change_notifier_; |
75 scoped_ptr<NetLogObserver> net_log_observer_; | 75 scoped_ptr<NetLogObserver> net_log_observer_; |
76 scoped_ptr<net::NetLogLogger> net_log_logger_; | 76 scoped_ptr<net::NetLogLogger> net_log_logger_; |
77 | 77 |
78 virtual ~URLRequestContextAdapter(); | 78 virtual ~URLRequestContextAdapter(); |
79 | 79 |
80 // Initializes |context_| on the IO thread. | 80 // Initializes |context_| on the Network thread. |
81 void InitializeURLRequestContext(scoped_ptr<URLRequestContextConfig> config); | 81 void InitializeURLRequestContext(scoped_ptr<URLRequestContextConfig> config); |
82 | 82 |
83 DISALLOW_COPY_AND_ASSIGN(URLRequestContextAdapter); | 83 DISALLOW_COPY_AND_ASSIGN(URLRequestContextAdapter); |
84 }; | 84 }; |
85 | 85 |
86 } // namespace cronet | 86 } // namespace cronet |
87 | 87 |
88 #endif // COMPONENTS_CRONET_ANDROID_URL_REQUEST_CONTEXT_ADAPTER_H_ | 88 #endif // COMPONENTS_CRONET_ANDROID_URL_REQUEST_CONTEXT_ADAPTER_H_ |
OLD | NEW |