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

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

Issue 2517953003: Move enable_webrtc to a buildflag header. (Closed)
Patch Set: Fix 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
« no previous file with comments | « content/common/gpu_host_messages.h ('k') | content/public/browser/content_browser_client.cc » ('j') | 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 #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>
11 #include <memory> 11 #include <memory>
12 #include <string> 12 #include <string>
13 #include <utility> 13 #include <utility>
14 #include <vector> 14 #include <vector>
15 15
16 #include "base/callback_forward.h" 16 #include "base/callback_forward.h"
17 #include "base/memory/scoped_vector.h" 17 #include "base/memory/scoped_vector.h"
18 #include "base/values.h" 18 #include "base/values.h"
19 #include "build/build_config.h" 19 #include "build/build_config.h"
20 #include "content/public/browser/certificate_request_result_type.h" 20 #include "content/public/browser/certificate_request_result_type.h"
21 #include "content/public/browser/navigation_throttle.h" 21 #include "content/public/browser/navigation_throttle.h"
22 #include "content/public/common/content_client.h" 22 #include "content/public/common/content_client.h"
23 #include "content/public/common/media_stream_request.h" 23 #include "content/public/common/media_stream_request.h"
24 #include "content/public/common/resource_type.h" 24 #include "content/public/common/resource_type.h"
25 #include "content/public/common/service_info.h" 25 #include "content/public/common/service_info.h"
26 #include "content/public/common/socket_permission_request.h" 26 #include "content/public/common/socket_permission_request.h"
27 #include "content/public/common/window_container_type.h" 27 #include "content/public/common/window_container_type.h"
28 #include "media/audio/audio_manager.h" 28 #include "media/audio/audio_manager.h"
29 #include "media/media_features.h"
29 #include "media/mojo/interfaces/remoting.mojom.h" 30 #include "media/mojo/interfaces/remoting.mojom.h"
30 #include "net/base/mime_util.h" 31 #include "net/base/mime_util.h"
31 #include "net/cookies/canonical_cookie.h" 32 #include "net/cookies/canonical_cookie.h"
32 #include "storage/browser/fileapi/file_system_context.h" 33 #include "storage/browser/fileapi/file_system_context.h"
33 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" 34 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h"
34 #include "ui/base/page_transition_types.h" 35 #include "ui/base/page_transition_types.h"
35 #include "ui/base/window_open_disposition.h" 36 #include "ui/base/window_open_disposition.h"
36 37
37 #if defined(OS_POSIX) && !defined(OS_MACOSX) 38 #if defined(OS_POSIX) && !defined(OS_MACOSX)
38 #include "base/posix/global_descriptors.h" 39 #include "base/posix/global_descriptors.h"
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 365
365 // Allow the embedder to control if access to IndexedDB by a shared worker 366 // Allow the embedder to control if access to IndexedDB by a shared worker
366 // is allowed. 367 // is allowed.
367 // This is called on the IO thread. 368 // This is called on the IO thread.
368 virtual bool AllowWorkerIndexedDB( 369 virtual bool AllowWorkerIndexedDB(
369 const GURL& url, 370 const GURL& url,
370 const base::string16& name, 371 const base::string16& name,
371 ResourceContext* context, 372 ResourceContext* context,
372 const std::vector<std::pair<int, int> >& render_frames); 373 const std::vector<std::pair<int, int> >& render_frames);
373 374
374 #if defined(ENABLE_WEBRTC) 375 #if BUILDFLAG(ENABLE_WEBRTC)
375 // 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
376 // and potentially reused for future requests (within the same origin). 377 // and potentially reused for future requests (within the same origin).
377 // This is called on the IO thread. 378 // This is called on the IO thread.
378 virtual bool AllowWebRTCIdentityCache(const GURL& url, 379 virtual bool AllowWebRTCIdentityCache(const GURL& url,
379 const GURL& first_party_url, 380 const GURL& first_party_url,
380 ResourceContext* context); 381 ResourceContext* context);
381 #endif // defined(ENABLE_WEBRTC) 382 #endif // BUILDFLAG(ENABLE_WEBRTC)
382 383
383 // Allow the embedder to control whether we can use <keygen>. 384 // Allow the embedder to control whether we can use <keygen>.
384 virtual bool AllowKeygen(const GURL& url, content::ResourceContext* context); 385 virtual bool AllowKeygen(const GURL& url, content::ResourceContext* context);
385 386
386 // Allow the embedder to control whether we can use Web Bluetooth. 387 // Allow the embedder to control whether we can use Web Bluetooth.
387 // TODO(crbug.com/589228): Replace this with a use of the permission system. 388 // TODO(crbug.com/589228): Replace this with a use of the permission system.
388 enum class AllowWebBluetoothResult { 389 enum class AllowWebBluetoothResult {
389 ALLOW, 390 ALLOW,
390 BLOCK_POLICY, 391 BLOCK_POLICY,
391 BLOCK_GLOBALLY_DISABLED, 392 BLOCK_GLOBALLY_DISABLED,
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 // by |render_frame_host|. This may be called multiple times if there is more 789 // by |render_frame_host|. This may be called multiple times if there is more
789 // than one source candidate in the same render frame. 790 // than one source candidate in the same render frame.
790 virtual void CreateMediaRemoter(RenderFrameHost* render_frame_host, 791 virtual void CreateMediaRemoter(RenderFrameHost* render_frame_host,
791 media::mojom::RemotingSourcePtr source, 792 media::mojom::RemotingSourcePtr source,
792 media::mojom::RemoterRequest request) {} 793 media::mojom::RemoterRequest request) {}
793 }; 794 };
794 795
795 } // namespace content 796 } // namespace content
796 797
797 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 798 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/common/gpu_host_messages.h ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698