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

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

Issue 1787643003: Remove initializeWithoutV8 and shutdownWithoutV8 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/public/platform/Platform.h ('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 21 matching lines...) Expand all
32 #define WebKit_h 32 #define WebKit_h
33 33
34 #include "../platform/Platform.h" 34 #include "../platform/Platform.h"
35 35
36 namespace v8 { 36 namespace v8 {
37 class Isolate; 37 class Isolate;
38 } 38 }
39 39
40 namespace blink { 40 namespace blink {
41 41
42 // Must be called on the thread that will be the main WebKit thread before 42 // Initialize the entire Blink (wtf, platform, core, modules and web).
43 // using any other WebKit APIs. The provided Platform; must be 43 // If you just need wtf and platform, use Platform::initialize instead.
44 //
45 // Must be called on the thread that will be the main thread before
46 // using any other public APIs. The provided Platform; must be
44 // non-null and must remain valid until the current thread calls shutdown. 47 // non-null and must remain valid until the current thread calls shutdown.
45 BLINK_EXPORT void initialize(Platform*); 48 BLINK_EXPORT void initialize(Platform*);
46 49
47 // Must be called on the thread that will be the main WebKit thread before
48 // using any other WebKit APIs. The provided Platform must be
49 // non-null and must remain valid until the current thread calls shutdown.
50 //
51 // This is a special variant of initialize that does not intitialize V8.
52 BLINK_EXPORT void initializeWithoutV8(Platform*);
53
54 // Get the V8 Isolate for the main thread. 50 // Get the V8 Isolate for the main thread.
55 // initialize must have been called first. 51 // initialize must have been called first.
56 BLINK_EXPORT v8::Isolate* mainThreadIsolate(); 52 BLINK_EXPORT v8::Isolate* mainThreadIsolate();
57 53
58 // Once shutdown, the Platform passed to initialize will no longer 54 // Once shutdown, the Platform passed to initialize will no longer
59 // be accessed. No other WebKit objects should be in use when this function is 55 // be accessed. No other WebKit objects should be in use when this function is
60 // called. Any background threads created by WebKit are promised to be 56 // called. Any background threads created by WebKit are promised to be
61 // terminated by the time this function returns. 57 // terminated by the time this function returns.
62 BLINK_EXPORT void shutdown(); 58 BLINK_EXPORT void shutdown();
63 59
64 // Once shutdown, the Platform passed to initializeWithoutV8 will no longer
65 // be accessed. No other WebKit objects should be in use when this function is
66 // called. Any background threads created by WebKit are promised to be
67 // terminated by the time this function returns.
68 //
69 // If initializeWithoutV8() was used to initialize WebKit, shutdownWithoutV8
70 // must be called to shut it down again.
71 BLINK_EXPORT void shutdownWithoutV8();
72
73 // Alters the rendering of content to conform to a fixed set of rules. 60 // Alters the rendering of content to conform to a fixed set of rules.
74 BLINK_EXPORT void setLayoutTestMode(bool); 61 BLINK_EXPORT void setLayoutTestMode(bool);
75 BLINK_EXPORT bool layoutTestMode(); 62 BLINK_EXPORT bool layoutTestMode();
76 63
77 // Enables or disables the use of the mock theme for layout tests. This function 64 // Enables or disables the use of the mock theme for layout tests. This function
78 // must be called only if setLayoutTestMode(true). 65 // must be called only if setLayoutTestMode(true).
79 BLINK_EXPORT void setMockThemeEnabledForTest(bool); 66 BLINK_EXPORT void setMockThemeEnabledForTest(bool);
80 67
81 // Alters the rendering of fonts for layout tests. 68 // Alters the rendering of fonts for layout tests.
82 BLINK_EXPORT void setFontAntialiasingEnabledForTest(bool); 69 BLINK_EXPORT void setFontAntialiasingEnabledForTest(bool);
(...skipping 10 matching lines...) Expand all
93 // containing plugins will be reloaded after refreshing the plugin list. 80 // containing plugins will be reloaded after refreshing the plugin list.
94 BLINK_EXPORT void resetPluginCache(bool reloadPages = false); 81 BLINK_EXPORT void resetPluginCache(bool reloadPages = false);
95 82
96 // The embedder should call this periodically in an attempt to balance overall 83 // The embedder should call this periodically in an attempt to balance overall
97 // performance and memory usage. 84 // performance and memory usage.
98 BLINK_EXPORT void decommitFreeableMemory(); 85 BLINK_EXPORT void decommitFreeableMemory();
99 86
100 } // namespace blink 87 } // namespace blink
101 88
102 #endif 89 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/platform/Platform.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698