| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 class Storage; | 50 class Storage; |
| 51 | 51 |
| 52 struct EventListenerInfo; | 52 struct EventListenerInfo; |
| 53 | 53 |
| 54 // SECURITY NOTE: Although the InjectedScriptHost is intended for use solely by
the inspector, | 54 // 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 | 55 // 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 | 56 // 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). | 57 // page already has itself (e.g. origin restriction bypasses). |
| 58 | 58 |
| 59 class InjectedScriptHost : public RefCountedWillBeGarbageCollectedFinalized<Inje
ctedScriptHost>, public ScriptWrappable { | 59 class InjectedScriptHost : public RefCountedWillBeGarbageCollectedFinalized<Inje
ctedScriptHost>, public ScriptWrappable { |
| 60 DEFINE_WRAPPERTYPEINFO(); |
| 60 public: | 61 public: |
| 61 static PassRefPtrWillBeRawPtr<InjectedScriptHost> create(); | 62 static PassRefPtrWillBeRawPtr<InjectedScriptHost> create(); |
| 62 ~InjectedScriptHost(); | 63 ~InjectedScriptHost(); |
| 63 void trace(Visitor*); | 64 void trace(Visitor*); |
| 64 | 65 |
| 65 void init(InstrumentingAgents* instrumentingAgents, ScriptDebugServer* scrip
tDebugServer) | 66 void init(InstrumentingAgents* instrumentingAgents, ScriptDebugServer* scrip
tDebugServer) |
| 66 { | 67 { |
| 67 m_instrumentingAgents = instrumentingAgents; | 68 m_instrumentingAgents = instrumentingAgents; |
| 68 m_scriptDebugServer = scriptDebugServer; | 69 m_scriptDebugServer = scriptDebugServer; |
| 69 } | 70 } |
| (...skipping 28 matching lines...) Expand all Loading... |
| 98 InjectedScriptHost(); | 99 InjectedScriptHost(); |
| 99 | 100 |
| 100 RawPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents; | 101 RawPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents; |
| 101 ScriptDebugServer* m_scriptDebugServer; | 102 ScriptDebugServer* m_scriptDebugServer; |
| 102 Vector<OwnPtr<InspectableObject> > m_inspectedObjects; | 103 Vector<OwnPtr<InspectableObject> > m_inspectedObjects; |
| 103 OwnPtr<InspectableObject> m_defaultInspectableObject; | 104 OwnPtr<InspectableObject> m_defaultInspectableObject; |
| 104 }; | 105 }; |
| 105 | 106 |
| 106 } // namespace blink | 107 } // namespace blink |
| 107 | 108 |
| 108 #endif // !defined(InjectedScriptHost_h) | 109 #endif // InjectedScriptHost_h |
| OLD | NEW |