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

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

Issue 17030009: Inspector: wrapped inspector agent instances into factory-like wrappers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Made InspectorBaseAgent RefCounted Created 7 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 static const unsigned maximumConsoleMessages = 1000; 57 static const unsigned maximumConsoleMessages = 1000;
58 static const int expireConsoleMessagesStep = 100; 58 static const int expireConsoleMessagesStep = 100;
59 59
60 namespace ConsoleAgentState { 60 namespace ConsoleAgentState {
61 static const char monitoringXHR[] = "monitoringXHR"; 61 static const char monitoringXHR[] = "monitoringXHR";
62 static const char consoleMessagesEnabled[] = "consoleMessagesEnabled"; 62 static const char consoleMessagesEnabled[] = "consoleMessagesEnabled";
63 } 63 }
64 64
65 int InspectorConsoleAgent::s_enabledAgentCount = 0; 65 int InspectorConsoleAgent::s_enabledAgentCount = 0;
66 66
67 InspectorConsoleAgent::InspectorConsoleAgent(InstrumentingAgents* instrumentingA gents, InspectorCompositeState* state, InjectedScriptManager* injectedScriptMana ger) 67 InspectorConsoleAgent::InspectorConsoleAgent(InstrumentingAgents* instrumentingA gents, InspectorState* state, InjectedScriptManager* injectedScriptManager)
68 : InspectorBaseAgent<InspectorConsoleAgent>("Console", instrumentingAgents, state) 68 : InspectorBaseAgent(instrumentingAgents, state)
69 , m_injectedScriptManager(injectedScriptManager) 69 , m_injectedScriptManager(injectedScriptManager)
70 , m_frontend(0) 70 , m_frontend(0)
71 , m_previousMessage(0) 71 , m_previousMessage(0)
72 , m_expiredConsoleMessageCount(0) 72 , m_expiredConsoleMessageCount(0)
73 , m_enabled(false) 73 , m_enabled(false)
74 { 74 {
75 m_instrumentingAgents->setInspectorConsoleAgent(this); 75 m_instrumentingAgents->setInspectorConsoleAgent(this);
76 } 76 }
77 77
78 InspectorConsoleAgent::~InspectorConsoleAgent() 78 InspectorConsoleAgent::~InspectorConsoleAgent()
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 int m_heapObjectId; 339 int m_heapObjectId;
340 }; 340 };
341 341
342 void InspectorConsoleAgent::addInspectedHeapObject(ErrorString*, int inspectedHe apObjectId) 342 void InspectorConsoleAgent::addInspectedHeapObject(ErrorString*, int inspectedHe apObjectId)
343 { 343 {
344 m_injectedScriptManager->injectedScriptHost()->addInspectedObject(adoptPtr(n ew InspectableHeapObject(inspectedHeapObjectId))); 344 m_injectedScriptManager->injectedScriptHost()->addInspectedObject(adoptPtr(n ew InspectableHeapObject(inspectedHeapObjectId)));
345 } 345 }
346 346
347 } // namespace WebCore 347 } // namespace WebCore
348 348
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698