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

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

Issue 625993002: Split up streams logic to prepare for PlzNavigate RDH changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: zork comments Created 6 years, 2 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 #include "content/public/browser/stream_handle.h" 7 #include "content/public/browser/stream_info.h"
8 8
9 namespace content { 9 namespace content {
10 10
11 bool ResourceDispatcherHostDelegate::ShouldBeginRequest( 11 bool ResourceDispatcherHostDelegate::ShouldBeginRequest(
12 const std::string& method, 12 const std::string& method,
13 const GURL& url, 13 const GURL& url,
14 ResourceType resource_type, 14 ResourceType resource_type,
15 ResourceContext* resource_context) { 15 ResourceContext* resource_context) {
16 return true; 16 return true;
17 } 17 }
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 bool ResourceDispatcherHostDelegate::ShouldInterceptResourceAsStream( 57 bool ResourceDispatcherHostDelegate::ShouldInterceptResourceAsStream(
58 net::URLRequest* request, 58 net::URLRequest* request,
59 const std::string& mime_type, 59 const std::string& mime_type,
60 GURL* origin, 60 GURL* origin,
61 std::string* payload) { 61 std::string* payload) {
62 return false; 62 return false;
63 } 63 }
64 64
65 void ResourceDispatcherHostDelegate::OnStreamCreated( 65 void ResourceDispatcherHostDelegate::OnStreamCreated(
66 net::URLRequest* request, 66 net::URLRequest* request,
67 scoped_ptr<content::StreamHandle> stream) { 67 scoped_ptr<content::StreamInfo> stream) {
68 } 68 }
69 69
70 void ResourceDispatcherHostDelegate::OnResponseStarted( 70 void ResourceDispatcherHostDelegate::OnResponseStarted(
71 net::URLRequest* request, 71 net::URLRequest* request,
72 ResourceContext* resource_context, 72 ResourceContext* resource_context,
73 ResourceResponse* response, 73 ResourceResponse* response,
74 IPC::Sender* sender) { 74 IPC::Sender* sender) {
75 } 75 }
76 76
77 void ResourceDispatcherHostDelegate::OnRequestRedirected( 77 void ResourceDispatcherHostDelegate::OnRequestRedirected(
78 const GURL& redirect_url, 78 const GURL& redirect_url,
79 net::URLRequest* request, 79 net::URLRequest* request,
80 ResourceContext* resource_context, 80 ResourceContext* resource_context,
81 ResourceResponse* response) { 81 ResourceResponse* response) {
82 } 82 }
83 83
84 void ResourceDispatcherHostDelegate::RequestComplete( 84 void ResourceDispatcherHostDelegate::RequestComplete(
85 net::URLRequest* url_request) { 85 net::URLRequest* url_request) {
86 } 86 }
87 87
88 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() { 88 ResourceDispatcherHostDelegate::ResourceDispatcherHostDelegate() {
89 } 89 }
90 90
91 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { 91 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() {
92 } 92 }
93 93
94 } // namespace content 94 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698