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 23 matching lines...) Loading... |
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 WebCore { | 37 namespace WebCore { |
38 | 38 |
39 class InspectorDOMAgent; | 39 class InspectorDOMAgent; |
40 | 40 |
41 class PageConsoleAgent FINAL : public InspectorConsoleAgent { | 41 class PageConsoleAgent FINAL : public InspectorConsoleAgent { |
42 WTF_MAKE_NONCOPYABLE(PageConsoleAgent); | 42 WTF_MAKE_NONCOPYABLE(PageConsoleAgent); |
43 public: | 43 public: |
44 static PassOwnPtr<PageConsoleAgent> create(InjectedScriptManager* injectedSc
riptManager, InspectorDOMAgent* domAgent, InspectorTimelineAgent* timelineAgent) | 44 static PassOwnPtrWillBeRawPtr<PageConsoleAgent> create(InjectedScriptManager
* injectedScriptManager, InspectorDOMAgent* domAgent, InspectorTimelineAgent* ti
melineAgent) |
45 { | 45 { |
46 return adoptPtr(new PageConsoleAgent(injectedScriptManager, domAgent, ti
melineAgent)); | 46 return adoptPtrWillBeNoop(new PageConsoleAgent(injectedScriptManager, do
mAgent, timelineAgent)); |
47 } | 47 } |
48 virtual ~PageConsoleAgent(); | 48 virtual ~PageConsoleAgent(); |
| 49 virtual void trace(Visitor*) OVERRIDE; |
49 | 50 |
50 virtual bool isWorkerAgent() OVERRIDE { return false; } | 51 virtual bool isWorkerAgent() OVERRIDE { return false; } |
51 | 52 |
52 private: | 53 private: |
53 PageConsoleAgent(InjectedScriptManager*, InspectorDOMAgent*, InspectorTimeli
neAgent*); | 54 PageConsoleAgent(InjectedScriptManager*, InspectorDOMAgent*, InspectorTimeli
neAgent*); |
54 virtual void clearMessages(ErrorString*) OVERRIDE; | 55 virtual void clearMessages(ErrorString*) OVERRIDE; |
55 virtual void addInspectedNode(ErrorString*, int nodeId) OVERRIDE; | 56 virtual void addInspectedNode(ErrorString*, int nodeId) OVERRIDE; |
56 | 57 |
57 InspectorDOMAgent* m_inspectorDOMAgent; | 58 RawPtrWillBeMember<InspectorDOMAgent> m_inspectorDOMAgent; |
58 }; | 59 }; |
59 | 60 |
60 } // namespace WebCore | 61 } // namespace WebCore |
61 | 62 |
62 | 63 |
63 #endif // !defined(PageConsoleAgent_h) | 64 #endif // !defined(PageConsoleAgent_h) |
OLD | NEW |