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

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

Issue 263513004: Forward MIME types to BrowserPlugin when a viewer is specified. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unittests Created 6 years, 6 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 | Annotate | Revision Log
« 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_handle.h" 7 #include "content/public/browser/stream_handle.h"
8 8
9 namespace content { 9 namespace content {
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 return true; 54 return true;
55 } 55 }
56 56
57 bool ResourceDispatcherHostDelegate::ShouldForceDownloadResource( 57 bool ResourceDispatcherHostDelegate::ShouldForceDownloadResource(
58 const GURL& url, 58 const GURL& url,
59 const std::string& mime_type) { 59 const std::string& mime_type) {
60 return false; 60 return false;
61 } 61 }
62 62
63 bool ResourceDispatcherHostDelegate::ShouldInterceptResourceAsStream( 63 bool ResourceDispatcherHostDelegate::ShouldInterceptResourceAsStream(
64 content::ResourceContext* resource_context, 64 net::URLRequest* request,
65 const GURL& url,
66 const std::string& mime_type, 65 const std::string& mime_type,
67 GURL* origin, 66 GURL* origin,
68 std::string* target_id) { 67 std::string* payload) {
69 return false; 68 return false;
70 } 69 }
71 70
72 void ResourceDispatcherHostDelegate::OnStreamCreated( 71 void ResourceDispatcherHostDelegate::OnStreamCreated(
73 content::ResourceContext* resource_context, 72 net::URLRequest* request,
74 int render_process_id, 73 scoped_ptr<content::StreamHandle> stream) {
75 int render_view_id,
76 const std::string& target_id,
77 scoped_ptr<StreamHandle> stream,
78 int64 expected_content_size) {
79 } 74 }
80 75
81 void ResourceDispatcherHostDelegate::OnResponseStarted( 76 void ResourceDispatcherHostDelegate::OnResponseStarted(
82 net::URLRequest* request, 77 net::URLRequest* request,
83 ResourceContext* resource_context, 78 ResourceContext* resource_context,
84 ResourceResponse* response, 79 ResourceResponse* response,
85 IPC::Sender* sender) { 80 IPC::Sender* sender) {
86 } 81 }
87 82
88 void ResourceDispatcherHostDelegate::OnRequestRedirected( 83 void ResourceDispatcherHostDelegate::OnRequestRedirected(
89 const GURL& redirect_url, 84 const GURL& redirect_url,
90 net::URLRequest* request, 85 net::URLRequest* request,
91 ResourceContext* resource_context, 86 ResourceContext* resource_context,
92 ResourceResponse* response) { 87 ResourceResponse* response) {
93 } 88 }
94 89
95 void ResourceDispatcherHostDelegate::RequestComplete( 90 void ResourceDispatcherHostDelegate::RequestComplete(
96 net::URLRequest* url_request) { 91 net::URLRequest* url_request) {
97 } 92 }
98 93
99 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() { 94 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() {
100 } 95 }
101 96
102 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { 97 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() {
103 } 98 }
104 99
105 } // namespace content 100 } // 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