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

Side by Side Diff: content/renderer/render_frame_impl.h

Issue 2882813002: media: Convert mojo media defines to buildflags (Closed)
Patch Set: rebase 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/renderer/BUILD.gn ('k') | content/renderer/render_frame_impl.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_RENDERER_RENDER_FRAME_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 #include "content/public/renderer/render_frame.h" 47 #include "content/public/renderer/render_frame.h"
48 #include "content/renderer/frame_blame_context.h" 48 #include "content/renderer/frame_blame_context.h"
49 #include "content/renderer/mojo/blink_interface_provider_impl.h" 49 #include "content/renderer/mojo/blink_interface_provider_impl.h"
50 #include "content/renderer/renderer_webcookiejar_impl.h" 50 #include "content/renderer/renderer_webcookiejar_impl.h"
51 #include "content/renderer/unique_name_helper.h" 51 #include "content/renderer/unique_name_helper.h"
52 #include "ipc/ipc_message.h" 52 #include "ipc/ipc_message.h"
53 #include "ipc/ipc_platform_file.h" 53 #include "ipc/ipc_platform_file.h"
54 #include "media/base/routing_token_callback.h" 54 #include "media/base/routing_token_callback.h"
55 #include "media/blink/webmediaplayer_delegate.h" 55 #include "media/blink/webmediaplayer_delegate.h"
56 #include "media/blink/webmediaplayer_params.h" 56 #include "media/blink/webmediaplayer_params.h"
57 #include "media/mojo/features.h"
57 #include "media/mojo/interfaces/remoting.mojom.h" 58 #include "media/mojo/interfaces/remoting.mojom.h"
58 #include "mojo/public/cpp/bindings/associated_binding.h" 59 #include "mojo/public/cpp/bindings/associated_binding.h"
59 #include "mojo/public/cpp/bindings/binding.h" 60 #include "mojo/public/cpp/bindings/binding.h"
60 #include "mojo/public/cpp/bindings/binding_set.h" 61 #include "mojo/public/cpp/bindings/binding_set.h"
61 #include "mojo/public/cpp/system/data_pipe.h" 62 #include "mojo/public/cpp/system/data_pipe.h"
62 #include "ppapi/features/features.h" 63 #include "ppapi/features/features.h"
63 #include "services/service_manager/public/cpp/bind_source_info.h" 64 #include "services/service_manager/public/cpp/bind_source_info.h"
64 #include "services/service_manager/public/cpp/binder_registry.h" 65 #include "services/service_manager/public/cpp/binder_registry.h"
65 #include "services/service_manager/public/interfaces/connector.mojom.h" 66 #include "services/service_manager/public/interfaces/connector.mojom.h"
66 #include "services/service_manager/public/interfaces/interface_provider.mojom.h" 67 #include "services/service_manager/public/interfaces/interface_provider.mojom.h"
(...skipping 1026 matching lines...) Expand 10 before | Expand all | Expand 10 after
1093 void UpdateNavigationState(DocumentState* document_state, 1094 void UpdateNavigationState(DocumentState* document_state,
1094 bool was_within_same_page, 1095 bool was_within_same_page,
1095 bool content_initiated); 1096 bool content_initiated);
1096 1097
1097 #if defined(OS_ANDROID) 1098 #if defined(OS_ANDROID)
1098 RendererMediaPlayerManager* GetMediaPlayerManager(); 1099 RendererMediaPlayerManager* GetMediaPlayerManager();
1099 #endif 1100 #endif
1100 1101
1101 bool AreSecureCodecsSupported(); 1102 bool AreSecureCodecsSupported();
1102 1103
1103 #if defined(ENABLE_MOJO_MEDIA) 1104 #if BUILDFLAG(ENABLE_MOJO_MEDIA)
1104 service_manager::mojom::InterfaceProvider* GetMediaInterfaceProvider(); 1105 service_manager::mojom::InterfaceProvider* GetMediaInterfaceProvider();
1105 #endif 1106 #endif
1106 1107
1107 #if BUILDFLAG(ENABLE_MEDIA_REMOTING) 1108 #if BUILDFLAG(ENABLE_MEDIA_REMOTING)
1108 media::mojom::RemoterFactory* GetRemoterFactory(); 1109 media::mojom::RemoterFactory* GetRemoterFactory();
1109 #endif 1110 #endif
1110 1111
1111 media::CdmFactory* GetCdmFactory(); 1112 media::CdmFactory* GetCdmFactory();
1112 media::DecoderFactory* GetDecoderFactory(); 1113 media::DecoderFactory* GetDecoderFactory();
1113 1114
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
1272 // Destroyed via the RenderFrameObserver::OnDestruct() mechanism. 1273 // Destroyed via the RenderFrameObserver::OnDestruct() mechanism.
1273 UserMediaClientImpl* web_user_media_client_; 1274 UserMediaClientImpl* web_user_media_client_;
1274 1275
1275 // EncryptedMediaClient attached to this frame; lazily initialized. 1276 // EncryptedMediaClient attached to this frame; lazily initialized.
1276 std::unique_ptr<media::WebEncryptedMediaClientImpl> 1277 std::unique_ptr<media::WebEncryptedMediaClientImpl>
1277 web_encrypted_media_client_; 1278 web_encrypted_media_client_;
1278 1279
1279 // The media permission dispatcher attached to this frame. 1280 // The media permission dispatcher attached to this frame.
1280 std::unique_ptr<MediaPermissionDispatcher> media_permission_dispatcher_; 1281 std::unique_ptr<MediaPermissionDispatcher> media_permission_dispatcher_;
1281 1282
1282 #if defined(ENABLE_MOJO_MEDIA) 1283 #if BUILDFLAG(ENABLE_MOJO_MEDIA)
1283 // The media interface provider attached to this frame, lazily initialized. 1284 // The media interface provider attached to this frame, lazily initialized.
1284 std::unique_ptr<MediaInterfaceProvider> media_interface_provider_; 1285 std::unique_ptr<MediaInterfaceProvider> media_interface_provider_;
1285 #endif 1286 #endif
1286 1287
1287 #if defined(OS_ANDROID) 1288 #if defined(OS_ANDROID)
1288 // Manages all media players and sessions in this render frame for 1289 // Manages all media players and sessions in this render frame for
1289 // communicating with the real media player and sessions in the 1290 // communicating with the real media player and sessions in the
1290 // browser process. It's okay to use raw pointers since they're both 1291 // browser process. It's okay to use raw pointers since they're both
1291 // RenderFrameObservers. 1292 // RenderFrameObservers.
1292 RendererMediaPlayerManager* media_player_manager_; 1293 RendererMediaPlayerManager* media_player_manager_;
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
1474 std::vector<media::RoutingTokenCallback> pending_routing_token_callbacks_; 1475 std::vector<media::RoutingTokenCallback> pending_routing_token_callbacks_;
1475 1476
1476 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1477 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1477 1478
1478 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1479 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1479 }; 1480 };
1480 1481
1481 } // namespace content 1482 } // namespace content
1482 1483
1483 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1484 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/BUILD.gn ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698