Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(527)

Side by Side Diff: content/public/browser/resource_dispatcher_host_delegate.cc

Issue 1081013002: Revert of Ensuring interception of stream get determined by plugin path before checking mime type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/public/browser/resource_dispatcher_host_delegate.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 net::URLRequest* request, 58 net::URLRequest* request,
59 const base::FilePath& plugin_path,
60 const std::string& mime_type, 59 const std::string& mime_type,
61 GURL* origin, 60 GURL* origin,
62 std::string* payload) { 61 std::string* payload) {
63 return false; 62 return false;
64 } 63 }
65 64
66 void ResourceDispatcherHostDelegate::OnStreamCreated( 65 void ResourceDispatcherHostDelegate::OnStreamCreated(
67 net::URLRequest* request, 66 net::URLRequest* request,
68 scoped_ptr<content::StreamInfo> stream) { 67 scoped_ptr<content::StreamInfo> stream) {
69 } 68 }
(...skipping 16 matching lines...) Expand all
86 net::URLRequest* url_request) { 85 net::URLRequest* url_request) {
87 } 86 }
88 87
89 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() { 88 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() {
90 } 89 }
91 90
92 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { 91 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() {
93 } 92 }
94 93
95 } // namespace content 94 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/resource_dispatcher_host_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698