OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_CONTEXT_GETTER_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_CONTEXT_GETTER_H_ |
6 #define ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_CONTEXT_GETTER_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_CONTEXT_GETTER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 | 34 |
35 class AwURLRequestContextGetter : public net::URLRequestContextGetter { | 35 class AwURLRequestContextGetter : public net::URLRequestContextGetter { |
36 public: | 36 public: |
37 AwURLRequestContextGetter( | 37 AwURLRequestContextGetter( |
38 const base::FilePath& partition_path, | 38 const base::FilePath& partition_path, |
39 net::CookieStore* cookie_store, | 39 net::CookieStore* cookie_store, |
40 scoped_ptr<data_reduction_proxy::DataReductionProxyConfigService> | 40 scoped_ptr<data_reduction_proxy::DataReductionProxyConfigService> |
41 config_service); | 41 config_service); |
42 | 42 |
43 // net::URLRequestContextGetter implementation. | 43 // net::URLRequestContextGetter implementation. |
44 virtual net::URLRequestContext* GetURLRequestContext() OVERRIDE; | 44 virtual net::URLRequestContext* GetURLRequestContext() override; |
45 virtual scoped_refptr<base::SingleThreadTaskRunner> | 45 virtual scoped_refptr<base::SingleThreadTaskRunner> |
46 GetNetworkTaskRunner() const OVERRIDE; | 46 GetNetworkTaskRunner() const override; |
47 | 47 |
48 data_reduction_proxy::DataReductionProxyAuthRequestHandler* | 48 data_reduction_proxy::DataReductionProxyAuthRequestHandler* |
49 GetDataReductionProxyAuthRequestHandler() const; | 49 GetDataReductionProxyAuthRequestHandler() const; |
50 | 50 |
51 // NetLog is thread-safe, so clients can call this method from arbitrary | 51 // NetLog is thread-safe, so clients can call this method from arbitrary |
52 // threads (UI and IO). | 52 // threads (UI and IO). |
53 net::NetLog* GetNetLog(); | 53 net::NetLog* GetNetLog(); |
54 | 54 |
55 private: | 55 private: |
56 friend class AwBrowserContext; | 56 friend class AwBrowserContext; |
(...skipping 26 matching lines...) Expand all Loading... |
83 // SetHandlersAndInterceptors() and the first GetURLRequestContext() call. | 83 // SetHandlersAndInterceptors() and the first GetURLRequestContext() call. |
84 content::ProtocolHandlerMap protocol_handlers_; | 84 content::ProtocolHandlerMap protocol_handlers_; |
85 content::URLRequestInterceptorScopedVector request_interceptors_; | 85 content::URLRequestInterceptorScopedVector request_interceptors_; |
86 | 86 |
87 DISALLOW_COPY_AND_ASSIGN(AwURLRequestContextGetter); | 87 DISALLOW_COPY_AND_ASSIGN(AwURLRequestContextGetter); |
88 }; | 88 }; |
89 | 89 |
90 } // namespace android_webview | 90 } // namespace android_webview |
91 | 91 |
92 #endif // ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_CONTEXT_GETTER_H_ | 92 #endif // ANDROID_WEBVIEW_BROWSER_NET_AW_URL_REQUEST_CONTEXT_GETTER_H_ |
OLD | NEW |