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

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

Issue 2913613003: Made WebFactory::SetInstance private (Closed)
Patch Set: Moved to be protected Created 3 years, 6 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
« no previous file with comments | « third_party/WebKit/Source/web/WebFactoryImpl.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 return *initializer; 78 return *initializer;
79 } 79 }
80 80
81 void Initialize(Platform* platform) { 81 void Initialize(Platform* platform) {
82 Platform::Initialize(platform); 82 Platform::Initialize(platform);
83 83
84 V8Initializer::InitializeMainThread(); 84 V8Initializer::InitializeMainThread();
85 85
86 GetModulesInitializer().Initialize(); 86 GetModulesInitializer().Initialize();
87 87
88 WebFactory::SetInstance(*(new WebFactoryImpl())); 88 WebFactoryImpl::Initialize();
89 89
90 // currentThread is null if we are running on a thread without a message loop. 90 // currentThread is null if we are running on a thread without a message loop.
91 if (WebThread* current_thread = platform->CurrentThread()) { 91 if (WebThread* current_thread = platform->CurrentThread()) {
92 DCHECK(!g_end_of_task_runner); 92 DCHECK(!g_end_of_task_runner);
93 g_end_of_task_runner = new EndOfTaskRunner; 93 g_end_of_task_runner = new EndOfTaskRunner;
94 current_thread->AddTaskObserver(g_end_of_task_runner); 94 current_thread->AddTaskObserver(g_end_of_task_runner);
95 } 95 }
96 } 96 }
97 97
98 v8::Isolate* MainThreadIsolate() { 98 v8::Isolate* MainThreadIsolate() {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 void MemoryPressureNotificationToWorkerThreadIsolates( 135 void MemoryPressureNotificationToWorkerThreadIsolates(
136 v8::MemoryPressureLevel level) { 136 v8::MemoryPressureLevel level) {
137 WorkerBackingThread::MemoryPressureNotificationToWorkerThreadIsolates(level); 137 WorkerBackingThread::MemoryPressureNotificationToWorkerThreadIsolates(level);
138 } 138 }
139 139
140 void SetRAILModeOnWorkerThreadIsolates(v8::RAILMode rail_mode) { 140 void SetRAILModeOnWorkerThreadIsolates(v8::RAILMode rail_mode) {
141 WorkerBackingThread::SetRAILModeOnWorkerThreadIsolates(rail_mode); 141 WorkerBackingThread::SetRAILModeOnWorkerThreadIsolates(rail_mode);
142 } 142 }
143 143
144 } // namespace blink 144 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebFactoryImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698