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

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

Issue 216523002: Oilpan: Replace most of RefPtrs for Event objects with oilpan's transition types (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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
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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 ScriptValue exception; 61 ScriptValue exception;
62 }; 62 };
63 63
64 class WorkerScriptController { 64 class WorkerScriptController {
65 public: 65 public:
66 explicit WorkerScriptController(WorkerGlobalScope&); 66 explicit WorkerScriptController(WorkerGlobalScope&);
67 ~WorkerScriptController(); 67 ~WorkerScriptController();
68 68
69 WorkerGlobalScope& workerGlobalScope() { return m_workerGlobalScope; } 69 WorkerGlobalScope& workerGlobalScope() { return m_workerGlobalScope; }
70 70
71 void evaluate(const ScriptSourceCode&, RefPtr<ErrorEvent>* = 0); 71 void evaluate(const ScriptSourceCode&, RefPtrWillBeRawPtr<ErrorEvent>* = 0);
72 72
73 void rethrowExceptionFromImportedScript(PassRefPtr<ErrorEvent>); 73 void rethrowExceptionFromImportedScript(PassRefPtrWillBeRawPtr<ErrorEven t>);
74 74
75 // Async request to terminate a future JS execution. Eventually causes t ermination 75 // Async request to terminate a future JS execution. Eventually causes t ermination
76 // exception raised during JS execution, if the worker thread happens to run JS. 76 // exception raised during JS execution, if the worker thread happens to run JS.
77 // After JS execution was terminated in this way, the Worker thread has to use 77 // After JS execution was terminated in this way, the Worker thread has to use
78 // forbidExecution()/isExecutionForbidden() to guard against reentry int o JS. 78 // forbidExecution()/isExecutionForbidden() to guard against reentry int o JS.
79 // Can be called from any thread. 79 // Can be called from any thread.
80 void scheduleExecutionTermination(); 80 void scheduleExecutionTermination();
81 bool isExecutionTerminating() const; 81 bool isExecutionTerminating() const;
82 82
83 // Called on Worker thread when JS exits with termination exception caus ed by forbidExecution() request, 83 // Called on Worker thread when JS exits with termination exception caus ed by forbidExecution() request,
(...skipping 20 matching lines...) Expand all
104 bool initializeContextIfNeeded(); 104 bool initializeContextIfNeeded();
105 105
106 v8::Isolate* m_isolate; 106 v8::Isolate* m_isolate;
107 WorkerGlobalScope& m_workerGlobalScope; 107 WorkerGlobalScope& m_workerGlobalScope;
108 RefPtr<NewScriptState> m_scriptState; 108 RefPtr<NewScriptState> m_scriptState;
109 RefPtr<DOMWrapperWorld> m_world; 109 RefPtr<DOMWrapperWorld> m_world;
110 String m_disableEvalPending; 110 String m_disableEvalPending;
111 bool m_executionForbidden; 111 bool m_executionForbidden;
112 bool m_executionScheduledToTerminate; 112 bool m_executionScheduledToTerminate;
113 mutable Mutex m_scheduledTerminationMutex; 113 mutable Mutex m_scheduledTerminationMutex;
114 RefPtr<ErrorEvent> m_errorEventFromImportedScript; 114 RefPtrWillBePersistent<ErrorEvent> m_errorEventFromImportedScript;
115 OwnPtr<V8IsolateInterruptor> m_interruptor; 115 OwnPtr<V8IsolateInterruptor> m_interruptor;
116 }; 116 };
117 117
118 } // namespace WebCore 118 } // namespace WebCore
119 119
120 #endif // WorkerScriptController_h 120 #endif // WorkerScriptController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698