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

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

Issue 2204673004: WIP - WebMediaPlayer switch media renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add switching of CdmFactory. Created 4 years, 4 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 | « no previous file | content/renderer/render_frame_impl.cc » ('j') | media/blink/webmediaplayer_impl.h » ('J')
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 677 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 void PepperInstanceDeleted(PepperPluginInstanceImpl* instance); 688 void PepperInstanceDeleted(PepperPluginInstanceImpl* instance);
689 689
690 // Notification that the given plugin is focused or unfocused. 690 // Notification that the given plugin is focused or unfocused.
691 void PepperFocusChanged(PepperPluginInstanceImpl* instance, bool focused); 691 void PepperFocusChanged(PepperPluginInstanceImpl* instance, bool focused);
692 692
693 void PepperStartsPlayback(PepperPluginInstanceImpl* instance); 693 void PepperStartsPlayback(PepperPluginInstanceImpl* instance);
694 void PepperStopsPlayback(PepperPluginInstanceImpl* instance); 694 void PepperStopsPlayback(PepperPluginInstanceImpl* instance);
695 void OnSetPepperVolume(int32_t pp_instance, double volume); 695 void OnSetPepperVolume(int32_t pp_instance, double volume);
696 #endif // ENABLE_PLUGINS 696 #endif // ENABLE_PLUGINS
697 697
698 // Callback for WebMediaPlayerImpl to check whether remoting CDM is used.
699 bool isUsingRemotingCdm() { return is_using_remoting_cdm_; }
700
698 protected: 701 protected:
699 explicit RenderFrameImpl(const CreateParams& params); 702 explicit RenderFrameImpl(const CreateParams& params);
700 703
701 private: 704 private:
702 friend class RenderFrameImplTest; 705 friend class RenderFrameImplTest;
703 friend class RenderFrameObserver; 706 friend class RenderFrameObserver;
704 friend class RenderAccessibilityImplTest; 707 friend class RenderAccessibilityImplTest;
705 friend class TestRenderFrame; 708 friend class TestRenderFrame;
706 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuDisplayNoneTest, SelectItem); 709 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuDisplayNoneTest, SelectItem);
707 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange); 710 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange);
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
1281 // The plugin instance that received the last mouse event. It is set to NULL 1284 // The plugin instance that received the last mouse event. It is set to NULL
1282 // if the last mouse event went to elements other than Pepper plugins. 1285 // if the last mouse event went to elements other than Pepper plugins.
1283 // |pepper_last_mouse_event_target_| is not owned by this class. We depend on 1286 // |pepper_last_mouse_event_target_| is not owned by this class. We depend on
1284 // the RenderFrameImpl to NULL it out when it destructs. 1287 // the RenderFrameImpl to NULL it out when it destructs.
1285 PepperPluginInstanceImpl* pepper_last_mouse_event_target_; 1288 PepperPluginInstanceImpl* pepper_last_mouse_event_target_;
1286 #endif 1289 #endif
1287 1290
1288 mojo::Binding<mojom::Frame> frame_binding_; 1291 mojo::Binding<mojom::Frame> frame_binding_;
1289 mojom::FrameHostPtr frame_host_; 1292 mojom::FrameHostPtr frame_host_;
1290 1293
1294 // This is an indicator whether is in mirroring/remoting session.
1295 bool is_remote_sink_available_;
1296
1297 // This is an indicator whether the remoting CdmFactory is used for encrypted
1298 // content.
1299 bool is_using_remoting_cdm_;
1300
1291 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1301 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1292 1302
1293 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1303 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1294 }; 1304 };
1295 1305
1296 } // namespace content 1306 } // namespace content
1297 1307
1298 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1308 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/render_frame_impl.cc » ('j') | media/blink/webmediaplayer_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698