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

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

Issue 2536993002: Remove support for the keygen tag (Closed)
Patch Set: Rebased 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 #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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 374
375 #if BUILDFLAG(ENABLE_WEBRTC) 375 #if BUILDFLAG(ENABLE_WEBRTC)
376 // Allow the embedder to control if WebRTC identities are allowed to be cached 376 // Allow the embedder to control if WebRTC identities are allowed to be cached
377 // and potentially reused for future requests (within the same origin). 377 // and potentially reused for future requests (within the same origin).
378 // This is called on the IO thread. 378 // This is called on the IO thread.
379 virtual bool AllowWebRTCIdentityCache(const GURL& url, 379 virtual bool AllowWebRTCIdentityCache(const GURL& url,
380 const GURL& first_party_url, 380 const GURL& first_party_url,
381 ResourceContext* context); 381 ResourceContext* context);
382 #endif // BUILDFLAG(ENABLE_WEBRTC) 382 #endif // BUILDFLAG(ENABLE_WEBRTC)
383 383
384 // Allow the embedder to control whether we can use <keygen>.
385 virtual bool AllowKeygen(const GURL& url, content::ResourceContext* context);
386
387 // Allow the embedder to control whether we can use Web Bluetooth. 384 // Allow the embedder to control whether we can use Web Bluetooth.
388 // TODO(crbug.com/589228): Replace this with a use of the permission system. 385 // TODO(crbug.com/589228): Replace this with a use of the permission system.
389 enum class AllowWebBluetoothResult { 386 enum class AllowWebBluetoothResult {
390 ALLOW, 387 ALLOW,
391 BLOCK_POLICY, 388 BLOCK_POLICY,
392 BLOCK_GLOBALLY_DISABLED, 389 BLOCK_GLOBALLY_DISABLED,
393 }; 390 };
394 virtual AllowWebBluetoothResult AllowWebBluetooth( 391 virtual AllowWebBluetoothResult AllowWebBluetooth(
395 content::BrowserContext* browser_context, 392 content::BrowserContext* browser_context,
396 const url::Origin& requesting_origin, 393 const url::Origin& requesting_origin,
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 // by |render_frame_host|. This may be called multiple times if there is more 786 // by |render_frame_host|. This may be called multiple times if there is more
790 // than one source candidate in the same render frame. 787 // than one source candidate in the same render frame.
791 virtual void CreateMediaRemoter(RenderFrameHost* render_frame_host, 788 virtual void CreateMediaRemoter(RenderFrameHost* render_frame_host,
792 media::mojom::RemotingSourcePtr source, 789 media::mojom::RemotingSourcePtr source,
793 media::mojom::RemoterRequest request) {} 790 media::mojom::RemoterRequest request) {}
794 }; 791 };
795 792
796 } // namespace content 793 } // namespace content
797 794
798 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 795 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698