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 namespace content { | 7 namespace content { |
8 | 8 |
9 bool ResourceDispatcherHostDelegate::ShouldBeginRequest( | 9 bool ResourceDispatcherHostDelegate::ShouldBeginRequest( |
10 int child_id, | 10 int child_id, |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 int route_id) { | 63 int route_id) { |
64 return true; | 64 return true; |
65 } | 65 } |
66 | 66 |
67 bool ResourceDispatcherHostDelegate::ShouldForceDownloadResource( | 67 bool ResourceDispatcherHostDelegate::ShouldForceDownloadResource( |
68 const GURL& url, | 68 const GURL& url, |
69 const std::string& mime_type) { | 69 const std::string& mime_type) { |
70 return false; | 70 return false; |
71 } | 71 } |
72 | 72 |
| 73 bool ResourceDispatcherHostDelegate::ShouldInterceptResourceAsStream( |
| 74 content::ResourceContext* resource_context, |
| 75 const GURL& url, |
| 76 const std::string& mime_type, |
| 77 GURL* security_origin, |
| 78 std::string* target_id) { |
| 79 return false; |
| 80 } |
| 81 |
| 82 void ResourceDispatcherHostDelegate::OnStreamCreated( |
| 83 content::ResourceContext* resource_context, |
| 84 int render_process_id, |
| 85 int render_view_id, |
| 86 const std::string& target_id, |
| 87 const GURL& stream_url, |
| 88 const std::string& mime_type, |
| 89 const GURL& original_url) { |
| 90 } |
| 91 |
73 void ResourceDispatcherHostDelegate::OnResponseStarted( | 92 void ResourceDispatcherHostDelegate::OnResponseStarted( |
74 net::URLRequest* request, | 93 net::URLRequest* request, |
75 ResourceContext* resource_context, | 94 ResourceContext* resource_context, |
76 ResourceResponse* response, | 95 ResourceResponse* response, |
77 IPC::Sender* sender) { | 96 IPC::Sender* sender) { |
78 } | 97 } |
79 | 98 |
80 void ResourceDispatcherHostDelegate::OnRequestRedirected( | 99 void ResourceDispatcherHostDelegate::OnRequestRedirected( |
81 const GURL& redirect_url, | 100 const GURL& redirect_url, |
82 net::URLRequest* request, | 101 net::URLRequest* request, |
83 ResourceContext* resource_context, | 102 ResourceContext* resource_context, |
84 ResourceResponse* response) { | 103 ResourceResponse* response) { |
85 } | 104 } |
86 | 105 |
87 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() { | 106 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() { |
88 } | 107 } |
89 | 108 |
90 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { | 109 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { |
91 } | 110 } |
92 | 111 |
93 } // namespace content | 112 } // namespace content |
OLD | NEW |