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

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

Issue 1278983003: Adding allocator annotations to blink classes and structs. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed patch conflict 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) 2007-2009 Google Inc. All rights reserved. 2 * Copyright (C) 2007-2009 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 #include <v8.h> 40 #include <v8.h>
41 41
42 namespace blink { 42 namespace blink {
43 43
44 class LocalFrame; 44 class LocalFrame;
45 class ExecutionContext; 45 class ExecutionContext;
46 class WorkerGlobalScope; 46 class WorkerGlobalScope;
47 47
48 class ScheduledAction final : public NoBaseWillBeGarbageCollectedFinalized<Sched uledAction> { 48 class ScheduledAction final : public NoBaseWillBeGarbageCollectedFinalized<Sched uledAction> {
49 WTF_MAKE_NONCOPYABLE(ScheduledAction); 49 WTF_MAKE_NONCOPYABLE(ScheduledAction);
50 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(ScheduledAction);
50 public: 51 public:
51 static PassOwnPtrWillBeRawPtr<ScheduledAction> create(ScriptState*, const Sc riptValue& handler, const Vector<ScriptValue>& arguments); 52 static PassOwnPtrWillBeRawPtr<ScheduledAction> create(ScriptState*, const Sc riptValue& handler, const Vector<ScriptValue>& arguments);
52 static PassOwnPtrWillBeRawPtr<ScheduledAction> create(ScriptState*, const St ring& handler); 53 static PassOwnPtrWillBeRawPtr<ScheduledAction> create(ScriptState*, const St ring& handler);
53 54
54 ~ScheduledAction(); 55 ~ScheduledAction();
55 DECLARE_TRACE(); 56 DECLARE_TRACE();
56 57
57 void execute(ExecutionContext*); 58 void execute(ExecutionContext*);
58 59
59 private: 60 private:
60 ScheduledAction(ScriptState*, const ScriptValue& handler, const Vector<Scrip tValue>& arguments); 61 ScheduledAction(ScriptState*, const ScriptValue& handler, const Vector<Scrip tValue>& arguments);
61 ScheduledAction(ScriptState*, const String& handler); 62 ScheduledAction(ScriptState*, const String& handler);
62 63
63 void execute(LocalFrame*); 64 void execute(LocalFrame*);
64 void execute(WorkerGlobalScope*); 65 void execute(WorkerGlobalScope*);
65 void createLocalHandlesForArgs(Vector<v8::Local<v8::Value>>* handles); 66 void createLocalHandlesForArgs(Vector<v8::Local<v8::Value>>* handles);
66 67
67 ScriptStateProtectingContext m_scriptState; 68 ScriptStateProtectingContext m_scriptState;
68 ScopedPersistent<v8::Function> m_function; 69 ScopedPersistent<v8::Function> m_function;
69 V8PersistentValueVector<v8::Value> m_info; 70 V8PersistentValueVector<v8::Value> m_info;
70 ScriptSourceCode m_code; 71 ScriptSourceCode m_code;
71 }; 72 };
72 73
73 } // namespace blink 74 } // namespace blink
74 75
75 #endif // ScheduledAction 76 #endif // ScheduledAction
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/RetainedObjectInfo.h ('k') | Source/bindings/core/v8/ScopedPersistent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698