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

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

Issue 857193004: [NOT READY FOR REVIEW YET]workers: Some refactoring to allow creating new kind of worker threads Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 5 years, 11 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 | Source/bindings/core/v8/WorkerScriptController.cpp » ('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, 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
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
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
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/core/v8/WorkerScriptController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698