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 837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
848 } | 848 } |
849 | 849 |
850 void BlinkPlatformImpl::didStartWorkerThread() { | 850 void BlinkPlatformImpl::didStartWorkerThread() { |
851 WorkerThreadRegistry::Instance()->DidStartCurrentWorkerThread(); | 851 WorkerThreadRegistry::Instance()->DidStartCurrentWorkerThread(); |
852 } | 852 } |
853 | 853 |
854 void BlinkPlatformImpl::willStopWorkerThread() { | 854 void BlinkPlatformImpl::willStopWorkerThread() { |
855 WorkerThreadRegistry::Instance()->WillStopCurrentWorkerThread(); | 855 WorkerThreadRegistry::Instance()->WillStopCurrentWorkerThread(); |
856 } | 856 } |
857 | 857 |
| 858 bool BlinkPlatformImpl::allowScriptExtensionForServiceWorker( |
| 859 const blink::WebURL& scriptUrl) { |
| 860 return GetContentClient()->AllowScriptExtensionForServiceWorker(scriptUrl); |
| 861 } |
| 862 |
858 blink::WebCrypto* BlinkPlatformImpl::crypto() { | 863 blink::WebCrypto* BlinkPlatformImpl::crypto() { |
859 return &web_crypto_; | 864 return &web_crypto_; |
860 } | 865 } |
861 | 866 |
862 blink::WebNotificationManager* | 867 blink::WebNotificationManager* |
863 BlinkPlatformImpl::notificationManager() { | 868 BlinkPlatformImpl::notificationManager() { |
864 if (!thread_safe_sender_.get() || !notification_dispatcher_.get()) | 869 if (!thread_safe_sender_.get() || !notification_dispatcher_.get()) |
865 return nullptr; | 870 return nullptr; |
866 | 871 |
867 return NotificationManager::ThreadSpecificInstance( | 872 return NotificationManager::ThreadSpecificInstance( |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
999 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString( | 1004 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString( |
1000 static_cast<ui::DomKey>(dom_key))); | 1005 static_cast<ui::DomKey>(dom_key))); |
1001 } | 1006 } |
1002 | 1007 |
1003 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) { | 1008 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) { |
1004 return static_cast<int>( | 1009 return static_cast<int>( |
1005 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8())); | 1010 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8())); |
1006 } | 1011 } |
1007 | 1012 |
1008 } // namespace content | 1013 } // namespace content |
OLD | NEW |