Upstream version 7.36.149.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(
50     const GURL& url,
51     int child_id,
52     int route_id,
53     bool initiated_by_user_gesture) {
54   return true;
55 }
56
57 bool ResourceDispatcherHostDelegate::ShouldForceDownloadResource(
58     const GURL& url,
59     const std::string& mime_type) {
60   return false;
61 }
62
63 bool ResourceDispatcherHostDelegate::ShouldInterceptResourceAsStream(
64     content::ResourceContext* resource_context,
65     const GURL& url,
66     const std::string& mime_type,
67     GURL* origin,
68     std::string* target_id) {
69   return false;
70 }
71
72 void ResourceDispatcherHostDelegate::OnStreamCreated(
73     content::ResourceContext* resource_context,
74     int render_process_id,
75     int render_view_id,
76     const std::string& target_id,
77     scoped_ptr<StreamHandle> stream,
78     int64 expected_content_size) {
79 }
80
81 void ResourceDispatcherHostDelegate::OnResponseStarted(
82     net::URLRequest* request,
83     ResourceContext* resource_context,
84     ResourceResponse* response,
85     IPC::Sender* sender) {
86 }
87
88 void ResourceDispatcherHostDelegate::OnRequestRedirected(
89     const GURL& redirect_url,
90     net::URLRequest* request,
91     ResourceContext* resource_context,
92     ResourceResponse* response) {
93 }
94
95 void ResourceDispatcherHostDelegate::RequestComplete(
96     net::URLRequest* url_request) {
97 }
98
99 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() {
100 }
101
102 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() {
103 }
104
105 }  // namespace content