| 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 15 matching lines...) Expand all Loading... |
| 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/core/v8/ScriptState.h" | 33 #include "bindings/core/v8/ScriptState.h" |
| 34 #include "core/InspectorTypeBuilder.h" | 34 #include "core/InspectorTypeBuilder.h" |
| 35 #include "core/inspector/InjectedScriptHostClient.h" | 35 #include "core/inspector/InjectedScriptHostClient.h" |
| 36 #include "core/inspector/InspectorConsoleAgent.h" | |
| 37 #include "core/inspector/v8/V8Debugger.h" | |
| 38 #include "core/inspector/v8/V8DebuggerAgent.h" | |
| 39 #include "platform/JSONValues.h" | |
| 40 #include "wtf/Functional.h" | 36 #include "wtf/Functional.h" |
| 41 #include "wtf/PassOwnPtr.h" | 37 #include "wtf/PassOwnPtr.h" |
| 42 #include "wtf/RefCounted.h" | 38 #include "wtf/RefCounted.h" |
| 43 #include "wtf/Vector.h" | 39 #include "wtf/Vector.h" |
| 44 #include "wtf/text/WTFString.h" | 40 #include "wtf/text/WTFString.h" |
| 45 #include <v8.h> | 41 #include <v8.h> |
| 46 | 42 |
| 47 namespace blink { | 43 namespace blink { |
| 48 | 44 |
| 49 class EventListenerInfo; | |
| 50 class EventTarget; | 45 class EventTarget; |
| 51 class InjectedScriptHostClient; | 46 class InjectedScriptHostClient; |
| 47 class InspectorConsoleAgent; |
| 52 class JSONValue; | 48 class JSONValue; |
| 53 class ScriptValue; | 49 class ScriptValue; |
| 50 class V8DebuggerAgent; |
| 51 class V8Debugger; |
| 52 |
| 53 class EventListenerInfo; |
| 54 | 54 |
| 55 // SECURITY NOTE: Although the InjectedScriptHost is intended for use solely by
the inspector, | 55 // SECURITY NOTE: Although the InjectedScriptHost is intended for use solely by
the inspector, |
| 56 // a reference to the InjectedScriptHost may be leaked to the page being inspect
ed. Thus, the | 56 // a reference to the InjectedScriptHost may be leaked to the page being inspect
ed. Thus, the |
| 57 // InjectedScriptHost must never implemment methods that have more power over th
e page than the | 57 // InjectedScriptHost must never implemment methods that have more power over th
e page than the |
| 58 // page already has itself (e.g. origin restriction bypasses). | 58 // page already has itself (e.g. origin restriction bypasses). |
| 59 | 59 |
| 60 class InjectedScriptHost : public RefCountedWillBeGarbageCollectedFinalized<Inje
ctedScriptHost> { | 60 class InjectedScriptHost : public RefCountedWillBeGarbageCollectedFinalized<Inje
ctedScriptHost> { |
| 61 public: | 61 public: |
| 62 static PassRefPtrWillBeRawPtr<InjectedScriptHost> create(); | 62 static PassRefPtrWillBeRawPtr<InjectedScriptHost> create(); |
| 63 ~InjectedScriptHost(); | 63 ~InjectedScriptHost(); |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 V8Debugger* m_debugger; | 114 V8Debugger* m_debugger; |
| 115 WillBeHeapVector<OwnPtrWillBeMember<InspectableObject>> m_inspectedObjects; | 115 WillBeHeapVector<OwnPtrWillBeMember<InspectableObject>> m_inspectedObjects; |
| 116 OwnPtrWillBeMember<InspectableObject> m_defaultInspectableObject; | 116 OwnPtrWillBeMember<InspectableObject> m_defaultInspectableObject; |
| 117 OwnPtr<InjectedScriptHostClient> m_client; | 117 OwnPtr<InjectedScriptHostClient> m_client; |
| 118 v8::Global<v8::FunctionTemplate> m_wrapperTemplate; | 118 v8::Global<v8::FunctionTemplate> m_wrapperTemplate; |
| 119 }; | 119 }; |
| 120 | 120 |
| 121 } // namespace blink | 121 } // namespace blink |
| 122 | 122 |
| 123 #endif // InjectedScriptHost_h | 123 #endif // InjectedScriptHost_h |
| OLD | NEW |