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

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

Issue 1880933002: Begin to enable extension APIs in Extension Service Worker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync Created 4 years, 7 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 840 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698