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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 InspectedStateAccessCheck inspectedStateAccessCheck() const { return m_inspe
ctedStateAccessCheck; } | 65 InspectedStateAccessCheck inspectedStateAccessCheck() const { return m_inspe
ctedStateAccessCheck; } |
66 | 66 |
67 static void makeWeakCallback(v8::Isolate*, v8::Persistent<v8::Object>*, Inje
ctedScriptHost*); | 67 static void makeWeakCallback(v8::Isolate*, v8::Persistent<v8::Object>*, Inje
ctedScriptHost*); |
68 private: | 68 private: |
69 explicit InjectedScriptManager(InspectedStateAccessCheck); | 69 explicit InjectedScriptManager(InspectedStateAccessCheck); |
70 | 70 |
71 String injectedScriptSource(); | 71 String injectedScriptSource(); |
72 ScriptObject createInjectedScript(const String& source, ScriptState*, int id
); | 72 ScriptObject createInjectedScript(const String& source, ScriptState*, int id
); |
73 | 73 |
74 static bool canAccessInspectedWindow(ScriptState*); | 74 static bool canAccessInspectedWindow(ScriptState*); |
75 static bool canAccessInspectedWorkerContext(ScriptState*); | 75 static bool canAccessInspectedWorkerGlobalScope(ScriptState*); |
76 | 76 |
77 int m_nextInjectedScriptId; | 77 int m_nextInjectedScriptId; |
78 typedef HashMap<int, InjectedScript> IdToInjectedScriptMap; | 78 typedef HashMap<int, InjectedScript> IdToInjectedScriptMap; |
79 IdToInjectedScriptMap m_idToInjectedScript; | 79 IdToInjectedScriptMap m_idToInjectedScript; |
80 RefPtr<InjectedScriptHost> m_injectedScriptHost; | 80 RefPtr<InjectedScriptHost> m_injectedScriptHost; |
81 InspectedStateAccessCheck m_inspectedStateAccessCheck; | 81 InspectedStateAccessCheck m_inspectedStateAccessCheck; |
82 typedef HashMap<ScriptState*, int> ScriptStateToId; | 82 typedef HashMap<ScriptState*, int> ScriptStateToId; |
83 ScriptStateToId m_scriptStateToId; | 83 ScriptStateToId m_scriptStateToId; |
84 }; | 84 }; |
85 | 85 |
86 } // namespace WebCore | 86 } // namespace WebCore |
87 | 87 |
88 #endif // !defined(InjectedScriptManager_h) | 88 #endif // !defined(InjectedScriptManager_h) |
OLD | NEW |