| 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_info.h" | 7 #include "content/public/browser/stream_info.h" |
| 8 | 8 |
| 9 namespace content { | 9 namespace content { |
| 10 | 10 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 } | 53 } |
| 54 | 54 |
| 55 bool ResourceDispatcherHostDelegate::ShouldForceDownloadResource( | 55 bool ResourceDispatcherHostDelegate::ShouldForceDownloadResource( |
| 56 const GURL& url, | 56 const GURL& url, |
| 57 const std::string& mime_type) { | 57 const std::string& mime_type) { |
| 58 return false; | 58 return false; |
| 59 } | 59 } |
| 60 | 60 |
| 61 bool ResourceDispatcherHostDelegate::ShouldInterceptResourceAsStream( | 61 bool ResourceDispatcherHostDelegate::ShouldInterceptResourceAsStream( |
| 62 net::URLRequest* request, | 62 net::URLRequest* request, |
| 63 const base::FilePath& plugin_path, |
| 63 const std::string& mime_type, | 64 const std::string& mime_type, |
| 64 GURL* origin, | 65 GURL* origin, |
| 65 std::string* payload) { | 66 std::string* payload) { |
| 66 return false; | 67 return false; |
| 67 } | 68 } |
| 68 | 69 |
| 69 void ResourceDispatcherHostDelegate::OnStreamCreated( | 70 void ResourceDispatcherHostDelegate::OnStreamCreated( |
| 70 net::URLRequest* request, | 71 net::URLRequest* request, |
| 71 scoped_ptr<content::StreamInfo> stream) { | 72 scoped_ptr<content::StreamInfo> stream) { |
| 72 } | 73 } |
| (...skipping 16 matching lines...) Expand all Loading... |
| 89 net::URLRequest* url_request) { | 90 net::URLRequest* url_request) { |
| 90 } | 91 } |
| 91 | 92 |
| 92 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() { | 93 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() { |
| 93 } | 94 } |
| 94 | 95 |
| 95 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { | 96 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { |
| 96 } | 97 } |
| 97 | 98 |
| 98 } // namespace content | 99 } // namespace content |
| OLD | NEW |