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

Side by Side Diff: third_party/WebKit/public/web/WebKit.h

Issue 2159123002: Shutdown renderer main message loop before blink::shutdown() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: split out blink::Platform::initialize from blink::initialize Created 4 years, 4 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 /* 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 18 matching lines...) Expand all
29 */ 29 */
30 30
31 #ifndef WebKit_h 31 #ifndef WebKit_h
32 #define WebKit_h 32 #define WebKit_h
33 33
34 #include "../platform/Platform.h" 34 #include "../platform/Platform.h"
35 #include <v8.h> 35 #include <v8.h>
36 36
37 namespace blink { 37 namespace blink {
38 38
39 // Initialize the entire Blink (wtf, platform, core, modules and web). 39 // Initialize the entire Blink (core, modules and web).
40 // If you just need wtf and platform, use Platform::initialize instead. 40 // Platform must be initialized before Blink initialization.
haraken 2016/08/08 10:50:19 Can we add an assert for this?
tzik 2016/08/09 08:58:02 Done.
41 // 41 //
42 // Must be called on the thread that will be the main thread before 42 // Must be called on the thread that will be the main thread before
43 // using any other public APIs. The provided Platform; must be 43 // using any other public APIs. The provided Platform; must be
44 // non-null and must remain valid until the current thread calls shutdown. 44 // non-null and must remain valid until the current thread calls shutdown.
45 BLINK_EXPORT void initialize(Platform*); 45 BLINK_EXPORT void initialize();
46 46
47 // Get the V8 Isolate for the main thread. 47 // Get the V8 Isolate for the main thread.
48 // initialize must have been called first. 48 // initialize must have been called first.
49 BLINK_EXPORT v8::Isolate* mainThreadIsolate(); 49 BLINK_EXPORT v8::Isolate* mainThreadIsolate();
50 50
51 // Once shutdown, the Platform passed to initialize will no longer 51 // Once shutdown, the Platform passed to initialize will no longer
52 // be accessed. No other WebKit objects should be in use when this function is 52 // be accessed. No other WebKit objects should be in use when this function is
53 // called. Any background threads created by WebKit are promised to be 53 // called. Any background threads created by WebKit are promised to be
54 // terminated by the time this function returns. 54 // terminated by the time this function returns.
55 BLINK_EXPORT void shutdown(); 55 BLINK_EXPORT void shutdown();
(...skipping 28 matching lines...) Expand all
84 // Send memory pressure notification to worker thread isolate. 84 // Send memory pressure notification to worker thread isolate.
85 BLINK_EXPORT void MemoryPressureNotificationToWorkerThreadIsolates( 85 BLINK_EXPORT void MemoryPressureNotificationToWorkerThreadIsolates(
86 v8::MemoryPressureLevel); 86 v8::MemoryPressureLevel);
87 87
88 // Set the RAIL performance mode on all worker thread isolates. 88 // Set the RAIL performance mode on all worker thread isolates.
89 BLINK_EXPORT void setRAILModeOnWorkerThreadIsolates(v8::RAILMode); 89 BLINK_EXPORT void setRAILModeOnWorkerThreadIsolates(v8::RAILMode);
90 90
91 } // namespace blink 91 } // namespace blink
92 92
93 #endif 93 #endif
OLDNEW
« third_party/WebKit/Source/web/WebKit.cpp ('K') | « third_party/WebKit/Source/web/WebKit.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698