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

Side by Side Diff: content/child/blink_platform_impl.cc

Issue 2706313002: Media Capabilities: add plumbing between Blink and media/blink/. (Closed)
Patch Set: haraken comment Created 3 years, 9 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "content/child/blink_platform_impl.h" 5 #include "content/child/blink_platform_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
(...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 730
731 return NotificationManager::ThreadSpecificInstance( 731 return NotificationManager::ThreadSpecificInstance(
732 thread_safe_sender_.get(), 732 thread_safe_sender_.get(),
733 notification_dispatcher_.get()); 733 notification_dispatcher_.get());
734 } 734 }
735 735
736 blink::WebPushProvider* BlinkPlatformImpl::pushProvider() { 736 blink::WebPushProvider* BlinkPlatformImpl::pushProvider() {
737 return PushProvider::ThreadSpecificInstance(main_thread_task_runner_); 737 return PushProvider::ThreadSpecificInstance(main_thread_task_runner_);
738 } 738 }
739 739
740 blink::WebMediaCapabilitiesClient*
741 BlinkPlatformImpl::mediaCapabilitiesClient() {
742 return &media_capabilities_client_;
743 }
744
740 WebThemeEngine* BlinkPlatformImpl::themeEngine() { 745 WebThemeEngine* BlinkPlatformImpl::themeEngine() {
741 return &native_theme_engine_; 746 return &native_theme_engine_;
742 } 747 }
743 748
744 WebFallbackThemeEngine* BlinkPlatformImpl::fallbackThemeEngine() { 749 WebFallbackThemeEngine* BlinkPlatformImpl::fallbackThemeEngine() {
745 return &fallback_theme_engine_; 750 return &fallback_theme_engine_;
746 } 751 }
747 752
748 blink::Platform::FileHandle BlinkPlatformImpl::databaseOpenFile( 753 blink::Platform::FileHandle BlinkPlatformImpl::databaseOpenFile(
749 const blink::WebString& vfs_file_name, int desired_flags) { 754 const blink::WebString& vfs_file_name, int desired_flags) {
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
866 blink::WebFeaturePolicy* BlinkPlatformImpl::duplicateFeaturePolicyWithOrigin( 871 blink::WebFeaturePolicy* BlinkPlatformImpl::duplicateFeaturePolicyWithOrigin(
867 const blink::WebFeaturePolicy& policy, 872 const blink::WebFeaturePolicy& policy,
868 const blink::WebSecurityOrigin& new_origin) { 873 const blink::WebSecurityOrigin& new_origin) {
869 std::unique_ptr<FeaturePolicy> new_policy = 874 std::unique_ptr<FeaturePolicy> new_policy =
870 FeaturePolicy::CreateFromPolicyWithOrigin( 875 FeaturePolicy::CreateFromPolicyWithOrigin(
871 static_cast<const FeaturePolicy&>(policy), url::Origin(new_origin)); 876 static_cast<const FeaturePolicy&>(policy), url::Origin(new_origin));
872 return new_policy.release(); 877 return new_policy.release();
873 } 878 }
874 879
875 } // namespace content 880 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698