| 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 #include "android_webview/browser/renderer_host/aw_resource_dispatcher_host_dele
gate.h" | 5 #include "android_webview/browser/renderer_host/aw_resource_dispatcher_host_dele
gate.h" |
| 6 | 6 |
| 7 #include "android_webview/browser/aw_login_delegate.h" | 7 #include "android_webview/browser/aw_login_delegate.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
| 10 #include "content/public/browser/resource_dispatcher_host.h" | 10 #include "content/public/browser/resource_dispatcher_host.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 AwResourceDispatcherHostDelegate::AwResourceDispatcherHostDelegate() | 29 AwResourceDispatcherHostDelegate::AwResourceDispatcherHostDelegate() |
| 30 : content::ResourceDispatcherHostDelegate() { | 30 : content::ResourceDispatcherHostDelegate() { |
| 31 } | 31 } |
| 32 | 32 |
| 33 AwResourceDispatcherHostDelegate::~AwResourceDispatcherHostDelegate() { | 33 AwResourceDispatcherHostDelegate::~AwResourceDispatcherHostDelegate() { |
| 34 } | 34 } |
| 35 | 35 |
| 36 void AwResourceDispatcherHostDelegate::RequestBeginning( | 36 void AwResourceDispatcherHostDelegate::RequestBeginning( |
| 37 net::URLRequest* request, | 37 net::URLRequest* request, |
| 38 content::ResourceContext* resource_context, | 38 content::ResourceContext* resource_context, |
| 39 appcache::AppCacheService* appcache_service, |
| 39 ResourceType::Type resource_type, | 40 ResourceType::Type resource_type, |
| 40 int child_id, | 41 int child_id, |
| 41 int route_id, | 42 int route_id, |
| 42 bool is_continuation_of_transferred_request, | 43 bool is_continuation_of_transferred_request, |
| 43 ScopedVector<content::ResourceThrottle>* throttles) { | 44 ScopedVector<content::ResourceThrottle>* throttles) { |
| 44 } | 45 } |
| 45 | 46 |
| 46 bool AwResourceDispatcherHostDelegate::AcceptAuthRequest( | 47 bool AwResourceDispatcherHostDelegate::AcceptAuthRequest( |
| 47 net::URLRequest* request, | 48 net::URLRequest* request, |
| 48 net::AuthChallengeInfo* auth_info) { | 49 net::AuthChallengeInfo* auth_info) { |
| 49 return true; | 50 return true; |
| 50 } | 51 } |
| 51 | 52 |
| 52 content::ResourceDispatcherHostLoginDelegate* | 53 content::ResourceDispatcherHostLoginDelegate* |
| 53 AwResourceDispatcherHostDelegate::CreateLoginDelegate( | 54 AwResourceDispatcherHostDelegate::CreateLoginDelegate( |
| 54 net::AuthChallengeInfo* auth_info, | 55 net::AuthChallengeInfo* auth_info, |
| 55 net::URLRequest* request) { | 56 net::URLRequest* request) { |
| 56 return new AwLoginDelegate(auth_info, request); | 57 return new AwLoginDelegate(auth_info, request); |
| 57 } | 58 } |
| 58 | 59 |
| 59 } | 60 } |
| OLD | NEW |