Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / content / public / browser / resource_dispatcher_host_delegate.cc
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 #include "content/public/browser/resource_dispatcher_host_delegate.h"
6
7 #include "content/public/browser/stream_handle.h"
8
9 namespace content {
10
11 bool ResourceDispatcherHostDelegate::ShouldBeginRequest(
12     int child_id,
13     int route_id,
14     const std::string& method,
15     const GURL& url,
16     ResourceType::Type resource_type,
17     ResourceContext* resource_context) {
18   return true;
19 }
20
21 void ResourceDispatcherHostDelegate::RequestBeginning(
22     net::URLRequest* request,
23     ResourceContext* resource_context,
24     appcache::AppCacheService* appcache_service,
25     ResourceType::Type resource_type,
26     int child_id,
27     int route_id,
28     ScopedVector<ResourceThrottle>* throttles) {
29 }
30
31 void ResourceDispatcherHostDelegate::DownloadStarting(
32     net::URLRequest* request,
33     ResourceContext* resource_context,
34     int child_id,
35     int route_id,
36     int request_id,
37     bool is_content_initiated,
38     bool must_download,
39     ScopedVector<ResourceThrottle>* throttles) {
40 }
41
42 ResourceDispatcherHostLoginDelegate*
43     ResourceDispatcherHostDelegate::CreateLoginDelegate(
44         net::AuthChallengeInfo* auth_info,
45         net::URLRequest* request) {
46   return NULL;
47 }
48
49 bool ResourceDispatcherHostDelegate::HandleExternalProtocol(const GURL& url,
50                                                             int child_id,
51                                                             int route_id) {
52   return true;
53 }
54
55 bool ResourceDispatcherHostDelegate::ShouldForceDownloadResource(
56     const GURL& url,
57     const std::string& mime_type) {
58   return false;
59 }
60
61 bool ResourceDispatcherHostDelegate::ShouldInterceptResourceAsStream(
62     content::ResourceContext* resource_context,
63     const GURL& url,
64     const std::string& mime_type,
65     GURL* origin,
66     std::string* target_id) {
67   return false;
68 }
69
70 void ResourceDispatcherHostDelegate::OnStreamCreated(
71     content::ResourceContext* resource_context,
72     int render_process_id,
73     int render_view_id,
74     const std::string& target_id,
75     scoped_ptr<StreamHandle> stream,
76     int64 expected_content_size) {
77 }
78
79 void ResourceDispatcherHostDelegate::OnResponseStarted(
80     net::URLRequest* request,
81     ResourceContext* resource_context,
82     ResourceResponse* response,
83     IPC::Sender* sender) {
84 }
85
86 void ResourceDispatcherHostDelegate::OnRequestRedirected(
87     const GURL& redirect_url,
88     net::URLRequest* request,
89     ResourceContext* resource_context,
90     ResourceResponse* response) {
91 }
92
93 void ResourceDispatcherHostDelegate::RequestComplete(
94     net::URLRequest* url_request) {
95 }
96
97 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() {
98 }
99
100 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() {
101 }
102
103 }  // namespace content