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

Side by Side Diff: third_party/WebKit/Source/web/WebKit.cpp

Issue 2402983002: [TimeZoneMonitor] Decouple renderer side impl from content to blink. (Closed)
Patch Set: Rebase only Created 4 years, 1 month 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 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 return *initializer; 75 return *initializer;
76 } 76 }
77 77
78 void initialize(Platform* platform) { 78 void initialize(Platform* platform) {
79 Platform::initialize(platform); 79 Platform::initialize(platform);
80 80
81 V8Initializer::initializeMainThread(); 81 V8Initializer::initializeMainThread();
82 82
83 modulesInitializer().initialize(); 83 modulesInitializer().initialize();
84 84
85 // Some unit tests may have no message loop ready, so we can't initialize the
86 // mojo stuff here. They can initialize those mojo stuff they're interested in
87 // later after they got a message loop ready.
88 if (Platform::isMessageLoopReady())
89 modulesInitializer().initializeMojo();
haraken 2016/10/26 11:21:59 Can we move this into modulesInitializer().initial
leonhsl(Using Gerrit) 2016/10/26 11:45:48 Acknowledged.
leonhsl(Using Gerrit) 2016/10/27 05:01:27 Done.
90
85 // currentThread is null if we are running on a thread without a message loop. 91 // currentThread is null if we are running on a thread without a message loop.
86 if (WebThread* currentThread = platform->currentThread()) { 92 if (WebThread* currentThread = platform->currentThread()) {
87 DCHECK(!s_endOfTaskRunner); 93 DCHECK(!s_endOfTaskRunner);
88 s_endOfTaskRunner = new EndOfTaskRunner; 94 s_endOfTaskRunner = new EndOfTaskRunner;
89 currentThread->addTaskObserver(s_endOfTaskRunner); 95 currentThread->addTaskObserver(s_endOfTaskRunner);
90 } 96 }
91 } 97 }
92 98
93 void shutdown() { 99 void shutdown() {
94 ThreadState::current()->cleanupMainThread(); 100 ThreadState::current()->cleanupMainThread();
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 void MemoryPressureNotificationToWorkerThreadIsolates( 160 void MemoryPressureNotificationToWorkerThreadIsolates(
155 v8::MemoryPressureLevel level) { 161 v8::MemoryPressureLevel level) {
156 WorkerBackingThread::MemoryPressureNotificationToWorkerThreadIsolates(level); 162 WorkerBackingThread::MemoryPressureNotificationToWorkerThreadIsolates(level);
157 } 163 }
158 164
159 void setRAILModeOnWorkerThreadIsolates(v8::RAILMode railMode) { 165 void setRAILModeOnWorkerThreadIsolates(v8::RAILMode railMode) {
160 WorkerBackingThread::setRAILModeOnWorkerThreadIsolates(railMode); 166 WorkerBackingThread::setRAILModeOnWorkerThreadIsolates(railMode);
161 } 167 }
162 168
163 } // namespace blink 169 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698