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

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

Issue 69343003: Use a HashCountedSet to count identifiers in InspectorConsoleAgent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « no previous file | Source/core/inspector/InspectorConsoleAgent.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 14 matching lines...) Expand all
25 #ifndef InspectorConsoleAgent_h 25 #ifndef InspectorConsoleAgent_h
26 #define InspectorConsoleAgent_h 26 #define InspectorConsoleAgent_h
27 27
28 #include "InspectorFrontend.h" 28 #include "InspectorFrontend.h"
29 #include "bindings/v8/ScriptState.h" 29 #include "bindings/v8/ScriptState.h"
30 #include "bindings/v8/ScriptString.h" 30 #include "bindings/v8/ScriptString.h"
31 #include "core/inspector/ConsoleAPITypes.h" 31 #include "core/inspector/ConsoleAPITypes.h"
32 #include "core/inspector/InspectorBaseAgent.h" 32 #include "core/inspector/InspectorBaseAgent.h"
33 #include "core/frame/ConsoleTypes.h" 33 #include "core/frame/ConsoleTypes.h"
34 #include "wtf/Forward.h" 34 #include "wtf/Forward.h"
35 #include "wtf/HashCountedSet.h"
35 #include "wtf/HashMap.h" 36 #include "wtf/HashMap.h"
36 #include "wtf/Noncopyable.h" 37 #include "wtf/Noncopyable.h"
37 #include "wtf/Vector.h" 38 #include "wtf/Vector.h"
38 #include "wtf/text/StringHash.h" 39 #include "wtf/text/StringHash.h"
39 40
40 namespace WebCore { 41 namespace WebCore {
41 42
42 class ConsoleMessage; 43 class ConsoleMessage;
43 class DocumentLoader; 44 class DocumentLoader;
44 class DOMWindow; 45 class DOMWindow;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 105
105 protected: 106 protected:
106 void addConsoleMessage(PassOwnPtr<ConsoleMessage>); 107 void addConsoleMessage(PassOwnPtr<ConsoleMessage>);
107 108
108 InspectorTimelineAgent* m_timelineAgent; 109 InspectorTimelineAgent* m_timelineAgent;
109 InjectedScriptManager* m_injectedScriptManager; 110 InjectedScriptManager* m_injectedScriptManager;
110 InspectorFrontend::Console* m_frontend; 111 InspectorFrontend::Console* m_frontend;
111 ConsoleMessage* m_previousMessage; 112 ConsoleMessage* m_previousMessage;
112 Vector<OwnPtr<ConsoleMessage> > m_consoleMessages; 113 Vector<OwnPtr<ConsoleMessage> > m_consoleMessages;
113 int m_expiredConsoleMessageCount; 114 int m_expiredConsoleMessageCount;
114 HashMap<String, unsigned> m_counts; 115 HashCountedSet<String> m_counts;
115 HashMap<String, double> m_times; 116 HashMap<String, double> m_times;
116 bool m_enabled; 117 bool m_enabled;
117 private: 118 private:
118 static int s_enabledAgentCount; 119 static int s_enabledAgentCount;
119 }; 120 };
120 121
121 } // namespace WebCore 122 } // namespace WebCore
122 123
123 124
124 #endif // !defined(InspectorConsoleAgent_h) 125 #endif // !defined(InspectorConsoleAgent_h)
OLDNEW
« no previous file with comments | « no previous file | Source/core/inspector/InspectorConsoleAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698