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) 2012 Google Inc. All rights reserved. | 3 * Copyright (C) 2012 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 60 |
61 void disconnect(); | 61 void disconnect(); |
62 | 62 |
63 InjectedScriptHost* injectedScriptHost(); | 63 InjectedScriptHost* injectedScriptHost(); |
64 | 64 |
65 InjectedScript injectedScriptFor(ScriptState*); | 65 InjectedScript injectedScriptFor(ScriptState*); |
66 InjectedScript injectedScriptForId(int); | 66 InjectedScript injectedScriptForId(int); |
67 int injectedScriptIdFor(ScriptState*); | 67 int injectedScriptIdFor(ScriptState*); |
68 InjectedScript injectedScriptForObjectId(const String& objectId); | 68 InjectedScript injectedScriptForObjectId(const String& objectId); |
69 void discardInjectedScripts(); | 69 void discardInjectedScripts(); |
70 void discardInjectedScriptsFor(LocalDOMWindow*); | 70 void discardInjectedScriptFor(ScriptState*); |
71 void releaseObjectGroup(const String& objectGroup); | 71 void releaseObjectGroup(const String& objectGroup); |
72 | 72 |
73 typedef bool (*InspectedStateAccessCheck)(ScriptState*); | 73 typedef bool (*InspectedStateAccessCheck)(ScriptState*); |
74 InspectedStateAccessCheck inspectedStateAccessCheck() const { return m_inspe
ctedStateAccessCheck; } | 74 InspectedStateAccessCheck inspectedStateAccessCheck() const { return m_inspe
ctedStateAccessCheck; } |
75 | 75 |
76 static void setWeakCallback(const v8::WeakCallbackData<v8::Object, CallbackD
ata>&); | 76 static void setWeakCallback(const v8::WeakCallbackData<v8::Object, CallbackD
ata>&); |
77 CallbackData* createCallbackData(InjectedScriptManager*); | 77 CallbackData* createCallbackData(InjectedScriptManager*); |
78 void removeCallbackData(CallbackData*); | 78 void removeCallbackData(CallbackData*); |
79 | 79 |
80 private: | 80 private: |
(...skipping 11 matching lines...) Expand all Loading... |
92 RefPtrWillBeMember<InjectedScriptHost> m_injectedScriptHost; | 92 RefPtrWillBeMember<InjectedScriptHost> m_injectedScriptHost; |
93 InspectedStateAccessCheck m_inspectedStateAccessCheck; | 93 InspectedStateAccessCheck m_inspectedStateAccessCheck; |
94 typedef HashMap<RefPtr<ScriptState>, int> ScriptStateToId; | 94 typedef HashMap<RefPtr<ScriptState>, int> ScriptStateToId; |
95 ScriptStateToId m_scriptStateToId; | 95 ScriptStateToId m_scriptStateToId; |
96 HashSet<OwnPtr<CallbackData> > m_callbackDataSet; | 96 HashSet<OwnPtr<CallbackData> > m_callbackDataSet; |
97 }; | 97 }; |
98 | 98 |
99 } // namespace blink | 99 } // namespace blink |
100 | 100 |
101 #endif // !defined(InjectedScriptManager_h) | 101 #endif // !defined(InjectedScriptManager_h) |
OLD | NEW |