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

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: clean up comments 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"
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(
92 int previews_state,
91 const net::URLRequest& url_request, 93 const net::URLRequest& url_request,
92 content::ResourceContext* resource_context) { 94 content::ResourceContext* resource_context) {
93 return false; 95 return PREVIEWS_UNSPECIFIED;
94 } 96 }
95 97
96 NavigationData* ResourceDispatcherHostDelegate::GetNavigationData( 98 NavigationData* ResourceDispatcherHostDelegate::GetNavigationData(
97 net::URLRequest* request) const { 99 net::URLRequest* request) const {
98 return nullptr; 100 return nullptr;
99 } 101 }
100 102
101 std::unique_ptr<net::ClientCertStore> 103 std::unique_ptr<net::ClientCertStore>
102 ResourceDispatcherHostDelegate::CreateClientCertStore( 104 ResourceDispatcherHostDelegate::CreateClientCertStore(
103 ResourceContext* resource_context) { 105 ResourceContext* resource_context) {
104 return std::unique_ptr<net::ClientCertStore>(); 106 return std::unique_ptr<net::ClientCertStore>();
105 } 107 }
106 108
107 void ResourceDispatcherHostDelegate::OnAbortedFrameLoad( 109 void ResourceDispatcherHostDelegate::OnAbortedFrameLoad(
108 const GURL& url, 110 const GURL& url,
109 base::TimeDelta request_loading_time) { 111 base::TimeDelta request_loading_time) {
110 } 112 }
111 113
112 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() { 114 ResourceDispatcherHostDelegate::~ResourceDispatcherHostDelegate() {
113 } 115 }
114 116
115 } // namespace content 117 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698