| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 } | 49 } |
| 50 virtual ~PageRuntimeAgent(); | 50 virtual ~PageRuntimeAgent(); |
| 51 DECLARE_VIRTUAL_TRACE(); | 51 DECLARE_VIRTUAL_TRACE(); |
| 52 virtual void init() override; | 52 virtual void init() override; |
| 53 virtual void enable(ErrorString*) override; | 53 virtual void enable(ErrorString*) override; |
| 54 | 54 |
| 55 void didClearDocumentOfWindowObject(LocalFrame*); | 55 void didClearDocumentOfWindowObject(LocalFrame*); |
| 56 void didCreateScriptContext(LocalFrame*, ScriptState*, SecurityOrigin*, int
worldId); | 56 void didCreateScriptContext(LocalFrame*, ScriptState*, SecurityOrigin*, int
worldId); |
| 57 void willReleaseScriptContext(LocalFrame*, ScriptState*); | 57 void willReleaseScriptContext(LocalFrame*, ScriptState*); |
| 58 | 58 |
| 59 int debuggerId() const { return m_debuggerId; } | |
| 60 | |
| 61 private: | 59 private: |
| 62 PageRuntimeAgent(InjectedScriptManager*, Client*, V8Debugger*, InspectorPage
Agent*); | 60 PageRuntimeAgent(InjectedScriptManager*, Client*, V8Debugger*, InspectorPage
Agent*); |
| 63 | 61 |
| 64 virtual InjectedScript injectedScriptForEval(ErrorString*, const int* execut
ionContextId) override; | 62 virtual InjectedScript injectedScriptForEval(ErrorString*, const int* execut
ionContextId) override; |
| 65 virtual void muteConsole() override; | 63 virtual void muteConsole() override; |
| 66 virtual void unmuteConsole() override; | 64 virtual void unmuteConsole() override; |
| 67 void reportExecutionContextCreation(); | 65 void reportExecutionContextCreation(); |
| 68 | 66 |
| 69 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; | 67 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; |
| 70 bool m_mainWorldContextCreated; | 68 bool m_mainWorldContextCreated; |
| 71 int m_debuggerId; | |
| 72 }; | 69 }; |
| 73 | 70 |
| 74 } // namespace blink | 71 } // namespace blink |
| 75 | 72 |
| 76 | 73 |
| 77 #endif // !defined(InspectorPagerAgent_h) | 74 #endif // !defined(InspectorPagerAgent_h) |
| OLD | NEW |