Chromium Code Reviews| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 48 return true; | 48 return true; |
| 49 } | 49 } |
| 50 | 50 |
| 51 bool ResourceDispatcherHostDelegate::ShouldForceDownloadResource( | 51 bool ResourceDispatcherHostDelegate::ShouldForceDownloadResource( |
| 52 const GURL& url, | 52 const GURL& url, |
| 53 const std::string& mime_type) { | 53 const std::string& mime_type) { |
| 54 return false; | 54 return false; |
| 55 } | 55 } |
| 56 | 56 |
| 57 bool ResourceDispatcherHostDelegate::ShouldInterceptResourceAsStream( | 57 bool ResourceDispatcherHostDelegate::ShouldInterceptResourceAsStream( |
| 58 const base::FilePath& file_path, | |
|
raymes
2015/03/12 05:21:03
plugin_path
Deepak
2015/03/12 12:33:18
Done.
| |
| 58 net::URLRequest* request, | 59 net::URLRequest* request, |
| 59 const std::string& mime_type, | 60 const std::string& mime_type, |
| 60 GURL* origin, | 61 GURL* origin, |
| 61 std::string* payload) { | 62 std::string* payload) { |
| 62 return false; | 63 return false; |
| 63 } | 64 } |
| 64 | 65 |
| 65 void ResourceDispatcherHostDelegate::OnStreamCreated( | 66 void ResourceDispatcherHostDelegate::OnStreamCreated( |
| 66 net::URLRequest* request, | 67 net::URLRequest* request, |
| 67 scoped_ptr<content::StreamInfo> stream) { | 68 scoped_ptr<content::StreamInfo> stream) { |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 85 net::URLRequest* url_request) { | 86 net::URLRequest* url_request) { |
| 86 } | 87 } |
| 87 | 88 |
| 88 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() { | 89 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() { |
| 89 } | 90 } |
| 90 | 91 |
| 91 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { | 92 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { |
| 92 } | 93 } |
| 93 | 94 |
| 94 } // namespace content | 95 } // namespace content |
| OLD | NEW |