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 20 matching lines...) Expand all Loading... |
31 #define InjectedScriptManager_h | 31 #define InjectedScriptManager_h |
32 | 32 |
33 #include "bindings/core/v8/ScriptState.h" | 33 #include "bindings/core/v8/ScriptState.h" |
34 #include "wtf/Forward.h" | 34 #include "wtf/Forward.h" |
35 #include "wtf/HashMap.h" | 35 #include "wtf/HashMap.h" |
36 #include "wtf/text/WTFString.h" | 36 #include "wtf/text/WTFString.h" |
37 #include <v8.h> | 37 #include <v8.h> |
38 | 38 |
39 namespace blink { | 39 namespace blink { |
40 | 40 |
41 class LocalDOMWindow; | |
42 class InjectedScript; | 41 class InjectedScript; |
43 class InjectedScriptHost; | 42 class InjectedScriptHost; |
44 class ScriptValue; | 43 class ScriptValue; |
45 | 44 |
46 class InjectedScriptManager : public NoBaseWillBeGarbageCollectedFinalized<Injec
tedScriptManager> { | 45 class InjectedScriptManager : public NoBaseWillBeGarbageCollectedFinalized<Injec
tedScriptManager> { |
47 WTF_MAKE_NONCOPYABLE(InjectedScriptManager); | 46 WTF_MAKE_NONCOPYABLE(InjectedScriptManager); |
48 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; | 47 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; |
49 public: | 48 public: |
50 struct CallbackData { | 49 struct CallbackData { |
51 ScopedPersistent<v8::Object> handle; | 50 ScopedPersistent<v8::Object> handle; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 InspectedStateAccessCheck m_inspectedStateAccessCheck; | 93 InspectedStateAccessCheck m_inspectedStateAccessCheck; |
95 typedef HashMap<RefPtr<ScriptState>, int> ScriptStateToId; | 94 typedef HashMap<RefPtr<ScriptState>, int> ScriptStateToId; |
96 ScriptStateToId m_scriptStateToId; | 95 ScriptStateToId m_scriptStateToId; |
97 HashSet<OwnPtr<CallbackData> > m_callbackDataSet; | 96 HashSet<OwnPtr<CallbackData> > m_callbackDataSet; |
98 bool m_customObjectFormatterEnabled; | 97 bool m_customObjectFormatterEnabled; |
99 }; | 98 }; |
100 | 99 |
101 } // namespace blink | 100 } // namespace blink |
102 | 101 |
103 #endif // !defined(InjectedScriptManager_h) | 102 #endif // !defined(InjectedScriptManager_h) |
OLD | NEW |