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 appcache::AppCacheService* appcache_service,
24 ResourceType::Type resource_type,
27 ScopedVector<content::ResourceThrottle>* throttles) OVERRIDE;
28 virtual void DownloadStarting(
29 net::URLRequest* request,
30 content::ResourceContext* resource_context,
34 bool is_content_initiated,
36 ScopedVector<content::ResourceThrottle>* throttles) OVERRIDE;
37 virtual bool HandleExternalProtocol(
41 bool initiated_by_user_gesture) OVERRIDE;
44 DISALLOW_COPY_AND_ASSIGN(RuntimeResourceDispatcherHostDelegate);
49 #endif // XWALK_RUNTIME_BROWSER_RUNTIME_RESOURCE_DISPATCHER_HOST_DELEGATE_H_