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

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

Issue 2262183002: [NoStatePrefetch] Do not send responses to renderer in prefetch mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefetchProto
Patch Set: comments Created 4 years, 4 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/navigation_data.h" 7 #include "content/public/browser/navigation_data.h"
8 #include "content/public/browser/resource_request_info.h" 8 #include "content/public/browser/resource_request_info.h"
9 #include "content/public/browser/stream_info.h" 9 #include "content/public/browser/stream_info.h"
10 #include "net/ssl/client_cert_store.h" 10 #include "net/ssl/client_cert_store.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 bool ResourceDispatcherHostDelegate::ShouldInterceptResourceAsStream( 64 bool ResourceDispatcherHostDelegate::ShouldInterceptResourceAsStream(
65 net::URLRequest* request, 65 net::URLRequest* request,
66 const base::FilePath& plugin_path, 66 const base::FilePath& plugin_path,
67 const std::string& mime_type, 67 const std::string& mime_type,
68 GURL* origin, 68 GURL* origin,
69 std::string* payload) { 69 std::string* payload) {
70 return false; 70 return false;
71 } 71 }
72 72
73 bool ResourceDispatcherHostDelegate::ShouldSinkResponse(
74 net::URLRequest* request,
75 ResourceType resource_type) {
76 return false;
77 }
78
73 void ResourceDispatcherHostDelegate::OnStreamCreated( 79 void ResourceDispatcherHostDelegate::OnStreamCreated(
74 net::URLRequest* request, 80 net::URLRequest* request,
75 std::unique_ptr<content::StreamInfo> stream) {} 81 std::unique_ptr<content::StreamInfo> stream) {}
76 82
77 void ResourceDispatcherHostDelegate::OnResponseStarted( 83 void ResourceDispatcherHostDelegate::OnResponseStarted(
78 net::URLRequest* request, 84 net::URLRequest* request,
79 ResourceContext* resource_context, 85 ResourceContext* resource_context,
80 ResourceResponse* response) {} 86 ResourceResponse* response) {}
81 87
82 void ResourceDispatcherHostDelegate::OnRequestRedirected( 88 void ResourceDispatcherHostDelegate::OnRequestRedirected(
(...skipping 26 matching lines...) Expand all
109 115
110 void ResourceDispatcherHostDelegate::OnAbortedFrameLoad( 116 void ResourceDispatcherHostDelegate::OnAbortedFrameLoad(
111 const GURL& url, 117 const GURL& url,
112 base::TimeDelta request_loading_time) { 118 base::TimeDelta request_loading_time) {
113 } 119 }
114 120
115 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { 121 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() {
116 } 122 }
117 123
118 } // namespace content 124 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698