OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_AW_RESOURCE_CONTEXT_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_RESOURCE_CONTEXT_H_ |
6 #define ANDROID_WEBVIEW_BROWSER_AW_RESOURCE_CONTEXT_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_AW_RESOURCE_CONTEXT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/synchronization/lock.h" | 12 #include "base/synchronization/lock.h" |
13 #include "content/public/browser/resource_context.h" | 13 #include "content/public/browser/resource_context.h" |
14 | 14 |
| 15 class GURL; |
| 16 |
15 namespace net { | 17 namespace net { |
16 class URLRequestContextGetter; | 18 class URLRequestContextGetter; |
17 } | 19 } |
18 | 20 |
19 namespace android_webview { | 21 namespace android_webview { |
20 | 22 |
21 class AwResourceContext : public content::ResourceContext { | 23 class AwResourceContext : public content::ResourceContext { |
22 public: | 24 public: |
23 explicit AwResourceContext(net::URLRequestContextGetter* getter); | 25 explicit AwResourceContext(net::URLRequestContextGetter* getter); |
24 ~AwResourceContext() override; | 26 ~AwResourceContext() override; |
(...skipping 10 matching lines...) Expand all Loading... |
35 | 37 |
36 base::Lock extra_headers_lock_; | 38 base::Lock extra_headers_lock_; |
37 std::map<std::string, std::string> extra_headers_; | 39 std::map<std::string, std::string> extra_headers_; |
38 | 40 |
39 DISALLOW_COPY_AND_ASSIGN(AwResourceContext); | 41 DISALLOW_COPY_AND_ASSIGN(AwResourceContext); |
40 }; | 42 }; |
41 | 43 |
42 } // namespace android_webview | 44 } // namespace android_webview |
43 | 45 |
44 #endif // ANDROID_WEBVIEW_BROWSER_AW_RESOURCE_CONTEXT_H_ | 46 #endif // ANDROID_WEBVIEW_BROWSER_AW_RESOURCE_CONTEXT_H_ |
OLD | NEW |