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

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

Issue 12645004: Add Resource Handler for creating Streams to forward to extensions (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 7 years, 9 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
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 namespace content { 7 namespace content {
8 8
9 bool ResourceDispatcherHostDelegate::ShouldBeginRequest( 9 bool ResourceDispatcherHostDelegate::ShouldBeginRequest(
10 int child_id, 10 int child_id,
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 int route_id) { 63 int route_id) {
64 return true; 64 return true;
65 } 65 }
66 66
67 bool ResourceDispatcherHostDelegate::ShouldForceDownloadResource( 67 bool ResourceDispatcherHostDelegate::ShouldForceDownloadResource(
68 const GURL& url, 68 const GURL& url,
69 const std::string& mime_type) { 69 const std::string& mime_type) {
70 return false; 70 return false;
71 } 71 }
72 72
73 bool ResourceDispatcherHostDelegate::ShouldCreateStream(
74 content::ResourceContext* resource_context,
75 const GURL& url,
76 const std::string& mime_type,
77 GURL* security_origin) {
78 return false;
79 }
80
81 void ResourceDispatcherHostDelegate::OnStreamCreated(
82 content::ResourceContext* resource_context,
83 int render_process_id,
84 int render_view_id,
85 const GURL& stream_url,
86 const std::string& mime_type,
87 const GURL& original_url) {
88 }
89
73 void ResourceDispatcherHostDelegate::OnResponseStarted( 90 void ResourceDispatcherHostDelegate::OnResponseStarted(
74 net::URLRequest* request, 91 net::URLRequest* request,
75 ResourceContext* resource_context, 92 ResourceContext* resource_context,
76 ResourceResponse* response, 93 ResourceResponse* response,
77 IPC::Sender* sender) { 94 IPC::Sender* sender) {
78 } 95 }
79 96
80 void ResourceDispatcherHostDelegate::OnRequestRedirected( 97 void ResourceDispatcherHostDelegate::OnRequestRedirected(
81 const GURL& redirect_url, 98 const GURL& redirect_url,
82 net::URLRequest* request, 99 net::URLRequest* request,
83 ResourceContext* resource_context, 100 ResourceContext* resource_context,
84 ResourceResponse* response) { 101 ResourceResponse* response) {
85 } 102 }
86 103
87 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() { 104 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() {
88 } 105 }
89 106
90 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { 107 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() {
91 } 108 }
92 109
93 } // namespace content 110 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698