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 InjectedScript* findInjectedScript(RemoteObjectIdBase*) const; | 60 InjectedScript* findInjectedScript(RemoteObjectIdBase*) const; |
61 void discardInjectedScripts(); | 61 void discardInjectedScripts(); |
62 int discardInjectedScriptFor(v8::Local<v8::Context>); | 62 int discardInjectedScriptFor(v8::Local<v8::Context>); |
63 void discardInjectedScript(int); | 63 void discardInjectedScript(int); |
64 void releaseObjectGroup(const String& objectGroup); | 64 void releaseObjectGroup(const String& objectGroup); |
65 void setCustomObjectFormatterEnabled(bool); | 65 void setCustomObjectFormatterEnabled(bool); |
66 | 66 |
67 private: | 67 private: |
68 explicit InjectedScriptManager(V8DebuggerClient*); | 68 explicit InjectedScriptManager(V8DebuggerClient*); |
69 | 69 |
| 70 String injectedScriptSource(); |
70 v8::Local<v8::Object> createInjectedScript(const String& source, v8::Local<v
8::Context>, int id, InjectedScriptNative*); | 71 v8::Local<v8::Object> createInjectedScript(const String& source, v8::Local<v
8::Context>, int id, InjectedScriptNative*); |
71 | 72 |
72 typedef HashMap<int, OwnPtr<InjectedScript>> IdToInjectedScriptMap; | 73 typedef HashMap<int, OwnPtr<InjectedScript>> IdToInjectedScriptMap; |
73 IdToInjectedScriptMap m_idToInjectedScript; | 74 IdToInjectedScriptMap m_idToInjectedScript; |
74 RefPtr<InjectedScriptHost> m_injectedScriptHost; | 75 RefPtr<InjectedScriptHost> m_injectedScriptHost; |
75 bool m_customObjectFormatterEnabled; | 76 bool m_customObjectFormatterEnabled; |
76 V8DebuggerClient* m_client; | 77 V8DebuggerClient* m_client; |
77 }; | 78 }; |
78 | 79 |
79 } // namespace blink | 80 } // namespace blink |
80 | 81 |
81 #endif // !defined(InjectedScriptManager_h) | 82 #endif // !defined(InjectedScriptManager_h) |
OLD | NEW |