1 #ifndef RESOURCE_DISPATCHER_HOST_DELEGATE_EFL_H
2 #define RESOURCE_DISPATCHER_HOST_DELEGATE_EFL_H
4 #include "base/compiler_specific.h"
5 #include "content/public/browser/resource_dispatcher_host_delegate.h"
8 class AuthChallengeInfo;
14 class ResourceDispatcherHostLoginDelegate;
16 class ResourceDispatcherHostDelegateEfl
17 : public ResourceDispatcherHostDelegate {
19 ResourceDispatcherHostDelegateEfl()
23 // Called after ShouldBeginRequest to allow the embedder to add resource
25 virtual void RequestBeginning(net::URLRequest* request,
26 ResourceContext* resource_context,
27 AppCacheService* appcache_service,
28 ResourceType resource_type,
29 int child_id, int route_id,
30 ScopedVector<ResourceThrottle>* throttles) OVERRIDE;
32 // Create login delegate.
33 virtual ResourceDispatcherHostLoginDelegate* CreateLoginDelegate(
34 net::AuthChallengeInfo* auth_info, net::URLRequest* request) OVERRIDE;
36 // Called to trigger download.
37 virtual void DownloadStarting(
38 net::URLRequest* request,
39 content::ResourceContext* resource_context,
43 bool is_content_initiated,
45 ScopedVector<content::ResourceThrottle>* throttles) OVERRIDE;
47 #if !defined(EWK_BRINGUP)
48 // Return true if it should override mime type, otherwise, return false.
49 virtual bool ShouldOverrideMimeType(
50 const GURL& url, std::string& mime_type) OVERRIDE;
54 void TriggerNewDownloadStartCallback(
55 net::URLRequest* request,
56 const std::string& user_agent,
57 const std::string& content_disposition,
58 const std::string& mime_type,
59 int64 content_length);
64 #endif // RESOURCE_DISPATCHER_HOST_DELEGATE_EFL_H