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

Unified Diff: src/inspector/V8HeapProfilerAgentImpl.h

Issue 2338413003: [inspector] change implementation file extension from cpp to cc (Closed)
Patch Set: string16 -> string-16 Created 4 years, 3 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
« no previous file with comments | « src/inspector/V8FunctionCall.cpp ('k') | src/inspector/V8HeapProfilerAgentImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/inspector/V8HeapProfilerAgentImpl.h
diff --git a/src/inspector/V8HeapProfilerAgentImpl.h b/src/inspector/V8HeapProfilerAgentImpl.h
deleted file mode 100644
index edd890b8f84190b2322e87b427429ac7a9284655..0000000000000000000000000000000000000000
--- a/src/inspector/V8HeapProfilerAgentImpl.h
+++ /dev/null
@@ -1,73 +0,0 @@
-// Copyright 2016 the V8 project authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef V8_INSPECTOR_V8HEAPPROFILERAGENTIMPL_H_
-#define V8_INSPECTOR_V8HEAPPROFILERAGENTIMPL_H_
-
-#include "src/base/macros.h"
-#include "src/inspector/protocol/Forward.h"
-#include "src/inspector/protocol/HeapProfiler.h"
-
-#include "include/v8.h"
-
-namespace v8_inspector {
-
-class V8InspectorSessionImpl;
-
-using protocol::ErrorString;
-using protocol::Maybe;
-
-class V8HeapProfilerAgentImpl : public protocol::HeapProfiler::Backend {
- DISALLOW_COPY_AND_ASSIGN(V8HeapProfilerAgentImpl);
-
- public:
- V8HeapProfilerAgentImpl(V8InspectorSessionImpl*, protocol::FrontendChannel*,
- protocol::DictionaryValue* state);
- ~V8HeapProfilerAgentImpl() override;
- void restore();
-
- void collectGarbage(ErrorString*) override;
-
- void enable(ErrorString*) override;
- void startTrackingHeapObjects(ErrorString*,
- const Maybe<bool>& trackAllocations) override;
- void stopTrackingHeapObjects(ErrorString*,
- const Maybe<bool>& reportProgress) override;
-
- void disable(ErrorString*) override;
-
- void takeHeapSnapshot(ErrorString*,
- const Maybe<bool>& reportProgress) override;
-
- void getObjectByHeapObjectId(
- ErrorString*, const String16& heapSnapshotObjectId,
- const Maybe<String16>& objectGroup,
- std::unique_ptr<protocol::Runtime::RemoteObject>* result) override;
- void addInspectedHeapObject(ErrorString*,
- const String16& inspectedHeapObjectId) override;
- void getHeapObjectId(ErrorString*, const String16& objectId,
- String16* heapSnapshotObjectId) override;
-
- void startSampling(ErrorString*,
- const Maybe<double>& samplingInterval) override;
- void stopSampling(
- ErrorString*,
- std::unique_ptr<protocol::HeapProfiler::SamplingHeapProfile>*) override;
-
- private:
- void startTrackingHeapObjectsInternal(bool trackAllocations);
- void stopTrackingHeapObjectsInternal();
- void requestHeapStatsUpdate();
- static void onTimer(void*);
-
- V8InspectorSessionImpl* m_session;
- v8::Isolate* m_isolate;
- protocol::HeapProfiler::Frontend m_frontend;
- protocol::DictionaryValue* m_state;
- bool m_hasTimer;
-};
-
-} // namespace v8_inspector
-
-#endif // V8_INSPECTOR_V8HEAPPROFILERAGENTIMPL_H_
« no previous file with comments | « src/inspector/V8FunctionCall.cpp ('k') | src/inspector/V8HeapProfilerAgentImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698