OLD | NEW |
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 29 matching lines...) Expand all Loading... |
40 | 40 |
41 namespace blink { | 41 namespace blink { |
42 | 42 |
43 class ErrorEvent; | 43 class ErrorEvent; |
44 class ExceptionState; | 44 class ExceptionState; |
45 class ScriptSourceCode; | 45 class ScriptSourceCode; |
46 class WorkerGlobalScope; | 46 class WorkerGlobalScope; |
47 | 47 |
48 class WorkerScriptController { | 48 class WorkerScriptController { |
49 public: | 49 public: |
50 explicit WorkerScriptController(WorkerGlobalScope&); | 50 WorkerScriptController(WorkerGlobalScope&, v8::Isolate*); |
51 ~WorkerScriptController(); | 51 ~WorkerScriptController(); |
52 | 52 |
53 bool isExecutionForbidden() const; | 53 bool isExecutionForbidden() const; |
54 bool isExecutionTerminating() const; | 54 bool isExecutionTerminating() const; |
55 | 55 |
56 // Returns true if the evaluation completed with no uncaught exception. | 56 // Returns true if the evaluation completed with no uncaught exception. |
57 bool evaluate(const ScriptSourceCode&, RefPtrWillBeRawPtr<ErrorEvent>* = 0); | 57 bool evaluate(const ScriptSourceCode&, RefPtrWillBeRawPtr<ErrorEvent>* = 0); |
58 | 58 |
59 // Prevents future JavaScript execution. See | 59 // Prevents future JavaScript execution. See |
60 // scheduleExecutionTermination, isExecutionForbidden. | 60 // scheduleExecutionTermination, isExecutionForbidden. |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 // Oilpan enabled; stack scanning will visit the object and | 108 // Oilpan enabled; stack scanning will visit the object and |
109 // trace its on-heap fields. | 109 // trace its on-heap fields. |
110 GC_PLUGIN_IGNORE("394615") | 110 GC_PLUGIN_IGNORE("394615") |
111 WorkerGlobalScopeExecutionState* m_globalScopeExecutionState; | 111 WorkerGlobalScopeExecutionState* m_globalScopeExecutionState; |
112 OwnPtr<V8IsolateInterruptor> m_interruptor; | 112 OwnPtr<V8IsolateInterruptor> m_interruptor; |
113 }; | 113 }; |
114 | 114 |
115 } // namespace blink | 115 } // namespace blink |
116 | 116 |
117 #endif // WorkerScriptController_h | 117 #endif // WorkerScriptController_h |
OLD | NEW |