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

Unified Diff: third_party/WebKit/Source/core/inspector/v8/V8HeapProfilerAgentImpl.cpp

Issue 1696513002: DevTools: move protocol-related generators into inspector subfolder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/inspector/v8/V8HeapProfilerAgentImpl.cpp
diff --git a/third_party/WebKit/Source/core/inspector/v8/V8HeapProfilerAgentImpl.cpp b/third_party/WebKit/Source/core/inspector/v8/V8HeapProfilerAgentImpl.cpp
index 6ecc810609aa61adec5c78b94be16621ab115edb..142ca5d207c5a7888b1fdad8d39a194587050fee 100644
--- a/third_party/WebKit/Source/core/inspector/v8/V8HeapProfilerAgentImpl.cpp
+++ b/third_party/WebKit/Source/core/inspector/v8/V8HeapProfilerAgentImpl.cpp
@@ -26,7 +26,7 @@ bool asBool(const bool* value)
class HeapSnapshotProgress final : public v8::ActivityControl {
public:
- HeapSnapshotProgress(InspectorFrontend::HeapProfiler* frontend)
+ HeapSnapshotProgress(protocol::Frontend::HeapProfiler* frontend)
: m_frontend(frontend) { }
ControlOption ReportProgressValue(int done, int total) override
{
@@ -39,7 +39,7 @@ public:
return kContinue;
}
private:
- InspectorFrontend::HeapProfiler* m_frontend;
+ protocol::Frontend::HeapProfiler* m_frontend;
};
class GlobalObjectNameResolver final : public v8::HeapProfiler::ObjectNameResolver {
@@ -65,7 +65,7 @@ private:
class HeapSnapshotOutputStream final : public v8::OutputStream {
public:
- HeapSnapshotOutputStream(InspectorFrontend::HeapProfiler* frontend)
+ HeapSnapshotOutputStream(protocol::Frontend::HeapProfiler* frontend)
: m_frontend(frontend) { }
void EndOfStream() override { }
int GetChunkSize() override { return 102400; }
@@ -76,7 +76,7 @@ public:
return kContinue;
}
private:
- InspectorFrontend::HeapProfiler* m_frontend;
+ protocol::Frontend::HeapProfiler* m_frontend;
};
v8::Local<v8::Object> objectByHeapObjectId(v8::Isolate* isolate, unsigned id)
@@ -101,7 +101,7 @@ private:
class HeapStatsStream final : public v8::OutputStream {
public:
- HeapStatsStream(InspectorFrontend::HeapProfiler* frontend)
+ HeapStatsStream(protocol::Frontend::HeapProfiler* frontend)
: m_frontend(frontend)
{
}
@@ -117,7 +117,7 @@ public:
WriteResult WriteHeapStatsChunk(v8::HeapStatsUpdate* updateData, int count) override
{
ASSERT(count > 0);
- RefPtr<TypeBuilder::Array<int>> statsDiff = TypeBuilder::Array<int>::create();
+ RefPtr<protocol::TypeBuilder::Array<int>> statsDiff = protocol::TypeBuilder::Array<int>::create();
for (int i = 0; i < count; ++i) {
statsDiff->addItem(updateData[i].index);
statsDiff->addItem(updateData[i].count);
@@ -128,7 +128,7 @@ public:
}
private:
- InspectorFrontend::HeapProfiler* m_frontend;
+ protocol::Frontend::HeapProfiler* m_frontend;
};
} // namespace
@@ -218,7 +218,7 @@ void V8HeapProfilerAgentImpl::takeHeapSnapshot(ErrorString* errorString, const b
const_cast<v8::HeapSnapshot*>(snapshot)->Delete();
}
-void V8HeapProfilerAgentImpl::getObjectByHeapObjectId(ErrorString* error, const String& heapSnapshotObjectId, const String* objectGroup, RefPtr<TypeBuilder::Runtime::RemoteObject>& result)
+void V8HeapProfilerAgentImpl::getObjectByHeapObjectId(ErrorString* error, const String& heapSnapshotObjectId, const String* objectGroup, RefPtr<protocol::TypeBuilder::Runtime::RemoteObject>& result)
{
bool ok;
unsigned id = heapSnapshotObjectId.toUInt(&ok);

Powered by Google App Engine
This is Rietveld 408576698