| OLD | NEW |
| 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 Loading... |
| 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 PassOwnPtrWillBeRawPtr<ScheduledAction> ScheduledAction::create(ScriptState* scr
iptState, const ScriptValue& handler, const Vector<ScriptValue>& arguments) | 48 RawPtr<ScheduledAction> ScheduledAction::create(ScriptState* scriptState, const
ScriptValue& handler, const Vector<ScriptValue>& arguments) |
| 49 { | 49 { |
| 50 ASSERT(handler.isFunction()); | 50 ASSERT(handler.isFunction()); |
| 51 return adoptPtrWillBeNoop(new ScheduledAction(scriptState, handler, argument
s)); | 51 return new ScheduledAction(scriptState, handler, arguments); |
| 52 } | 52 } |
| 53 | 53 |
| 54 PassOwnPtrWillBeRawPtr<ScheduledAction> ScheduledAction::create(ScriptState* scr
iptState, const String& handler) | 54 RawPtr<ScheduledAction> ScheduledAction::create(ScriptState* scriptState, const
String& handler) |
| 55 { | 55 { |
| 56 return adoptPtrWillBeNoop(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() |
| 65 { | 65 { |
| 66 } | 66 } |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |