2010-08-24 Ilya Tikhonovsky <loislo@chromium.org>
Reviewed by Pavel Feldman.
WebInspector: RemoteInspectorFrontend can be renamed to InspectorFrontend.
The old version of InspectorFrontend was removed some time ago and now
it is possible to rename the new version of inspector frontend class to its
original name.
https://bugs.webkit.org/show_bug.cgi?id=44499
* GNUmakefile.am:
* WebCore.gyp/WebCore.gyp:
* WebCore.pri:
* WebCore.vcproj/WebCore.vcproj:
* WebCore.xcodeproj/project.pbxproj:
* inspector/CodeGeneratorInspector.pm:
* inspector/ConsoleMessage.cpp:
* inspector/ConsoleMessage.h:
* inspector/InjectedScriptHost.cpp:
* inspector/InjectedScriptHost.h:
* inspector/InspectorApplicationCacheAgent.cpp:
* inspector/InspectorApplicationCacheAgent.h:
* inspector/InspectorBackend.cpp:
* inspector/InspectorBackend.h:
* inspector/InspectorCSSStore.cpp:
* inspector/InspectorCSSStore.h:
* inspector/InspectorController.cpp:
* inspector/InspectorController.h:
* inspector/InspectorDOMAgent.cpp:
* inspector/InspectorDOMAgent.h:
* inspector/InspectorDOMStorageResource.cpp:
* inspector/InspectorDOMStorageResource.h:
* inspector/InspectorDatabaseResource.cpp:
* inspector/InspectorDatabaseResource.h:
* inspector/InspectorDebuggerAgent.cpp:
* inspector/InspectorDebuggerAgent.h:
* inspector/InspectorProfilerAgent.cpp:
* inspector/InspectorProfilerAgent.h:
* inspector/InspectorResource.cpp:
* inspector/InspectorResource.h:
* inspector/InspectorStorageAgent.cpp:
* inspector/InspectorStorageAgent.h:
* inspector/InspectorTimelineAgent.cpp:
* inspector/InspectorTimelineAgent.h:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65891 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/inspector/InspectorProfilerAgent.cpp b/WebCore/inspector/InspectorProfilerAgent.cpp
index 5db3caa..a73469a 100644
--- a/WebCore/inspector/InspectorProfilerAgent.cpp
+++ b/WebCore/inspector/InspectorProfilerAgent.cpp
@@ -34,10 +34,10 @@
#include "Console.h"
#include "InspectorController.h"
+#include "InspectorFrontend.h"
#include "InspectorValues.h"
#include "KURL.h"
#include "Page.h"
-#include "RemoteInspectorFrontend.h"
#include "ScriptDebugServer.h"
#include "ScriptProfile.h"
#include "ScriptProfiler.h"
@@ -60,7 +60,7 @@
InspectorProfilerAgent::InspectorProfilerAgent(InspectorController* inspectorController)
: m_inspectorController(inspectorController)
- , m_remoteFrontend(0)
+ , m_frontend(0)
, m_enabled(ScriptProfiler::isProfilerAlwaysEnabled())
, m_recordingUserInitiatedProfile(false)
, m_currentUserInitiatedProfileNumber(-1)
@@ -76,8 +76,8 @@
{
RefPtr<ScriptProfile> profile = prpProfile;
m_profiles.add(profile->uid(), profile);
- if (m_remoteFrontend)
- m_remoteFrontend->addProfileHeader(createProfileHeader(*profile));
+ if (m_frontend)
+ m_frontend->addProfileHeader(createProfileHeader(*profile));
addProfileFinishedMessageToConsole(profile, lineNumber, sourceURL);
}
@@ -110,8 +110,8 @@
return;
m_enabled = false;
ScriptDebugServer::shared().recompileAllJSFunctionsSoon();
- if (m_remoteFrontend)
- m_remoteFrontend->profilerWasDisabled();
+ if (m_frontend)
+ m_frontend->profilerWasDisabled();
}
void InspectorProfilerAgent::enable(bool skipRecompile)
@@ -121,8 +121,8 @@
m_enabled = true;
if (!skipRecompile)
ScriptDebugServer::shared().recompileAllJSFunctionsSoon();
- if (m_remoteFrontend)
- m_remoteFrontend->profilerWasEnabled();
+ if (m_frontend)
+ m_frontend->profilerWasEnabled();
}
String InspectorProfilerAgent::getCurrentUserInitiatedProfileName(bool incrementProfileNumber)
@@ -160,8 +160,8 @@
m_profiles.clear();
m_currentUserInitiatedProfileNumber = 1;
m_nextUserInitiatedProfileNumber = 1;
- if (m_remoteFrontend)
- m_remoteFrontend->resetProfilesPanel();
+ if (m_frontend)
+ m_frontend->resetProfilesPanel();
}
void InspectorProfilerAgent::startUserInitiatedProfiling()
@@ -201,8 +201,8 @@
void InspectorProfilerAgent::toggleRecordButton(bool isProfiling)
{
- if (m_remoteFrontend)
- m_remoteFrontend->setRecordingProfile(isProfiling);
+ if (m_frontend)
+ m_frontend->setRecordingProfile(isProfiling);
}
} // namespace WebCore