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 22 matching lines...) Expand all Loading... |
33 | 33 |
34 #include "core/inspector/InspectorConsoleAgent.h" | 34 #include "core/inspector/InspectorConsoleAgent.h" |
35 #include "wtf/PassOwnPtr.h" | 35 #include "wtf/PassOwnPtr.h" |
36 | 36 |
37 namespace blink { | 37 namespace blink { |
38 | 38 |
39 class ConsoleMessageStorage; | 39 class ConsoleMessageStorage; |
40 class InspectorDOMAgent; | 40 class InspectorDOMAgent; |
41 class Page; | 41 class Page; |
42 | 42 |
43 class PageConsoleAgent FINAL : public InspectorConsoleAgent { | 43 class PageConsoleAgent final : public InspectorConsoleAgent { |
44 WTF_MAKE_NONCOPYABLE(PageConsoleAgent); | 44 WTF_MAKE_NONCOPYABLE(PageConsoleAgent); |
45 public: | 45 public: |
46 static PassOwnPtrWillBeRawPtr<PageConsoleAgent> create(InjectedScriptManager
* injectedScriptManager, InspectorDOMAgent* domAgent, InspectorTimelineAgent* ti
melineAgent, Page* page) | 46 static PassOwnPtrWillBeRawPtr<PageConsoleAgent> create(InjectedScriptManager
* injectedScriptManager, InspectorDOMAgent* domAgent, InspectorTimelineAgent* ti
melineAgent, Page* page) |
47 { | 47 { |
48 return adoptPtrWillBeNoop(new PageConsoleAgent(injectedScriptManager, do
mAgent, timelineAgent, page)); | 48 return adoptPtrWillBeNoop(new PageConsoleAgent(injectedScriptManager, do
mAgent, timelineAgent, page)); |
49 } | 49 } |
50 virtual ~PageConsoleAgent(); | 50 virtual ~PageConsoleAgent(); |
51 virtual void trace(Visitor*) OVERRIDE; | 51 virtual void trace(Visitor*) override; |
52 | 52 |
53 virtual bool isWorkerAgent() OVERRIDE { return false; } | 53 virtual bool isWorkerAgent() override { return false; } |
54 | 54 |
55 protected: | 55 protected: |
56 virtual ConsoleMessageStorage* messageStorage() OVERRIDE; | 56 virtual ConsoleMessageStorage* messageStorage() override; |
57 | 57 |
58 private: | 58 private: |
59 PageConsoleAgent(InjectedScriptManager*, InspectorDOMAgent*, InspectorTimeli
neAgent*, Page*); | 59 PageConsoleAgent(InjectedScriptManager*, InspectorDOMAgent*, InspectorTimeli
neAgent*, Page*); |
60 virtual void clearMessages(ErrorString*) OVERRIDE; | 60 virtual void clearMessages(ErrorString*) override; |
61 virtual void addInspectedNode(ErrorString*, int nodeId) OVERRIDE; | 61 virtual void addInspectedNode(ErrorString*, int nodeId) override; |
62 | 62 |
63 RawPtrWillBeMember<InspectorDOMAgent> m_inspectorDOMAgent; | 63 RawPtrWillBeMember<InspectorDOMAgent> m_inspectorDOMAgent; |
64 RawPtrWillBeMember<Page> m_page; | 64 RawPtrWillBeMember<Page> m_page; |
65 }; | 65 }; |
66 | 66 |
67 } // namespace blink | 67 } // namespace blink |
68 | 68 |
69 | 69 |
70 #endif // !defined(PageConsoleAgent_h) | 70 #endif // !defined(PageConsoleAgent_h) |
OLD | NEW |