| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2009 Google Inc. All rights reserved. | 3 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | 23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 28 */ | 28 */ |
| 29 | 29 |
| 30 #ifndef InjectedScriptHost_h | 30 #ifndef InjectedScriptHost_h |
| 31 #define InjectedScriptHost_h | 31 #define InjectedScriptHost_h |
| 32 | 32 |
| 33 #include "platform/inspector_protocol/Collections.h" |
| 33 #include "platform/v8_inspector/public/V8RuntimeAgent.h" | 34 #include "platform/v8_inspector/public/V8RuntimeAgent.h" |
| 34 #include "wtf/PassOwnPtr.h" | 35 #include "wtf/PassOwnPtr.h" |
| 35 #include "wtf/Vector.h" | |
| 36 #include "wtf/text/WTFString.h" | 36 #include "wtf/text/WTFString.h" |
| 37 #include <v8.h> | 37 #include <v8.h> |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 | 40 |
| 41 class V8EventListenerInfo; | 41 class V8EventListenerInfo; |
| 42 class V8DebuggerImpl; | 42 class V8DebuggerImpl; |
| 43 class V8DebuggerAgentImpl; | 43 class V8DebuggerAgentImpl; |
| 44 | 44 |
| 45 namespace protocol { | 45 namespace protocol { |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 void setWrapperTemplate(v8::Local<v8::FunctionTemplate> wrapperTemplate, v8:
:Isolate* isolate) { m_wrapperTemplate.Reset(isolate, wrapperTemplate); } | 80 void setWrapperTemplate(v8::Local<v8::FunctionTemplate> wrapperTemplate, v8:
:Isolate* isolate) { m_wrapperTemplate.Reset(isolate, wrapperTemplate); } |
| 81 v8::Local<v8::FunctionTemplate> wrapperTemplate(v8::Isolate* isolate) { retu
rn v8::Local<v8::FunctionTemplate>::New(isolate, m_wrapperTemplate); } | 81 v8::Local<v8::FunctionTemplate> wrapperTemplate(v8::Isolate* isolate) { retu
rn v8::Local<v8::FunctionTemplate>::New(isolate, m_wrapperTemplate); } |
| 82 | 82 |
| 83 private: | 83 private: |
| 84 InjectedScriptHost(V8DebuggerImpl*); | 84 InjectedScriptHost(V8DebuggerImpl*); |
| 85 | 85 |
| 86 V8DebuggerImpl* m_debugger; | 86 V8DebuggerImpl* m_debugger; |
| 87 V8DebuggerAgentImpl* m_debuggerAgent; | 87 V8DebuggerAgentImpl* m_debuggerAgent; |
| 88 OwnPtr<V8RuntimeAgent::InspectCallback> m_inspectCallback; | 88 OwnPtr<V8RuntimeAgent::InspectCallback> m_inspectCallback; |
| 89 OwnPtr<V8RuntimeAgent::ClearConsoleCallback> m_clearConsoleCallback; | 89 OwnPtr<V8RuntimeAgent::ClearConsoleCallback> m_clearConsoleCallback; |
| 90 Vector<OwnPtr<V8RuntimeAgent::Inspectable>> m_inspectedObjects; | 90 protocol::Vector<OwnPtr<V8RuntimeAgent::Inspectable>> m_inspectedObjects; |
| 91 v8::Global<v8::FunctionTemplate> m_wrapperTemplate; | 91 v8::Global<v8::FunctionTemplate> m_wrapperTemplate; |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 } // namespace blink | 94 } // namespace blink |
| 95 | 95 |
| 96 #endif // InjectedScriptHost_h | 96 #endif // InjectedScriptHost_h |
| OLD | NEW |