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

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

Issue 2888373003: Clean up unused ContentBrowserClient methods that access cookie settings. (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « content/public/browser/content_browser_client.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/content_browser_client.h" 5 #include "content/public/browser/content_browser_client.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/guid.h" 10 #include "base/guid.h"
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 bool ContentBrowserClient::AllowSetCookie(const GURL& url, 181 bool ContentBrowserClient::AllowSetCookie(const GURL& url,
182 const GURL& first_party, 182 const GURL& first_party,
183 const std::string& cookie_line, 183 const std::string& cookie_line,
184 ResourceContext* context, 184 ResourceContext* context,
185 int render_process_id, 185 int render_process_id,
186 int render_frame_id, 186 int render_frame_id,
187 const net::CookieOptions& options) { 187 const net::CookieOptions& options) {
188 return true; 188 return true;
189 } 189 }
190 190
191 bool ContentBrowserClient::AllowSaveLocalState(ResourceContext* context) {
192 return true;
193 }
194
195 void ContentBrowserClient::AllowWorkerFileSystem( 191 void ContentBrowserClient::AllowWorkerFileSystem(
196 const GURL& url, 192 const GURL& url,
197 ResourceContext* context, 193 ResourceContext* context,
198 const std::vector<std::pair<int, int> >& render_frames, 194 const std::vector<std::pair<int, int> >& render_frames,
199 base::Callback<void(bool)> callback) { 195 base::Callback<void(bool)> callback) {
200 callback.Run(true); 196 callback.Run(true);
201 } 197 }
202 198
203 bool ContentBrowserClient::AllowWorkerIndexedDB( 199 bool ContentBrowserClient::AllowWorkerIndexedDB(
204 const GURL& url, 200 const GURL& url,
205 const base::string16& name, 201 const base::string16& name,
206 ResourceContext* context, 202 ResourceContext* context,
207 const std::vector<std::pair<int, int> >& render_frames) { 203 const std::vector<std::pair<int, int> >& render_frames) {
208 return true; 204 return true;
209 } 205 }
210 206
211 #if BUILDFLAG(ENABLE_WEBRTC)
212 bool ContentBrowserClient::AllowWebRTCIdentityCache(const GURL& url,
213 const GURL& first_party_url,
214 ResourceContext* context) {
215 return true;
216 }
217 #endif // BUILDFLAG(ENABLE_WEBRTC)
218
219 ContentBrowserClient::AllowWebBluetoothResult 207 ContentBrowserClient::AllowWebBluetoothResult
220 ContentBrowserClient::AllowWebBluetooth( 208 ContentBrowserClient::AllowWebBluetooth(
221 content::BrowserContext* browser_context, 209 content::BrowserContext* browser_context,
222 const url::Origin& requesting_origin, 210 const url::Origin& requesting_origin,
223 const url::Origin& embedding_origin) { 211 const url::Origin& embedding_origin) {
224 return AllowWebBluetoothResult::ALLOW; 212 return AllowWebBluetoothResult::ALLOW;
225 } 213 }
226 214
227 std::string ContentBrowserClient::GetWebBluetoothBlocklist() { 215 std::string ContentBrowserClient::GetWebBluetoothBlocklist() {
228 return std::string(); 216 return std::string();
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 457
470 bool ContentBrowserClient::ShouldRedirectDOMStorageTaskRunner() { 458 bool ContentBrowserClient::ShouldRedirectDOMStorageTaskRunner() {
471 return false; 459 return false;
472 } 460 }
473 461
474 bool ContentBrowserClient::RedirectNonUINonIOBrowserThreadsToTaskScheduler() { 462 bool ContentBrowserClient::RedirectNonUINonIOBrowserThreadsToTaskScheduler() {
475 return false; 463 return false;
476 } 464 }
477 465
478 } // namespace content 466 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/content_browser_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698