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

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

Issue 1278983003: Adding allocator annotations to blink classes and structs. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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
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 18 matching lines...) Expand all
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 "core/CoreExport.h"
39 #include "wtf/Allocator.h"
39 #include "wtf/OwnPtr.h" 40 #include "wtf/OwnPtr.h"
40 #include "wtf/ThreadingPrimitives.h" 41 #include "wtf/ThreadingPrimitives.h"
41 #include "wtf/text/TextPosition.h" 42 #include "wtf/text/TextPosition.h"
42 #include <v8.h> 43 #include <v8.h>
43 44
44 namespace blink { 45 namespace blink {
45 46
46 class CachedMetadataHandler; 47 class CachedMetadataHandler;
47 class ErrorEvent; 48 class ErrorEvent;
48 class ExceptionState; 49 class ExceptionState;
49 class ScriptSourceCode; 50 class ScriptSourceCode;
50 class WorkerGlobalScope; 51 class WorkerGlobalScope;
51 52
52 class CORE_EXPORT WorkerScriptController { 53 class CORE_EXPORT WorkerScriptController {
54 WTF_MAKE_FAST_ALLOCATED(WorkerScriptController);
55 WTF_MAKE_NONCOPYABLE(WorkerScriptController);
53 public: 56 public:
54 WorkerScriptController(WorkerGlobalScope&, v8::Isolate*); 57 WorkerScriptController(WorkerGlobalScope&, v8::Isolate*);
55 ~WorkerScriptController(); 58 ~WorkerScriptController();
56 59
57 bool isExecutionForbidden() const; 60 bool isExecutionForbidden() const;
58 bool isExecutionTerminating() const; 61 bool isExecutionTerminating() const;
59 62
60 // Returns true if the evaluation completed with no uncaught exception. 63 // Returns true if the evaluation completed with no uncaught exception.
61 bool evaluate(const ScriptSourceCode&, RefPtrWillBeRawPtr<ErrorEvent>* = nul lptr, CachedMetadataHandler* = nullptr, V8CacheOptions = V8CacheOptionsDefault); 64 bool evaluate(const ScriptSourceCode&, RefPtrWillBeRawPtr<ErrorEvent>* = nul lptr, CachedMetadataHandler* = nullptr, V8CacheOptions = V8CacheOptionsDefault);
62 65
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 // kept as a bare pointer here, and not a Persistent with 114 // kept as a bare pointer here, and not a Persistent with
112 // Oilpan enabled; stack scanning will visit the object and 115 // Oilpan enabled; stack scanning will visit the object and
113 // trace its on-heap fields. 116 // trace its on-heap fields.
114 GC_PLUGIN_IGNORE("394615") 117 GC_PLUGIN_IGNORE("394615")
115 WorkerGlobalScopeExecutionState* m_globalScopeExecutionState; 118 WorkerGlobalScopeExecutionState* m_globalScopeExecutionState;
116 }; 119 };
117 120
118 } // namespace blink 121 } // namespace blink
119 122
120 #endif // WorkerScriptController_h 123 #endif // WorkerScriptController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698