| 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 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 namespace blink { | 41 namespace blink { |
| 42 | 42 |
| 43 class DocumentLoader; | 43 class DocumentLoader; |
| 44 class InspectedFrames; | 44 class InspectedFrames; |
| 45 class MainThreadDebugger; | 45 class MainThreadDebugger; |
| 46 | 46 |
| 47 class CORE_EXPORT PageDebuggerAgent final | 47 class CORE_EXPORT PageDebuggerAgent final |
| 48 : public InspectorDebuggerAgent { | 48 : public InspectorDebuggerAgent { |
| 49 WTF_MAKE_NONCOPYABLE(PageDebuggerAgent); | 49 WTF_MAKE_NONCOPYABLE(PageDebuggerAgent); |
| 50 USING_FAST_MALLOC_WILL_BE_REMOVED(PageDebuggerAgent); | |
| 51 public: | 50 public: |
| 52 static PassOwnPtrWillBeRawPtr<PageDebuggerAgent> create(MainThreadDebugger*,
InspectedFrames*, InjectedScriptManager*); | 51 static RawPtr<PageDebuggerAgent> create(MainThreadDebugger*, InspectedFrames
*, InjectedScriptManager*); |
| 53 ~PageDebuggerAgent() override; | 52 ~PageDebuggerAgent() override; |
| 54 DECLARE_VIRTUAL_TRACE(); | 53 DECLARE_VIRTUAL_TRACE(); |
| 55 | 54 |
| 56 void enable(ErrorString*) final; | 55 void enable(ErrorString*) final; |
| 57 void disable(ErrorString*) final; | 56 void disable(ErrorString*) final; |
| 58 void restore() final; | 57 void restore() final; |
| 59 | 58 |
| 60 void didStartProvisionalLoad(LocalFrame*); | 59 void didStartProvisionalLoad(LocalFrame*); |
| 61 void didClearDocumentOfWindowObject(LocalFrame*); | 60 void didClearDocumentOfWindowObject(LocalFrame*); |
| 62 | 61 |
| 63 private: | 62 private: |
| 64 PageDebuggerAgent(MainThreadDebugger*, InspectedFrames*, InjectedScriptManag
er*); | 63 PageDebuggerAgent(MainThreadDebugger*, InspectedFrames*, InjectedScriptManag
er*); |
| 65 void muteConsole() override; | 64 void muteConsole() override; |
| 66 void unmuteConsole() override; | 65 void unmuteConsole() override; |
| 67 | 66 |
| 68 // V8DebuggerAgent::Client implemntation. | 67 // V8DebuggerAgent::Client implemntation. |
| 69 bool canExecuteScripts() const; | 68 bool canExecuteScripts() const; |
| 70 | 69 |
| 71 RawPtrWillBeMember<InspectedFrames> m_inspectedFrames; | 70 Member<InspectedFrames> m_inspectedFrames; |
| 72 HashMap<String, String> m_compiledScriptURLs; | 71 HashMap<String, String> m_compiledScriptURLs; |
| 73 }; | 72 }; |
| 74 | 73 |
| 75 } // namespace blink | 74 } // namespace blink |
| 76 | 75 |
| 77 | 76 |
| 78 #endif // !defined(PageDebuggerAgent_h) | 77 #endif // !defined(PageDebuggerAgent_h) |
| OLD | NEW |