OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/public/browser/resource_dispatcher_host_delegate.h" | 5 #include "content/public/browser/resource_dispatcher_host_delegate.h" |
6 | 6 |
7 #include "content/public/browser/stream_handle.h" | 7 #include "content/public/browser/stream_handle.h" |
8 | 8 |
9 namespace content { | 9 namespace content { |
10 | 10 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 return true; | 54 return true; |
55 } | 55 } |
56 | 56 |
57 bool ResourceDispatcherHostDelegate::ShouldForceDownloadResource( | 57 bool ResourceDispatcherHostDelegate::ShouldForceDownloadResource( |
58 const GURL& url, | 58 const GURL& url, |
59 const std::string& mime_type) { | 59 const std::string& mime_type) { |
60 return false; | 60 return false; |
61 } | 61 } |
62 | 62 |
63 bool ResourceDispatcherHostDelegate::ShouldInterceptResourceAsStream( | 63 bool ResourceDispatcherHostDelegate::ShouldInterceptResourceAsStream( |
| 64 net::URLRequest* request, |
64 content::ResourceContext* resource_context, | 65 content::ResourceContext* resource_context, |
65 const GURL& url, | |
66 const std::string& mime_type, | 66 const std::string& mime_type, |
67 GURL* origin, | 67 GURL* origin, |
68 std::string* target_id) { | 68 std::string* payload) { |
69 return false; | 69 return false; |
70 } | 70 } |
71 | 71 |
72 void ResourceDispatcherHostDelegate::OnStreamCreated( | 72 void ResourceDispatcherHostDelegate::OnStreamCreated( |
| 73 net::URLRequest* request, |
73 content::ResourceContext* resource_context, | 74 content::ResourceContext* resource_context, |
74 int render_process_id, | 75 int render_process_id, |
75 int render_view_id, | 76 int render_view_id, |
76 const std::string& target_id, | 77 scoped_ptr<content::StreamHandle> stream) { |
77 scoped_ptr<StreamHandle> stream, | |
78 int64 expected_content_size) { | |
79 } | 78 } |
80 | 79 |
81 void ResourceDispatcherHostDelegate::OnResponseStarted( | 80 void ResourceDispatcherHostDelegate::OnResponseStarted( |
82 net::URLRequest* request, | 81 net::URLRequest* request, |
83 ResourceContext* resource_context, | 82 ResourceContext* resource_context, |
84 ResourceResponse* response, | 83 ResourceResponse* response, |
85 IPC::Sender* sender) { | 84 IPC::Sender* sender) { |
86 } | 85 } |
87 | 86 |
88 void ResourceDispatcherHostDelegate::OnRequestRedirected( | 87 void ResourceDispatcherHostDelegate::OnRequestRedirected( |
89 const GURL& redirect_url, | 88 const GURL& redirect_url, |
90 net::URLRequest* request, | 89 net::URLRequest* request, |
91 ResourceContext* resource_context, | 90 ResourceContext* resource_context, |
92 ResourceResponse* response) { | 91 ResourceResponse* response) { |
93 } | 92 } |
94 | 93 |
95 void ResourceDispatcherHostDelegate::RequestComplete( | 94 void ResourceDispatcherHostDelegate::RequestComplete( |
96 net::URLRequest* url_request) { | 95 net::URLRequest* url_request) { |
97 } | 96 } |
98 | 97 |
99 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() { | 98 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() { |
100 } | 99 } |
101 | 100 |
102 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { | 101 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { |
103 } | 102 } |
104 | 103 |
105 } // namespace content | 104 } // namespace content |
OLD | NEW |