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

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

Issue 1293253003: Fix autoplay during prerendering for media elements on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@defer_media
Patch Set: Created 5 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
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 <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "base/id_map.h" 13 #include "base/id_map.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
16 #include "base/observer_list.h" 16 #include "base/observer_list.h"
17 #include "base/process/process_handle.h" 17 #include "base/process/process_handle.h"
18 #include "content/common/accessibility_mode_enums.h" 18 #include "content/common/accessibility_mode_enums.h"
19 #include "content/common/frame_message_enums.h" 19 #include "content/common/frame_message_enums.h"
20 #include "content/common/mojo/service_registry_impl.h" 20 #include "content/common/mojo/service_registry_impl.h"
21 #include "content/public/common/console_message_level.h" 21 #include "content/public/common/console_message_level.h"
22 #include "content/public/common/javascript_message_type.h" 22 #include "content/public/common/javascript_message_type.h"
23 #include "content/public/common/referrer.h" 23 #include "content/public/common/referrer.h"
24 #include "content/public/renderer/render_frame.h" 24 #include "content/public/renderer/render_frame.h"
25 #include "content/renderer/render_frame_proxy.h" 25 #include "content/renderer/render_frame_proxy.h"
26 #include "content/renderer/renderer_webcookiejar_impl.h" 26 #include "content/renderer/renderer_webcookiejar_impl.h"
27 #include "ipc/ipc_message.h" 27 #include "ipc/ipc_message.h"
28 #include "media/blink/webmediaplayer_delegate.h" 28 #include "media/blink/webmediaplayer_delegate.h"
29 #include "media/blink/webmediaplayer_params.h"
29 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerClie nt.h" 30 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerClie nt.h"
30 #include "third_party/WebKit/public/web/WebAXObject.h" 31 #include "third_party/WebKit/public/web/WebAXObject.h"
31 #include "third_party/WebKit/public/web/WebDataSource.h" 32 #include "third_party/WebKit/public/web/WebDataSource.h"
32 #include "third_party/WebKit/public/web/WebFrameClient.h" 33 #include "third_party/WebKit/public/web/WebFrameClient.h"
33 #include "third_party/WebKit/public/web/WebHistoryCommitType.h" 34 #include "third_party/WebKit/public/web/WebHistoryCommitType.h"
34 #include "third_party/WebKit/public/web/WebScriptExecutionCallback.h" 35 #include "third_party/WebKit/public/web/WebScriptExecutionCallback.h"
35 #include "ui/gfx/range/range.h" 36 #include "ui/gfx/range/range.h"
36 37
37 #if defined(ENABLE_PLUGINS) 38 #if defined(ENABLE_PLUGINS)
38 #include "content/renderer/pepper/plugin_power_saver_helper.h" 39 #include "content/renderer/pepper/plugin_power_saver_helper.h"
(...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after
802 void PopulateDocumentStateFromPending(DocumentState* document_state); 803 void PopulateDocumentStateFromPending(DocumentState* document_state);
803 804
804 // Returns a new NavigationState populated with the navigation information 805 // Returns a new NavigationState populated with the navigation information
805 // saved in OnNavigate(). 806 // saved in OnNavigate().
806 NavigationState* CreateNavigationStateFromPending(); 807 NavigationState* CreateNavigationStateFromPending();
807 808
808 #if defined(OS_ANDROID) 809 #if defined(OS_ANDROID)
809 blink::WebMediaPlayer* CreateAndroidWebMediaPlayer( 810 blink::WebMediaPlayer* CreateAndroidWebMediaPlayer(
810 blink::WebMediaPlayerClient* client, 811 blink::WebMediaPlayerClient* client,
811 blink::WebMediaPlayerEncryptedMediaClient* encrypted_client, 812 blink::WebMediaPlayerEncryptedMediaClient* encrypted_client,
812 media::MediaPermission* media_permission, 813 const media::WebMediaPlayerParams& params);
813 blink::WebContentDecryptionModule* initial_cdm);
814 814
815 RendererMediaPlayerManager* GetMediaPlayerManager(); 815 RendererMediaPlayerManager* GetMediaPlayerManager();
816 #endif 816 #endif
817 817
818 bool AreSecureCodecsSupported(); 818 bool AreSecureCodecsSupported();
819 819
820 media::MediaPermission* GetMediaPermission(); 820 media::MediaPermission* GetMediaPermission();
821 821
822 #if defined(ENABLE_MOJO_MEDIA) 822 #if defined(ENABLE_MOJO_MEDIA)
823 media::interfaces::ServiceFactory* GetMediaServiceFactory(); 823 media::interfaces::ServiceFactory* GetMediaServiceFactory();
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
1017 #endif 1017 #endif
1018 1018
1019 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1019 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1020 1020
1021 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1021 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1022 }; 1022 };
1023 1023
1024 } // namespace content 1024 } // namespace content
1025 1025
1026 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1026 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698