| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 class V8DebuggerClient; | 45 class V8DebuggerClient; |
| 46 class V8DebuggerImpl; | 46 class V8DebuggerImpl; |
| 47 | 47 |
| 48 class InjectedScriptManager { | 48 class InjectedScriptManager { |
| 49 PROTOCOL_DISALLOW_COPY(InjectedScriptManager); | 49 PROTOCOL_DISALLOW_COPY(InjectedScriptManager); |
| 50 public: | 50 public: |
| 51 static PassOwnPtr<InjectedScriptManager> create(V8DebuggerImpl*); | 51 static PassOwnPtr<InjectedScriptManager> create(V8DebuggerImpl*); |
| 52 ~InjectedScriptManager(); | 52 ~InjectedScriptManager(); |
| 53 | 53 |
| 54 InjectedScriptHost* injectedScriptHost(); | 54 InjectedScriptHost* injectedScriptHost(); |
| 55 V8DebuggerImpl* debugger() { return m_debugger; } | |
| 56 | 55 |
| 57 InjectedScript* injectedScriptFor(v8::Local<v8::Context>); | 56 InjectedScript* injectedScriptFor(v8::Local<v8::Context>); |
| 58 InjectedScript* findInjectedScript(int) const; | 57 InjectedScript* findInjectedScript(int) const; |
| 59 InjectedScript* findInjectedScript(ErrorString*, RemoteObjectIdBase*) const; | 58 InjectedScript* findInjectedScript(ErrorString*, RemoteObjectIdBase*) const; |
| 60 void discardInjectedScripts(); | 59 void discardInjectedScripts(); |
| 61 int discardInjectedScriptFor(v8::Local<v8::Context>); | 60 int discardInjectedScriptFor(v8::Local<v8::Context>); |
| 62 void discardInjectedScript(int); | 61 void discardInjectedScript(int); |
| 63 void releaseObjectGroup(const String16& objectGroup); | 62 void releaseObjectGroup(const String16& objectGroup); |
| 64 void setCustomObjectFormatterEnabled(bool); | 63 void setCustomObjectFormatterEnabled(bool); |
| 65 | 64 |
| 66 private: | 65 private: |
| 67 explicit InjectedScriptManager(V8DebuggerImpl*); | 66 explicit InjectedScriptManager(V8DebuggerImpl*); |
| 68 | 67 |
| 69 v8::Local<v8::Object> createInjectedScript(const String16& source, v8::Local
<v8::Context>, int id, InjectedScriptNative*); | 68 v8::Local<v8::Object> createInjectedScript(const String16& source, v8::Local
<v8::Context>, int id, InjectedScriptNative*); |
| 70 | 69 |
| 71 typedef protocol::HashMap<int, OwnPtr<InjectedScript>> IdToInjectedScriptMap
; | 70 typedef protocol::HashMap<int, OwnPtr<InjectedScript>> IdToInjectedScriptMap
; |
| 72 IdToInjectedScriptMap m_idToInjectedScript; | 71 IdToInjectedScriptMap m_idToInjectedScript; |
| 73 OwnPtr<InjectedScriptHost> m_injectedScriptHost; | 72 OwnPtr<InjectedScriptHost> m_injectedScriptHost; |
| 74 bool m_customObjectFormatterEnabled; | 73 bool m_customObjectFormatterEnabled; |
| 75 V8DebuggerImpl* m_debugger; | 74 V8DebuggerClient* m_client; |
| 76 }; | 75 }; |
| 77 | 76 |
| 78 } // namespace blink | 77 } // namespace blink |
| 79 | 78 |
| 80 #endif // !defined(InjectedScriptManager_h) | 79 #endif // !defined(InjectedScriptManager_h) |
| OLD | NEW |