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

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

Issue 2484633004: Change Lo-Fi bool to bitmask to support multiple Previews types (Closed)
Patch Set: rebase Created 4 years 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 "content/public/common/previews_state.h"
nasko 2016/12/12 23:05:41 This include should also stay.
megjablon 2016/12/14 01:10:32 Same here. Added to the .h
10 #include "net/ssl/client_cert_store.h" 11 #include "net/ssl/client_cert_store.h"
11 12
12 namespace content { 13 namespace content {
13 14
14 bool ResourceDispatcherHostDelegate::ShouldBeginRequest( 15 bool ResourceDispatcherHostDelegate::ShouldBeginRequest(
15 const std::string& method, 16 const std::string& method,
16 const GURL& url, 17 const GURL& url,
17 ResourceType resource_type, 18 ResourceType resource_type,
18 ResourceContext* resource_context) { 19 ResourceContext* resource_context) {
19 return true; 20 return true;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 } 81 }
81 82
82 void ResourceDispatcherHostDelegate::RequestComplete( 83 void ResourceDispatcherHostDelegate::RequestComplete(
83 net::URLRequest* url_request, 84 net::URLRequest* url_request,
84 int net_error) {} 85 int net_error) {}
85 86
86 // Deprecated. 87 // Deprecated.
87 void ResourceDispatcherHostDelegate::RequestComplete( 88 void ResourceDispatcherHostDelegate::RequestComplete(
88 net::URLRequest* url_request) {} 89 net::URLRequest* url_request) {}
89 90
90 bool ResourceDispatcherHostDelegate::ShouldEnableLoFiMode( 91 int ResourceDispatcherHostDelegate::GetPreviewsState(
91 const net::URLRequest& url_request, 92 const net::URLRequest& url_request,
92 content::ResourceContext* resource_context) { 93 content::ResourceContext* resource_context) {
93 return false; 94 return PREVIEWS_UNSPECIFIED;
94 } 95 }
95 96
96 NavigationData* ResourceDispatcherHostDelegate::GetNavigationData( 97 NavigationData* ResourceDispatcherHostDelegate::GetNavigationData(
97 net::URLRequest* request) const { 98 net::URLRequest* request) const {
98 return nullptr; 99 return nullptr;
99 } 100 }
100 101
101 std::unique_ptr<net::ClientCertStore> 102 std::unique_ptr<net::ClientCertStore>
102 ResourceDispatcherHostDelegate::CreateClientCertStore( 103 ResourceDispatcherHostDelegate::CreateClientCertStore(
103 ResourceContext* resource_context) { 104 ResourceContext* resource_context) {
104 return std::unique_ptr<net::ClientCertStore>(); 105 return std::unique_ptr<net::ClientCertStore>();
105 } 106 }
106 107
107 void ResourceDispatcherHostDelegate::OnAbortedFrameLoad( 108 void ResourceDispatcherHostDelegate::OnAbortedFrameLoad(
108 const GURL& url, 109 const GURL& url,
109 base::TimeDelta request_loading_time) { 110 base::TimeDelta request_loading_time) {
110 } 111 }
111 112
112 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { 113 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() {
113 } 114 }
114 115
115 } // namespace content 116 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698