| 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 13 matching lines...) Expand all Loading... |
| 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 "bindings/v8/ScriptState.h" | 33 #include "bindings/v8/ScriptState.h" |
| 34 #include "bindings/v8/ScriptWrappable.h" |
| 34 #include "core/inspector/InspectorAgent.h" | 35 #include "core/inspector/InspectorAgent.h" |
| 35 #include "core/page/ConsoleTypes.h" | 36 #include "core/page/ConsoleTypes.h" |
| 36 #include <wtf/RefCounted.h> | 37 #include <wtf/RefCounted.h> |
| 37 #include <wtf/Vector.h> | 38 #include <wtf/Vector.h> |
| 38 | 39 |
| 39 namespace WebCore { | 40 namespace WebCore { |
| 40 | 41 |
| 41 class Database; | 42 class Database; |
| 42 class InjectedScript; | 43 class InjectedScript; |
| 43 class InspectorAgent; | 44 class InspectorAgent; |
| 44 class InspectorConsoleAgent; | 45 class InspectorConsoleAgent; |
| 45 class InspectorDOMAgent; | 46 class InspectorDOMAgent; |
| 46 class InspectorDOMStorageAgent; | 47 class InspectorDOMStorageAgent; |
| 47 class InspectorDatabaseAgent; | 48 class InspectorDatabaseAgent; |
| 48 class InspectorDebuggerAgent; | 49 class InspectorDebuggerAgent; |
| 49 class InspectorFrontend; | 50 class InspectorFrontend; |
| 50 class InspectorObject; | 51 class InspectorObject; |
| 51 class InspectorValue; | 52 class InspectorValue; |
| 52 class Node; | 53 class Node; |
| 53 class ScriptDebugServer; | 54 class ScriptDebugServer; |
| 54 class ScriptObject; | 55 class ScriptObject; |
| 55 class ScriptValue; | 56 class ScriptValue; |
| 56 class Storage; | 57 class Storage; |
| 57 | 58 |
| 58 struct EventListenerInfo; | 59 struct EventListenerInfo; |
| 59 | 60 |
| 60 class InjectedScriptHost : public RefCounted<InjectedScriptHost> { | 61 class InjectedScriptHost : public RefCounted<InjectedScriptHost>, public ScriptW
rappable { |
| 61 public: | 62 public: |
| 62 static PassRefPtr<InjectedScriptHost> create(); | 63 static PassRefPtr<InjectedScriptHost> create(); |
| 63 ~InjectedScriptHost(); | 64 ~InjectedScriptHost(); |
| 64 | 65 |
| 65 void init(InspectorAgent* inspectorAgent | 66 void init(InspectorAgent* inspectorAgent |
| 66 , InspectorConsoleAgent* consoleAgent | 67 , InspectorConsoleAgent* consoleAgent |
| 67 , InspectorDatabaseAgent* databaseAgent | 68 , InspectorDatabaseAgent* databaseAgent |
| 68 , InspectorDOMStorageAgent* domStorageAgent | 69 , InspectorDOMStorageAgent* domStorageAgent |
| 69 , InspectorDOMAgent* domAgent | 70 , InspectorDOMAgent* domAgent |
| 70 , InspectorDebuggerAgent* debuggerAgent | 71 , InspectorDebuggerAgent* debuggerAgent |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 InspectorDOMStorageAgent* m_domStorageAgent; | 113 InspectorDOMStorageAgent* m_domStorageAgent; |
| 113 InspectorDOMAgent* m_domAgent; | 114 InspectorDOMAgent* m_domAgent; |
| 114 InspectorDebuggerAgent* m_debuggerAgent; | 115 InspectorDebuggerAgent* m_debuggerAgent; |
| 115 Vector<OwnPtr<InspectableObject> > m_inspectedObjects; | 116 Vector<OwnPtr<InspectableObject> > m_inspectedObjects; |
| 116 OwnPtr<InspectableObject> m_defaultInspectableObject; | 117 OwnPtr<InspectableObject> m_defaultInspectableObject; |
| 117 }; | 118 }; |
| 118 | 119 |
| 119 } // namespace WebCore | 120 } // namespace WebCore |
| 120 | 121 |
| 121 #endif // !defined(InjectedScriptHost_h) | 122 #endif // !defined(InjectedScriptHost_h) |
| OLD | NEW |