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

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

Issue 218953002: Oilpan: IDBCursor should be detached from IDBRequest when the IDBRequest stops (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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 int columnNumber; 59 int columnNumber;
60 String sourceURL; 60 String sourceURL;
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 void dispose();
70
69 WorkerGlobalScope& workerGlobalScope() { return m_workerGlobalScope; } 71 WorkerGlobalScope& workerGlobalScope() { return m_workerGlobalScope; }
70 72
71 void evaluate(const ScriptSourceCode&, RefPtr<ErrorEvent>* = 0); 73 void evaluate(const ScriptSourceCode&, RefPtr<ErrorEvent>* = 0);
72 74
73 void rethrowExceptionFromImportedScript(PassRefPtr<ErrorEvent>); 75 void rethrowExceptionFromImportedScript(PassRefPtr<ErrorEvent>);
74 76
75 // Async request to terminate a future JS execution. Eventually causes t ermination 77 // 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. 78 // 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 79 // After JS execution was terminated in this way, the Worker thread has to use
78 // forbidExecution()/isExecutionForbidden() to guard against reentry int o JS. 80 // forbidExecution()/isExecutionForbidden() to guard against reentry int o JS.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 bool m_executionForbidden; 113 bool m_executionForbidden;
112 bool m_executionScheduledToTerminate; 114 bool m_executionScheduledToTerminate;
113 mutable Mutex m_scheduledTerminationMutex; 115 mutable Mutex m_scheduledTerminationMutex;
114 RefPtr<ErrorEvent> m_errorEventFromImportedScript; 116 RefPtr<ErrorEvent> m_errorEventFromImportedScript;
115 OwnPtr<V8IsolateInterruptor> m_interruptor; 117 OwnPtr<V8IsolateInterruptor> m_interruptor;
116 }; 118 };
117 119
118 } // namespace WebCore 120 } // namespace WebCore
119 121
120 #endif // WorkerScriptController_h 122 #endif // WorkerScriptController_h
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/v8/WorkerScriptController.cpp » ('j') | Source/core/workers/WorkerGlobalScope.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698