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 #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
_ |
| 7 |
| 8 #include "content/public/browser/resource_dispatcher_host_delegate.h" |
| 9 |
| 10 #include "base/lazy_instance.h" |
| 11 |
| 12 namespace android_webview { |
| 13 |
| 14 class AwResourceDispatcherHostDelegate |
| 15 : public content::ResourceDispatcherHostDelegate { |
| 16 public: |
| 17 static void ResourceDispatcherHostCreated(); |
| 18 |
| 19 // Overriden methods from ResourceDispatcherHostDelegate. |
| 20 virtual void RequestBeginning( |
| 21 net::URLRequest* request, |
| 22 content::ResourceContext* resource_context, |
| 23 ResourceType::Type resource_type, |
| 24 int child_id, |
| 25 int route_id, |
| 26 bool is_continuation_of_transferred_request, |
| 27 ScopedVector<content::ResourceThrottle>* throttles); |
| 28 |
| 29 private: |
| 30 friend struct base::DefaultLazyInstanceTraits< |
| 31 AwResourceDispatcherHostDelegate>; |
| 32 AwResourceDispatcherHostDelegate(); |
| 33 virtual ~AwResourceDispatcherHostDelegate(); |
| 34 |
| 35 DISALLOW_COPY_AND_ASSIGN(AwResourceDispatcherHostDelegate); |
| 36 }; |
| 37 |
| 38 } // namespace android_webview |
| 39 |
| 40 #endif // ANDROID_WEBVIEW_LIB_RENDERER_HOST_AW_RESOURCE_DISPATCHER_HOST_H_ |
OLD | NEW |