Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Side by Side Diff: Source/core/inspector/InspectorConsoleAgent.h

Issue 307943002: Oilpan: Prepare moving InspectorController and InspectorAgents to oilpan. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added agents() Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 class ThreadableLoaderClient; 57 class ThreadableLoaderClient;
58 class XMLHttpRequest; 58 class XMLHttpRequest;
59 59
60 typedef String ErrorString; 60 typedef String ErrorString;
61 61
62 class InspectorConsoleAgent : public InspectorBaseAgent<InspectorConsoleAgent>, public InspectorBackendDispatcher::ConsoleCommandHandler { 62 class InspectorConsoleAgent : public InspectorBaseAgent<InspectorConsoleAgent>, public InspectorBackendDispatcher::ConsoleCommandHandler {
63 WTF_MAKE_NONCOPYABLE(InspectorConsoleAgent); 63 WTF_MAKE_NONCOPYABLE(InspectorConsoleAgent);
64 public: 64 public:
65 InspectorConsoleAgent(InspectorTimelineAgent*, InjectedScriptManager*); 65 InspectorConsoleAgent(InspectorTimelineAgent*, InjectedScriptManager*);
66 virtual ~InspectorConsoleAgent(); 66 virtual ~InspectorConsoleAgent();
67 virtual void trace(Visitor*) OVERRIDE;
67 68
68 virtual void init() OVERRIDE; 69 virtual void init() OVERRIDE;
69 virtual void enable(ErrorString*) OVERRIDE FINAL; 70 virtual void enable(ErrorString*) OVERRIDE FINAL;
70 virtual void disable(ErrorString*) OVERRIDE FINAL; 71 virtual void disable(ErrorString*) OVERRIDE FINAL;
71 virtual void clearMessages(ErrorString*) OVERRIDE; 72 virtual void clearMessages(ErrorString*) OVERRIDE;
72 bool enabled() { return m_enabled; } 73 bool enabled() { return m_enabled; }
73 void reset(); 74 void reset();
74 75
75 virtual void setFrontend(InspectorFrontend*) OVERRIDE FINAL; 76 virtual void setFrontend(InspectorFrontend*) OVERRIDE FINAL;
76 virtual void clearFrontend() OVERRIDE FINAL; 77 virtual void clearFrontend() OVERRIDE FINAL;
(...skipping 24 matching lines...) Expand all
101 void addStartProfilingMessageToConsole(const String& title, unsigned lineNum ber, const String& sourceURL); 102 void addStartProfilingMessageToConsole(const String& title, unsigned lineNum ber, const String& sourceURL);
102 virtual void setMonitoringXHREnabled(ErrorString*, bool enabled) OVERRIDE; 103 virtual void setMonitoringXHREnabled(ErrorString*, bool enabled) OVERRIDE;
103 virtual void addInspectedNode(ErrorString*, int nodeId) = 0; 104 virtual void addInspectedNode(ErrorString*, int nodeId) = 0;
104 virtual void addInspectedHeapObject(ErrorString*, int inspectedHeapObjectId) OVERRIDE; 105 virtual void addInspectedHeapObject(ErrorString*, int inspectedHeapObjectId) OVERRIDE;
105 106
106 virtual bool isWorkerAgent() = 0; 107 virtual bool isWorkerAgent() = 0;
107 108
108 protected: 109 protected:
109 void addConsoleMessage(PassOwnPtr<ConsoleMessage>); 110 void addConsoleMessage(PassOwnPtr<ConsoleMessage>);
110 111
111 InspectorTimelineAgent* m_timelineAgent; 112 RawPtrWillBeMember<InspectorTimelineAgent> m_timelineAgent;
112 InjectedScriptManager* m_injectedScriptManager; 113 InjectedScriptManager* m_injectedScriptManager;
113 InspectorFrontend::Console* m_frontend; 114 InspectorFrontend::Console* m_frontend;
114 Vector<OwnPtr<ConsoleMessage> > m_consoleMessages; 115 Vector<OwnPtr<ConsoleMessage> > m_consoleMessages;
115 int m_expiredConsoleMessageCount; 116 int m_expiredConsoleMessageCount;
116 HashCountedSet<String> m_counts; 117 HashCountedSet<String> m_counts;
117 HashMap<String, double> m_times; 118 HashMap<String, double> m_times;
118 bool m_enabled; 119 bool m_enabled;
119 private: 120 private:
120 static int s_enabledAgentCount; 121 static int s_enabledAgentCount;
121 }; 122 };
122 123
123 } // namespace WebCore 124 } // namespace WebCore
124 125
125 126
126 #endif // !defined(InspectorConsoleAgent_h) 127 #endif // !defined(InspectorConsoleAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698