| OLD | NEW |
| 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 721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 732 | 732 |
| 733 return NotificationManager::ThreadSpecificInstance( | 733 return NotificationManager::ThreadSpecificInstance( |
| 734 thread_safe_sender_.get(), | 734 thread_safe_sender_.get(), |
| 735 notification_dispatcher_.get()); | 735 notification_dispatcher_.get()); |
| 736 } | 736 } |
| 737 | 737 |
| 738 blink::WebPushProvider* BlinkPlatformImpl::pushProvider() { | 738 blink::WebPushProvider* BlinkPlatformImpl::pushProvider() { |
| 739 return PushProvider::ThreadSpecificInstance(main_thread_task_runner_); | 739 return PushProvider::ThreadSpecificInstance(main_thread_task_runner_); |
| 740 } | 740 } |
| 741 | 741 |
| 742 blink::WebMediaCapabilitiesClient* |
| 743 BlinkPlatformImpl::mediaCapabilitiesClient() { |
| 744 return &media_capabilities_client_; |
| 745 } |
| 746 |
| 742 WebThemeEngine* BlinkPlatformImpl::themeEngine() { | 747 WebThemeEngine* BlinkPlatformImpl::themeEngine() { |
| 743 return &native_theme_engine_; | 748 return &native_theme_engine_; |
| 744 } | 749 } |
| 745 | 750 |
| 746 WebFallbackThemeEngine* BlinkPlatformImpl::fallbackThemeEngine() { | 751 WebFallbackThemeEngine* BlinkPlatformImpl::fallbackThemeEngine() { |
| 747 return &fallback_theme_engine_; | 752 return &fallback_theme_engine_; |
| 748 } | 753 } |
| 749 | 754 |
| 750 blink::Platform::FileHandle BlinkPlatformImpl::databaseOpenFile( | 755 blink::Platform::FileHandle BlinkPlatformImpl::databaseOpenFile( |
| 751 const blink::WebString& vfs_file_name, int desired_flags) { | 756 const blink::WebString& vfs_file_name, int desired_flags) { |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 868 blink::WebFeaturePolicy* BlinkPlatformImpl::duplicateFeaturePolicyWithOrigin( | 873 blink::WebFeaturePolicy* BlinkPlatformImpl::duplicateFeaturePolicyWithOrigin( |
| 869 const blink::WebFeaturePolicy& policy, | 874 const blink::WebFeaturePolicy& policy, |
| 870 const blink::WebSecurityOrigin& new_origin) { | 875 const blink::WebSecurityOrigin& new_origin) { |
| 871 std::unique_ptr<FeaturePolicy> new_policy = | 876 std::unique_ptr<FeaturePolicy> new_policy = |
| 872 FeaturePolicy::CreateFromPolicyWithOrigin( | 877 FeaturePolicy::CreateFromPolicyWithOrigin( |
| 873 static_cast<const FeaturePolicy&>(policy), url::Origin(new_origin)); | 878 static_cast<const FeaturePolicy&>(policy), url::Origin(new_origin)); |
| 874 return new_policy.release(); | 879 return new_policy.release(); |
| 875 } | 880 } |
| 876 | 881 |
| 877 } // namespace content | 882 } // namespace content |
| OLD | NEW |