OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "android_webview/browser/renderer_host/aw_resource_dispatcher_host_dele
gate.h" |
| 6 |
| 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/memory/scoped_vector.h" |
| 9 #include "content/public/browser/resource_dispatcher_host.h" |
| 10 #include "content/public/browser/resource_throttle.h" |
| 11 |
| 12 namespace { |
| 13 |
| 14 base::LazyInstance<android_webview::AwResourceDispatcherHostDelegate> |
| 15 g_webview_resource_dispatcher_host_delegate = LAZY_INSTANCE_INITIALIZER; |
| 16 |
| 17 } // namespace |
| 18 |
| 19 namespace android_webview { |
| 20 |
| 21 // static |
| 22 void AwResourceDispatcherHostDelegate::ResourceDispatcherHostCreated() { |
| 23 content::ResourceDispatcherHost::Get()->SetDelegate( |
| 24 &g_webview_resource_dispatcher_host_delegate.Get()); |
| 25 } |
| 26 |
| 27 AwResourceDispatcherHostDelegate::AwResourceDispatcherHostDelegate() |
| 28 : content::ResourceDispatcherHostDelegate() { |
| 29 } |
| 30 |
| 31 AwResourceDispatcherHostDelegate::~AwResourceDispatcherHostDelegate() { |
| 32 } |
| 33 |
| 34 void AwResourceDispatcherHostDelegate::RequestBeginning( |
| 35 net::URLRequest* request, |
| 36 content::ResourceContext* resource_context, |
| 37 ResourceType::Type resource_type, |
| 38 int child_id, |
| 39 int route_id, |
| 40 bool is_continuation_of_transferred_request, |
| 41 ScopedVector<content::ResourceThrottle>* throttles) { |
| 42 } |
| 43 |
| 44 } |
OLD | NEW |