1 // Copyright (c) 2013 Intel Corporation. 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.
5 #ifndef XWALK_RUNTIME_BROWSER_RUNTIME_RESOURCE_DISPATCHER_HOST_DELEGATE_H_
6 #define XWALK_RUNTIME_BROWSER_RUNTIME_RESOURCE_DISPATCHER_HOST_DELEGATE_H_
8 #include "content/public/browser/resource_dispatcher_host_delegate.h"
12 class RuntimeResourceDispatcherHostDelegate
13 : public content::ResourceDispatcherHostDelegate {
15 RuntimeResourceDispatcherHostDelegate();
16 virtual ~RuntimeResourceDispatcherHostDelegate();
18 static void ResourceDispatcherHostCreated();
19 static scoped_ptr<RuntimeResourceDispatcherHostDelegate> Create();
21 void RequestBeginning(
22 net::URLRequest* request,
23 content::ResourceContext* resource_context,
24 content::AppCacheService* appcache_service,
25 content::ResourceType resource_type,
26 ScopedVector<content::ResourceThrottle>* throttles) override;
27 void DownloadStarting(
28 net::URLRequest* request,
29 content::ResourceContext* resource_context,
33 bool is_content_initiated,
35 ScopedVector<content::ResourceThrottle>* throttles) override;
36 bool HandleExternalProtocol(
39 int route_id) override;
42 DISALLOW_COPY_AND_ASSIGN(RuntimeResourceDispatcherHostDelegate);
47 #endif // XWALK_RUNTIME_BROWSER_RUNTIME_RESOURCE_DISPATCHER_HOST_DELEGATE_H_