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 840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
851 } | 851 } |
852 | 852 |
853 void BlinkPlatformImpl::didStartWorkerThread() { | 853 void BlinkPlatformImpl::didStartWorkerThread() { |
854 WorkerThreadRegistry::Instance()->DidStartCurrentWorkerThread(); | 854 WorkerThreadRegistry::Instance()->DidStartCurrentWorkerThread(); |
855 } | 855 } |
856 | 856 |
857 void BlinkPlatformImpl::willStopWorkerThread() { | 857 void BlinkPlatformImpl::willStopWorkerThread() { |
858 WorkerThreadRegistry::Instance()->WillStopCurrentWorkerThread(); | 858 WorkerThreadRegistry::Instance()->WillStopCurrentWorkerThread(); |
859 } | 859 } |
860 | 860 |
| 861 bool BlinkPlatformImpl::allowScriptExtensionForServiceWorker( |
| 862 const blink::WebURL& scriptUrl) { |
| 863 return GetContentClient()->AllowScriptExtensionForServiceWorker(scriptUrl); |
| 864 } |
| 865 |
861 blink::WebCrypto* BlinkPlatformImpl::crypto() { | 866 blink::WebCrypto* BlinkPlatformImpl::crypto() { |
862 return &web_crypto_; | 867 return &web_crypto_; |
863 } | 868 } |
864 | 869 |
865 blink::WebGeofencingProvider* BlinkPlatformImpl::geofencingProvider() { | 870 blink::WebGeofencingProvider* BlinkPlatformImpl::geofencingProvider() { |
866 return geofencing_provider_.get(); | 871 return geofencing_provider_.get(); |
867 } | 872 } |
868 | 873 |
869 blink::WebNotificationManager* | 874 blink::WebNotificationManager* |
870 BlinkPlatformImpl::notificationManager() { | 875 BlinkPlatformImpl::notificationManager() { |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1006 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString( | 1011 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString( |
1007 static_cast<ui::DomKey>(dom_key))); | 1012 static_cast<ui::DomKey>(dom_key))); |
1008 } | 1013 } |
1009 | 1014 |
1010 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) { | 1015 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) { |
1011 return static_cast<int>( | 1016 return static_cast<int>( |
1012 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8())); | 1017 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8())); |
1013 } | 1018 } |
1014 | 1019 |
1015 } // namespace content | 1020 } // namespace content |
OLD | NEW |