OLD | NEW |
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" |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 v8::Local<v8::Context> context) override; | 348 v8::Local<v8::Context> context) override; |
349 void AddMessageToConsole(ConsoleMessageLevel level, | 349 void AddMessageToConsole(ConsoleMessageLevel level, |
350 const std::string& message) override; | 350 const std::string& message) override; |
351 | 351 |
352 // blink::WebFrameClient implementation: | 352 // blink::WebFrameClient implementation: |
353 blink::WebPluginPlaceholder* createPluginPlaceholder( | 353 blink::WebPluginPlaceholder* createPluginPlaceholder( |
354 blink::WebLocalFrame*, | 354 blink::WebLocalFrame*, |
355 const blink::WebPluginParams&) override; | 355 const blink::WebPluginParams&) override; |
356 virtual blink::WebPlugin* createPlugin(blink::WebLocalFrame* frame, | 356 virtual blink::WebPlugin* createPlugin(blink::WebLocalFrame* frame, |
357 const blink::WebPluginParams& params); | 357 const blink::WebPluginParams& params); |
| 358 // TODO(srirama): Remove this method once blink updated. |
358 virtual blink::WebMediaPlayer* createMediaPlayer( | 359 virtual blink::WebMediaPlayer* createMediaPlayer( |
359 blink::WebLocalFrame* frame, | 360 blink::WebLocalFrame* frame, |
360 const blink::WebURL& url, | 361 const blink::WebURL& url, |
361 blink::WebMediaPlayerClient* client, | 362 blink::WebMediaPlayerClient* client, |
362 blink::WebContentDecryptionModule* initial_cdm); | 363 blink::WebContentDecryptionModule* initial_cdm); |
| 364 virtual blink::WebMediaPlayer* createMediaPlayer( |
| 365 blink::WebLocalFrame* frame, |
| 366 const blink::WebURL& url, |
| 367 blink::WebMediaPlayerClient* client, |
| 368 blink::WebMediaPlayerEncryptedMediaClient* encrypted_client, |
| 369 blink::WebContentDecryptionModule* initial_cdm); |
363 virtual blink::WebApplicationCacheHost* createApplicationCacheHost( | 370 virtual blink::WebApplicationCacheHost* createApplicationCacheHost( |
364 blink::WebLocalFrame* frame, | 371 blink::WebLocalFrame* frame, |
365 blink::WebApplicationCacheHostClient* client); | 372 blink::WebApplicationCacheHostClient* client); |
366 virtual blink::WebWorkerContentSettingsClientProxy* | 373 virtual blink::WebWorkerContentSettingsClientProxy* |
367 createWorkerContentSettingsClientProxy(blink::WebLocalFrame* frame); | 374 createWorkerContentSettingsClientProxy(blink::WebLocalFrame* frame); |
368 virtual blink::WebExternalPopupMenu* createExternalPopupMenu( | 375 virtual blink::WebExternalPopupMenu* createExternalPopupMenu( |
369 const blink::WebPopupMenuInfo& popup_menu_info, | 376 const blink::WebPopupMenuInfo& popup_menu_info, |
370 blink::WebExternalPopupMenuClient* popup_menu_client); | 377 blink::WebExternalPopupMenuClient* popup_menu_client); |
371 virtual blink::WebCookieJar* cookieJar(blink::WebLocalFrame* frame); | 378 virtual blink::WebCookieJar* cookieJar(blink::WebLocalFrame* frame); |
372 virtual blink::WebServiceWorkerProvider* createServiceWorkerProvider( | 379 virtual blink::WebServiceWorkerProvider* createServiceWorkerProvider( |
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
800 // with the navigation information saved in OnNavigate(). | 807 // with the navigation information saved in OnNavigate(). |
801 void PopulateDocumentStateFromPending(DocumentState* document_state); | 808 void PopulateDocumentStateFromPending(DocumentState* document_state); |
802 | 809 |
803 // Returns a new NavigationState populated with the navigation information | 810 // Returns a new NavigationState populated with the navigation information |
804 // saved in OnNavigate(). | 811 // saved in OnNavigate(). |
805 NavigationState* CreateNavigationStateFromPending(); | 812 NavigationState* CreateNavigationStateFromPending(); |
806 | 813 |
807 #if defined(OS_ANDROID) | 814 #if defined(OS_ANDROID) |
808 blink::WebMediaPlayer* CreateAndroidWebMediaPlayer( | 815 blink::WebMediaPlayer* CreateAndroidWebMediaPlayer( |
809 blink::WebMediaPlayerClient* client, | 816 blink::WebMediaPlayerClient* client, |
| 817 blink::WebMediaPlayerEncryptedMediaClient* encrypted_client, |
810 media::MediaPermission* media_permission, | 818 media::MediaPermission* media_permission, |
811 blink::WebContentDecryptionModule* initial_cdm); | 819 blink::WebContentDecryptionModule* initial_cdm); |
812 | 820 |
813 RendererMediaPlayerManager* GetMediaPlayerManager(); | 821 RendererMediaPlayerManager* GetMediaPlayerManager(); |
814 #endif | 822 #endif |
815 | 823 |
816 bool AreSecureCodecsSupported(); | 824 bool AreSecureCodecsSupported(); |
817 | 825 |
818 media::MediaPermission* GetMediaPermission(); | 826 media::MediaPermission* GetMediaPermission(); |
819 | 827 |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1010 #endif | 1018 #endif |
1011 | 1019 |
1012 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1020 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
1013 | 1021 |
1014 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1022 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
1015 }; | 1023 }; |
1016 | 1024 |
1017 } // namespace content | 1025 } // namespace content |
1018 | 1026 |
1019 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1027 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |