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

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

Issue 1680873002: [Experimental Framework] Move trial token code to renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add boringssl dependency to content/renderer/ Created 4 years, 10 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 <vector> 9 #include <vector>
10 10
(...skipping 973 matching lines...) Expand 10 before | Expand all | Expand 10 after
984 } 984 }
985 985
986 blink::WebSyncProvider* BlinkPlatformImpl::backgroundSyncProvider() { 986 blink::WebSyncProvider* BlinkPlatformImpl::backgroundSyncProvider() {
987 if (IsMainThread()) 987 if (IsMainThread())
988 return main_thread_sync_provider_.get(); 988 return main_thread_sync_provider_.get();
989 989
990 return BackgroundSyncProvider::GetOrCreateThreadSpecificInstance( 990 return BackgroundSyncProvider::GetOrCreateThreadSpecificInstance(
991 main_thread_task_runner_.get()); 991 main_thread_task_runner_.get());
992 } 992 }
993 993
994 blink::WebTrialTokenValidator* BlinkPlatformImpl::trialTokenValidator() {
995 return &trial_token_validator_;
996 }
997
998 WebThemeEngine* BlinkPlatformImpl::themeEngine() { 994 WebThemeEngine* BlinkPlatformImpl::themeEngine() {
999 return &native_theme_engine_; 995 return &native_theme_engine_;
1000 } 996 }
1001 997
1002 WebFallbackThemeEngine* BlinkPlatformImpl::fallbackThemeEngine() { 998 WebFallbackThemeEngine* BlinkPlatformImpl::fallbackThemeEngine() {
1003 return &fallback_theme_engine_; 999 return &fallback_theme_engine_;
1004 } 1000 }
1005 1001
1006 blink::Platform::FileHandle BlinkPlatformImpl::databaseOpenFile( 1002 blink::Platform::FileHandle BlinkPlatformImpl::databaseOpenFile(
1007 const blink::WebString& vfs_file_name, int desired_flags) { 1003 const blink::WebString& vfs_file_name, int desired_flags) {
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
1103 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString( 1099 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString(
1104 static_cast<ui::DomKey>(dom_key))); 1100 static_cast<ui::DomKey>(dom_key)));
1105 } 1101 }
1106 1102
1107 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) { 1103 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) {
1108 return static_cast<int>( 1104 return static_cast<int>(
1109 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8())); 1105 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8()));
1110 } 1106 }
1111 1107
1112 } // namespace content 1108 } // namespace content
OLDNEW
« no previous file with comments | « content/child/blink_platform_impl.h ('k') | content/child/origin_trials/trial_token_validator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698