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_LIB_RENDERER_HOST_AW_RESOURCE_DISPATCHER_HOST_DELEGATE_H
_ | 5 #ifndef ANDROID_WEBVIEW_LIB_RENDERER_HOST_AW_RESOURCE_DISPATCHER_HOST_DELEGATE_H
_ |
6 #define ANDROID_WEBVIEW_LIB_RENDERER_HOST_AW_RESOURCE_DISPATCHER_HOST_DELEGATE_H
_ | 6 #define ANDROID_WEBVIEW_LIB_RENDERER_HOST_AW_RESOURCE_DISPATCHER_HOST_DELEGATE_H
_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 class AwResourceDispatcherHostDelegate | 26 class AwResourceDispatcherHostDelegate |
27 : public content::ResourceDispatcherHostDelegate { | 27 : public content::ResourceDispatcherHostDelegate { |
28 public: | 28 public: |
29 static void ResourceDispatcherHostCreated(); | 29 static void ResourceDispatcherHostCreated(); |
30 | 30 |
31 // Overriden methods from ResourceDispatcherHostDelegate. | 31 // Overriden methods from ResourceDispatcherHostDelegate. |
32 virtual void RequestBeginning( | 32 virtual void RequestBeginning( |
33 net::URLRequest* request, | 33 net::URLRequest* request, |
34 content::ResourceContext* resource_context, | 34 content::ResourceContext* resource_context, |
35 appcache::AppCacheService* appcache_service, | 35 content::AppCacheService* appcache_service, |
36 ResourceType::Type resource_type, | 36 ResourceType::Type resource_type, |
37 int child_id, | 37 int child_id, |
38 int route_id, | 38 int route_id, |
39 ScopedVector<content::ResourceThrottle>* throttles) OVERRIDE; | 39 ScopedVector<content::ResourceThrottle>* throttles) OVERRIDE; |
40 virtual void DownloadStarting( | 40 virtual void DownloadStarting( |
41 net::URLRequest* request, | 41 net::URLRequest* request, |
42 content::ResourceContext* resource_context, | 42 content::ResourceContext* resource_context, |
43 int child_id, | 43 int child_id, |
44 int route_id, | 44 int route_id, |
45 int request_id, | 45 int request_id, |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 | 95 |
96 // Only accessed on the IO thread. | 96 // Only accessed on the IO thread. |
97 PendingThrottleMap pending_throttles_; | 97 PendingThrottleMap pending_throttles_; |
98 | 98 |
99 DISALLOW_COPY_AND_ASSIGN(AwResourceDispatcherHostDelegate); | 99 DISALLOW_COPY_AND_ASSIGN(AwResourceDispatcherHostDelegate); |
100 }; | 100 }; |
101 | 101 |
102 } // namespace android_webview | 102 } // namespace android_webview |
103 | 103 |
104 #endif // ANDROID_WEBVIEW_LIB_RENDERER_HOST_AW_RESOURCE_DISPATCHER_HOST_H_ | 104 #endif // ANDROID_WEBVIEW_LIB_RENDERER_HOST_AW_RESOURCE_DISPATCHER_HOST_H_ |
OLD | NEW |