| 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 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 #include "bindings/core/v8/ScriptState.h" | 33 #include "bindings/core/v8/ScriptState.h" |
| 34 #include "bindings/core/v8/ScriptWrappable.h" | 34 #include "bindings/core/v8/ScriptWrappable.h" |
| 35 #include "wtf/PassOwnPtr.h" | 35 #include "wtf/PassOwnPtr.h" |
| 36 #include "wtf/RefCounted.h" | 36 #include "wtf/RefCounted.h" |
| 37 #include "wtf/Vector.h" | 37 #include "wtf/Vector.h" |
| 38 #include "wtf/text/WTFString.h" | 38 #include "wtf/text/WTFString.h" |
| 39 | 39 |
| 40 namespace blink { | 40 namespace blink { |
| 41 | 41 |
| 42 class Database; | |
| 43 class EventTarget; | 42 class EventTarget; |
| 44 class InjectedScript; | |
| 45 class InstrumentingAgents; | 43 class InstrumentingAgents; |
| 46 class JSONValue; | 44 class JSONValue; |
| 47 class Node; | 45 class Node; |
| 48 class ScriptDebugServer; | 46 class ScriptDebugServer; |
| 49 class ScriptValue; | 47 class ScriptValue; |
| 50 class Storage; | |
| 51 | 48 |
| 52 struct EventListenerInfo; | 49 struct EventListenerInfo; |
| 53 | 50 |
| 54 // SECURITY NOTE: Although the InjectedScriptHost is intended for use solely by
the inspector, | 51 // SECURITY NOTE: Although the InjectedScriptHost is intended for use solely by
the inspector, |
| 55 // a reference to the InjectedScriptHost may be leaked to the page being inspect
ed. Thus, the | 52 // a reference to the InjectedScriptHost may be leaked to the page being inspect
ed. Thus, the |
| 56 // InjectedScriptHost must never implemment methods that have more power over th
e page than the | 53 // InjectedScriptHost must never implemment methods that have more power over th
e page than the |
| 57 // page already has itself (e.g. origin restriction bypasses). | 54 // page already has itself (e.g. origin restriction bypasses). |
| 58 | 55 |
| 59 class InjectedScriptHost : public RefCountedWillBeGarbageCollectedFinalized<Inje
ctedScriptHost>, public ScriptWrappable { | 56 class InjectedScriptHost : public RefCountedWillBeGarbageCollectedFinalized<Inje
ctedScriptHost>, public ScriptWrappable { |
| 60 DEFINE_WRAPPERTYPEINFO(); | 57 DEFINE_WRAPPERTYPEINFO(); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 | 97 |
| 101 RawPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents; | 98 RawPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents; |
| 102 ScriptDebugServer* m_scriptDebugServer; | 99 ScriptDebugServer* m_scriptDebugServer; |
| 103 Vector<OwnPtr<InspectableObject> > m_inspectedObjects; | 100 Vector<OwnPtr<InspectableObject> > m_inspectedObjects; |
| 104 OwnPtr<InspectableObject> m_defaultInspectableObject; | 101 OwnPtr<InspectableObject> m_defaultInspectableObject; |
| 105 }; | 102 }; |
| 106 | 103 |
| 107 } // namespace blink | 104 } // namespace blink |
| 108 | 105 |
| 109 #endif // InjectedScriptHost_h | 106 #endif // InjectedScriptHost_h |
| OLD | NEW |