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

Side by Side Diff: Source/bindings/core/v8/WorkerScriptController.h

Issue 1177753002: Componentization: Export WorkerScriptController. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2012 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 17 matching lines...) Expand all
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef WorkerScriptController_h 31 #ifndef WorkerScriptController_h
32 #define WorkerScriptController_h 32 #define WorkerScriptController_h
33 33
34 #include "bindings/core/v8/RejectedPromises.h" 34 #include "bindings/core/v8/RejectedPromises.h"
35 #include "bindings/core/v8/ScriptValue.h" 35 #include "bindings/core/v8/ScriptValue.h"
36 #include "bindings/core/v8/V8Binding.h" 36 #include "bindings/core/v8/V8Binding.h"
37 #include "bindings/core/v8/V8CacheOptions.h" 37 #include "bindings/core/v8/V8CacheOptions.h"
38 #include "core/CoreExport.h"
38 #include "wtf/OwnPtr.h" 39 #include "wtf/OwnPtr.h"
39 #include "wtf/ThreadingPrimitives.h" 40 #include "wtf/ThreadingPrimitives.h"
40 #include "wtf/text/TextPosition.h" 41 #include "wtf/text/TextPosition.h"
41 #include <v8.h> 42 #include <v8.h>
42 43
43 namespace blink { 44 namespace blink {
44 45
45 class CachedMetadataHandler; 46 class CachedMetadataHandler;
46 class ErrorEvent; 47 class ErrorEvent;
47 class ExceptionState; 48 class ExceptionState;
48 class ScriptSourceCode; 49 class ScriptSourceCode;
49 class WorkerGlobalScope; 50 class WorkerGlobalScope;
50 51
51 class WorkerScriptController { 52 class CORE_EXPORT WorkerScriptController {
52 public: 53 public:
53 WorkerScriptController(WorkerGlobalScope&, v8::Isolate*); 54 WorkerScriptController(WorkerGlobalScope&, v8::Isolate*);
54 ~WorkerScriptController(); 55 ~WorkerScriptController();
55 56
56 bool isExecutionForbidden() const; 57 bool isExecutionForbidden() const;
57 bool isExecutionTerminating() const; 58 bool isExecutionTerminating() const;
58 59
59 // Returns true if the evaluation completed with no uncaught exception. 60 // Returns true if the evaluation completed with no uncaught exception.
60 bool evaluate(const ScriptSourceCode&, RefPtrWillBeRawPtr<ErrorEvent>* = nul lptr, CachedMetadataHandler* = nullptr, V8CacheOptions = V8CacheOptionsDefault); 61 bool evaluate(const ScriptSourceCode&, RefPtrWillBeRawPtr<ErrorEvent>* = nul lptr, CachedMetadataHandler* = nullptr, V8CacheOptions = V8CacheOptionsDefault);
61 62
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 // kept as a bare pointer here, and not a Persistent with 111 // kept as a bare pointer here, and not a Persistent with
111 // Oilpan enabled; stack scanning will visit the object and 112 // Oilpan enabled; stack scanning will visit the object and
112 // trace its on-heap fields. 113 // trace its on-heap fields.
113 GC_PLUGIN_IGNORE("394615") 114 GC_PLUGIN_IGNORE("394615")
114 WorkerGlobalScopeExecutionState* m_globalScopeExecutionState; 115 WorkerGlobalScopeExecutionState* m_globalScopeExecutionState;
115 }; 116 };
116 117
117 } // namespace blink 118 } // namespace blink
118 119
119 #endif // WorkerScriptController_h 120 #endif // WorkerScriptController_h
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698