| 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 19 matching lines...) Expand all Loading... |
| 30 // Overriden methods from ResourceDispatcherHostDelegate. | 30 // Overriden methods from ResourceDispatcherHostDelegate. |
| 31 void RequestBeginning( | 31 void RequestBeginning( |
| 32 net::URLRequest* request, | 32 net::URLRequest* request, |
| 33 content::ResourceContext* resource_context, | 33 content::ResourceContext* resource_context, |
| 34 content::AppCacheService* appcache_service, | 34 content::AppCacheService* appcache_service, |
| 35 content::ResourceType resource_type, | 35 content::ResourceType resource_type, |
| 36 ScopedVector<content::ResourceThrottle>* throttles) override; | 36 ScopedVector<content::ResourceThrottle>* throttles) override; |
| 37 void DownloadStarting( | 37 void DownloadStarting( |
| 38 net::URLRequest* request, | 38 net::URLRequest* request, |
| 39 content::ResourceContext* resource_context, | 39 content::ResourceContext* resource_context, |
| 40 int child_id, | |
| 41 int route_id, | |
| 42 bool is_content_initiated, | 40 bool is_content_initiated, |
| 43 bool must_download, | 41 bool must_download, |
| 44 ScopedVector<content::ResourceThrottle>* throttles) override; | 42 ScopedVector<content::ResourceThrottle>* throttles) override; |
| 45 content::ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( | 43 content::ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( |
| 46 net::AuthChallengeInfo* auth_info, | 44 net::AuthChallengeInfo* auth_info, |
| 47 net::URLRequest* request) override; | 45 net::URLRequest* request) override; |
| 48 bool HandleExternalProtocol( | 46 bool HandleExternalProtocol( |
| 49 const GURL& url, | 47 const GURL& url, |
| 50 int child_id, | 48 int child_id, |
| 51 const content::ResourceRequestInfo::WebContentsGetter& | 49 const content::ResourceRequestInfo::WebContentsGetter& |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 | 93 |
| 96 // Only accessed on the IO thread. | 94 // Only accessed on the IO thread. |
| 97 PendingThrottleMap pending_throttles_; | 95 PendingThrottleMap pending_throttles_; |
| 98 | 96 |
| 99 DISALLOW_COPY_AND_ASSIGN(AwResourceDispatcherHostDelegate); | 97 DISALLOW_COPY_AND_ASSIGN(AwResourceDispatcherHostDelegate); |
| 100 }; | 98 }; |
| 101 | 99 |
| 102 } // namespace android_webview | 100 } // namespace android_webview |
| 103 | 101 |
| 104 #endif // ANDROID_WEBVIEW_LIB_RENDERER_HOST_AW_RESOURCE_DISPATCHER_HOST_H_ | 102 #endif // ANDROID_WEBVIEW_LIB_RENDERER_HOST_AW_RESOURCE_DISPATCHER_HOST_H_ |
| OLD | NEW |