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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorHeapProfilerAgent.h

Issue 1730383003: DevTools: consistently use Maybe for optional values in the protocol generator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments addressed 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/InspectorHeapProfilerAgent.h
diff --git a/third_party/WebKit/Source/core/inspector/InspectorHeapProfilerAgent.h b/third_party/WebKit/Source/core/inspector/InspectorHeapProfilerAgent.h
index 3a3a0424b354f37c6dce3451db2e43c092da3866..6b2b6225a15ed2025f516741eda400291d6e0dbd 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorHeapProfilerAgent.h
+++ b/third_party/WebKit/Source/core/inspector/InspectorHeapProfilerAgent.h
@@ -64,11 +64,11 @@ public:
void enable(ErrorString*) override;
void disable(ErrorString*) override;
- void startTrackingHeapObjects(ErrorString*, const OptionalValue<bool>& trackAllocations) override;
- void stopTrackingHeapObjects(ErrorString*, const OptionalValue<bool>& reportProgress) override;
- void takeHeapSnapshot(ErrorString*, const OptionalValue<bool>& reportProgress) override;
+ void startTrackingHeapObjects(ErrorString*, const Maybe<bool>& trackAllocations) override;
+ void stopTrackingHeapObjects(ErrorString*, const Maybe<bool>& reportProgress) override;
+ void takeHeapSnapshot(ErrorString*, const Maybe<bool>& reportProgress) override;
void collectGarbage(ErrorString*) override;
- void getObjectByHeapObjectId(ErrorString*, const String& objectId, const OptionalValue<String>& objectGroup, OwnPtr<protocol::Runtime::RemoteObject>* result) override;
+ void getObjectByHeapObjectId(ErrorString*, const String& objectId, const Maybe<String>& objectGroup, OwnPtr<protocol::Runtime::RemoteObject>* result) override;
void addInspectedHeapObject(ErrorString*, const String& heapObjectId) override;
void getHeapObjectId(ErrorString*, const String& objectId, String* heapSnapshotObjectId) override;
void startSampling(ErrorString*) override;

Powered by Google App Engine
This is Rietveld 408576698