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

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

Issue 1417173010: Adding <keygen> Content Setting (core) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing test_runner. Created 5 years, 1 month 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 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 393
394 #if defined(ENABLE_WEBRTC) 394 #if defined(ENABLE_WEBRTC)
395 // Allow the embedder to control if WebRTC identities are allowed to be cached 395 // Allow the embedder to control if WebRTC identities are allowed to be cached
396 // and potentially reused for future requests (within the same origin). 396 // and potentially reused for future requests (within the same origin).
397 // This is called on the IO thread. 397 // This is called on the IO thread.
398 virtual bool AllowWebRTCIdentityCache(const GURL& url, 398 virtual bool AllowWebRTCIdentityCache(const GURL& url,
399 const GURL& first_party_url, 399 const GURL& first_party_url,
400 ResourceContext* context); 400 ResourceContext* context);
401 #endif // defined(ENABLE_WEBRTC) 401 #endif // defined(ENABLE_WEBRTC)
402 402
403 // Allow the embedder to control whether we can use <keygen>.
404 virtual bool AllowKeygen(const GURL& url, content::ResourceContext* context);
405
403 // Allow the embedder to override the request context based on the URL for 406 // Allow the embedder to override the request context based on the URL for
404 // certain operations, like cookie access. Returns nullptr to indicate the 407 // certain operations, like cookie access. Returns nullptr to indicate the
405 // regular request context should be used. 408 // regular request context should be used.
406 // This is called on the IO thread. 409 // This is called on the IO thread.
407 virtual net::URLRequestContext* OverrideRequestContextForURL( 410 virtual net::URLRequestContext* OverrideRequestContextForURL(
408 const GURL& url, ResourceContext* context); 411 const GURL& url, ResourceContext* context);
409 412
410 // Allow the embedder to specify a string version of the storage partition 413 // Allow the embedder to specify a string version of the storage partition
411 // config with a site. 414 // config with a site.
412 virtual std::string GetStoragePartitionIdForSite( 415 virtual std::string GetStoragePartitionIdForSite(
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 742 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
740 // implementation. Return nullptr to disable external surface video. 743 // implementation. Return nullptr to disable external surface video.
741 virtual ExternalVideoSurfaceContainer* 744 virtual ExternalVideoSurfaceContainer*
742 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 745 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
743 #endif 746 #endif
744 }; 747 };
745 748
746 } // namespace content 749 } // namespace content
747 750
748 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 751 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698