| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 * THE POSSIBILITY OF SUCH DAMAGE. | 23 * THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef V8MutationCallback_h | 26 #ifndef V8MutationCallback_h |
| 27 #define V8MutationCallback_h | 27 #define V8MutationCallback_h |
| 28 | 28 |
| 29 #include "bindings/core/v8/ScopedPersistent.h" | 29 #include "bindings/core/v8/ScopedPersistent.h" |
| 30 #include "bindings/core/v8/ScriptState.h" | 30 #include "bindings/core/v8/ScriptState.h" |
| 31 #include "bindings/core/v8/TraceWrapperV8Reference.h" | 31 #include "bindings/core/v8/TraceWrapperV8Reference.h" |
| 32 #include "core/dom/MutationCallback.h" | 32 #include "core/dom/MutationCallback.h" |
| 33 #include "platform/wtf/RefPtr.h" |
| 33 #include "v8/include/v8.h" | 34 #include "v8/include/v8.h" |
| 34 #include "wtf/RefPtr.h" | |
| 35 | 35 |
| 36 namespace blink { | 36 namespace blink { |
| 37 | 37 |
| 38 class ExecutionContext; | 38 class ExecutionContext; |
| 39 | 39 |
| 40 class V8MutationCallback final : public MutationCallback { | 40 class V8MutationCallback final : public MutationCallback { |
| 41 public: | 41 public: |
| 42 static V8MutationCallback* create(v8::Local<v8::Function> callback, | 42 static V8MutationCallback* create(v8::Local<v8::Function> callback, |
| 43 v8::Local<v8::Object> owner, | 43 v8::Local<v8::Object> owner, |
| 44 ScriptState* scriptState) { | 44 ScriptState* scriptState) { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 61 v8::Local<v8::Object>, | 61 v8::Local<v8::Object>, |
| 62 ScriptState*); | 62 ScriptState*); |
| 63 | 63 |
| 64 TraceWrapperV8Reference<v8::Function> m_callback; | 64 TraceWrapperV8Reference<v8::Function> m_callback; |
| 65 RefPtr<ScriptState> m_scriptState; | 65 RefPtr<ScriptState> m_scriptState; |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 } // namespace blink | 68 } // namespace blink |
| 69 | 69 |
| 70 #endif // V8MutationCallback_h | 70 #endif // V8MutationCallback_h |
| OLD | NEW |