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

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

Issue 1087203002: Patch 2/3 to get WebScheduler via WebThread (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Style nits Created 5 years, 8 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 | « Source/platform/scheduler/SchedulerTest.cpp ('k') | public/platform/Platform.h » ('j') | 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 #include "gin/public/v8_platform.h" 44 #include "gin/public/v8_platform.h"
45 #include "modules/InitModules.h" 45 #include "modules/InitModules.h"
46 #include "platform/LayoutTestSupport.h" 46 #include "platform/LayoutTestSupport.h"
47 #include "platform/Logging.h" 47 #include "platform/Logging.h"
48 #include "platform/RuntimeEnabledFeatures.h" 48 #include "platform/RuntimeEnabledFeatures.h"
49 #include "platform/graphics/ImageDecodingStore.h" 49 #include "platform/graphics/ImageDecodingStore.h"
50 #include "platform/graphics/media/MediaPlayer.h" 50 #include "platform/graphics/media/MediaPlayer.h"
51 #include "platform/heap/Heap.h" 51 #include "platform/heap/Heap.h"
52 #include "platform/heap/glue/MessageLoopInterruptor.h" 52 #include "platform/heap/glue/MessageLoopInterruptor.h"
53 #include "platform/heap/glue/PendingGCRunner.h" 53 #include "platform/heap/glue/PendingGCRunner.h"
54 #include "platform/scheduler/Scheduler.h"
55 #include "public/platform/Platform.h" 54 #include "public/platform/Platform.h"
56 #include "public/platform/WebPrerenderingSupport.h" 55 #include "public/platform/WebPrerenderingSupport.h"
57 #include "public/platform/WebThread.h" 56 #include "public/platform/WebThread.h"
58 #include "web/IndexedDBClientImpl.h" 57 #include "web/IndexedDBClientImpl.h"
59 #include "web/WebMediaPlayerClientImpl.h" 58 #include "web/WebMediaPlayerClientImpl.h"
60 #include "wtf/Assertions.h" 59 #include "wtf/Assertions.h"
61 #include "wtf/CryptographicallyRandomNumber.h" 60 #include "wtf/CryptographicallyRandomNumber.h"
62 #include "wtf/MainThread.h" 61 #include "wtf/MainThread.h"
63 #include "wtf/WTF.h" 62 #include "wtf/WTF.h"
64 #include "wtf/text/AtomicString.h" 63 #include "wtf/text/AtomicString.h"
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 236
238 V8PerIsolateData::destroy(isolate); 237 V8PerIsolateData::destroy(isolate);
239 238
240 shutdownWithoutV8(); 239 shutdownWithoutV8();
241 } 240 }
242 241
243 void shutdownWithoutV8() 242 void shutdownWithoutV8()
244 { 243 {
245 ASSERT(!s_endOfTaskRunner); 244 ASSERT(!s_endOfTaskRunner);
246 CoreInitializer::shutdown(); 245 CoreInitializer::shutdown();
247 Scheduler::shutdown();
248 Heap::shutdown(); 246 Heap::shutdown();
249 WTF::shutdown(); 247 WTF::shutdown();
250 Platform::shutdown(); 248 Platform::shutdown();
251 WebPrerenderingSupport::shutdown(); 249 WebPrerenderingSupport::shutdown();
252 } 250 }
253 251
254 void setLayoutTestMode(bool value) 252 void setLayoutTestMode(bool value)
255 { 253 {
256 LayoutTestSupport::setIsRunningLayoutTest(value); 254 LayoutTestSupport::setIsRunningLayoutTest(value);
257 } 255 }
(...skipping 22 matching lines...) Expand all
280 #endif // !LOG_DISABLED 278 #endif // !LOG_DISABLED
281 } 279 }
282 280
283 void resetPluginCache(bool reloadPages) 281 void resetPluginCache(bool reloadPages)
284 { 282 {
285 ASSERT(!reloadPages); 283 ASSERT(!reloadPages);
286 Page::refreshPlugins(); 284 Page::refreshPlugins();
287 } 285 }
288 286
289 } // namespace blink 287 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/scheduler/SchedulerTest.cpp ('k') | public/platform/Platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698