| 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 24 matching lines...) Expand all Loading... |
| 35 #include "core/CoreExport.h" | 35 #include "core/CoreExport.h" |
| 36 #include "core/inspector/InspectorRuntimeAgent.h" | 36 #include "core/inspector/InspectorRuntimeAgent.h" |
| 37 #include "wtf/PassOwnPtr.h" | 37 #include "wtf/PassOwnPtr.h" |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 | 40 |
| 41 class InspectedFrames; | 41 class InspectedFrames; |
| 42 | 42 |
| 43 class CORE_EXPORT PageRuntimeAgent final : public InspectorRuntimeAgent { | 43 class CORE_EXPORT PageRuntimeAgent final : public InspectorRuntimeAgent { |
| 44 public: | 44 public: |
| 45 static PassOwnPtrWillBeRawPtr<PageRuntimeAgent> create(InspectorRuntimeAgent
::Client* client, V8Debugger* debugger, InspectedFrames* inspectedFrames, int co
ntextGroupId) | 45 static RawPtr<PageRuntimeAgent> create(InspectorRuntimeAgent::Client* client
, V8Debugger* debugger, InspectedFrames* inspectedFrames, int contextGroupId) |
| 46 { | 46 { |
| 47 return adoptPtrWillBeNoop(new PageRuntimeAgent(client, debugger, inspect
edFrames, contextGroupId)); | 47 return new PageRuntimeAgent(client, debugger, inspectedFrames, contextGr
oupId); |
| 48 } | 48 } |
| 49 ~PageRuntimeAgent() override; | 49 ~PageRuntimeAgent() override; |
| 50 DECLARE_VIRTUAL_TRACE(); | 50 DECLARE_VIRTUAL_TRACE(); |
| 51 void enable(ErrorString*) override; | 51 void enable(ErrorString*) override; |
| 52 void disable(ErrorString*) override; | 52 void disable(ErrorString*) override; |
| 53 | 53 |
| 54 private: | 54 private: |
| 55 PageRuntimeAgent(Client*, V8Debugger*, InspectedFrames*, int contextGroupId)
; | 55 PageRuntimeAgent(Client*, V8Debugger*, InspectedFrames*, int contextGroupId)
; |
| 56 | 56 |
| 57 ScriptState* defaultScriptState() override; | 57 ScriptState* defaultScriptState() override; |
| 58 void muteConsole() override; | 58 void muteConsole() override; |
| 59 void unmuteConsole() override; | 59 void unmuteConsole() override; |
| 60 | 60 |
| 61 RawPtrWillBeMember<InspectedFrames> m_inspectedFrames; | 61 Member<InspectedFrames> m_inspectedFrames; |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 } // namespace blink | 64 } // namespace blink |
| 65 | 65 |
| 66 | 66 |
| 67 #endif // !defined(InspectorPagerAgent_h) | 67 #endif // !defined(InspectorPagerAgent_h) |
| OLD | NEW |