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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/ScheduledAction.cpp

Issue 1883663005: Remove remaining binding layer RawPtr<>s. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 27 matching lines...) Expand all
38 #include "core/dom/Document.h" 38 #include "core/dom/Document.h"
39 #include "core/dom/ExecutionContext.h" 39 #include "core/dom/ExecutionContext.h"
40 #include "core/frame/LocalFrame.h" 40 #include "core/frame/LocalFrame.h"
41 #include "core/workers/WorkerGlobalScope.h" 41 #include "core/workers/WorkerGlobalScope.h"
42 #include "core/workers/WorkerThread.h" 42 #include "core/workers/WorkerThread.h"
43 #include "platform/Logging.h" 43 #include "platform/Logging.h"
44 #include "platform/TraceEvent.h" 44 #include "platform/TraceEvent.h"
45 45
46 namespace blink { 46 namespace blink {
47 47
48 RawPtr<ScheduledAction> ScheduledAction::create(ScriptState* scriptState, const ScriptValue& handler, const Vector<ScriptValue>& arguments) 48 ScheduledAction* ScheduledAction::create(ScriptState* scriptState, const ScriptV alue& handler, const Vector<ScriptValue>& arguments)
49 { 49 {
50 ASSERT(handler.isFunction()); 50 ASSERT(handler.isFunction());
51 return new ScheduledAction(scriptState, handler, arguments); 51 return new ScheduledAction(scriptState, handler, arguments);
52 } 52 }
53 53
54 RawPtr<ScheduledAction> ScheduledAction::create(ScriptState* scriptState, const String& handler) 54 ScheduledAction* ScheduledAction::create(ScriptState* scriptState, const String& handler)
55 { 55 {
56 return new ScheduledAction(scriptState, handler); 56 return new ScheduledAction(scriptState, handler);
57 } 57 }
58 58
59 DEFINE_TRACE(ScheduledAction) 59 DEFINE_TRACE(ScheduledAction)
60 { 60 {
61 visitor->trace(m_code); 61 visitor->trace(m_code);
62 } 62 }
63 63
64 ScheduledAction::~ScheduledAction() 64 ScheduledAction::~ScheduledAction()
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 } 140 }
141 141
142 void ScheduledAction::createLocalHandlesForArgs(Vector<v8::Local<v8::Value>>* ha ndles) 142 void ScheduledAction::createLocalHandlesForArgs(Vector<v8::Local<v8::Value>>* ha ndles)
143 { 143 {
144 handles->reserveCapacity(m_info.Size()); 144 handles->reserveCapacity(m_info.Size());
145 for (size_t i = 0; i < m_info.Size(); ++i) 145 for (size_t i = 0; i < m_info.Size(); ++i)
146 handles->append(m_info.Get(i)); 146 handles->append(m_info.Get(i));
147 } 147 }
148 148
149 } // namespace blink 149 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698