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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 bool ResourceDispatcherHostDelegate::ShouldForceDownloadResource( | 68 bool ResourceDispatcherHostDelegate::ShouldForceDownloadResource( |
69 const GURL& url, | 69 const GURL& url, |
70 const std::string& mime_type) { | 70 const std::string& mime_type) { |
71 return false; | 71 return false; |
72 } | 72 } |
73 | 73 |
74 bool ResourceDispatcherHostDelegate::ShouldInterceptResourceAsStream( | 74 bool ResourceDispatcherHostDelegate::ShouldInterceptResourceAsStream( |
75 content::ResourceContext* resource_context, | 75 content::ResourceContext* resource_context, |
76 const GURL& url, | 76 const GURL& url, |
77 const std::string& mime_type, | 77 const std::string& mime_type, |
78 GURL* security_origin, | 78 GURL* origin, |
79 std::string* target_id) { | 79 std::string* target_id) { |
80 return false; | 80 return false; |
81 } | 81 } |
82 | 82 |
83 void ResourceDispatcherHostDelegate::OnStreamCreated( | 83 void ResourceDispatcherHostDelegate::OnStreamCreated( |
84 content::ResourceContext* resource_context, | 84 content::ResourceContext* resource_context, |
85 int render_process_id, | 85 int render_process_id, |
86 int render_view_id, | 86 int render_view_id, |
87 const std::string& target_id, | 87 const std::string& target_id, |
88 scoped_ptr<StreamHandle> stream, | 88 scoped_ptr<StreamHandle> stream, |
(...skipping 14 matching lines...) Expand all Loading... |
103 ResourceResponse* response) { | 103 ResourceResponse* response) { |
104 } | 104 } |
105 | 105 |
106 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() { | 106 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() { |
107 } | 107 } |
108 | 108 |
109 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { | 109 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { |
110 } | 110 } |
111 | 111 |
112 } // namespace content | 112 } // namespace content |
OLD | NEW |