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();
20 virtual void RequestBeginning(
21 net::URLRequest* request,
22 content::ResourceContext* resource_context,
23 content::AppCacheService* appcache_service,
24 content::ResourceType resource_type,
25 ScopedVector<content::ResourceThrottle>* throttles) OVERRIDE;
26 virtual void DownloadStarting(
27 net::URLRequest* request,
28 content::ResourceContext* resource_context,
32 bool is_content_initiated,
34 ScopedVector<content::ResourceThrottle>* throttles) OVERRIDE;
35 virtual bool HandleExternalProtocol(
38 int route_id) OVERRIDE;
41 DISALLOW_COPY_AND_ASSIGN(RuntimeResourceDispatcherHostDelegate);
46 #endif // XWALK_RUNTIME_BROWSER_RUNTIME_RESOURCE_DISPATCHER_HOST_DELEGATE_H_