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

Side by Side Diff: content/browser/devtools/protocol/tracing_handler.h

Issue 1255213003: Add Tracing.requestMemoryDump method stub to DevTools API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « no previous file | content/browser/devtools/protocol/tracing_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TRACING_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TRACING_HANDLER_H_
6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TRACING_HANDLER_H_ 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TRACING_HANDLER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 24 matching lines...) Expand all
35 35
36 void OnTraceDataCollected(const std::string& trace_fragment); 36 void OnTraceDataCollected(const std::string& trace_fragment);
37 void OnTraceComplete(); 37 void OnTraceComplete();
38 38
39 Response Start(DevToolsCommandId command_id, 39 Response Start(DevToolsCommandId command_id,
40 const std::string* categories, 40 const std::string* categories,
41 const std::string* options, 41 const std::string* options,
42 const double* buffer_usage_reporting_interval); 42 const double* buffer_usage_reporting_interval);
43 Response End(DevToolsCommandId command_id); 43 Response End(DevToolsCommandId command_id);
44 Response GetCategories(DevToolsCommandId command); 44 Response GetCategories(DevToolsCommandId command);
45 Response RequestMemoryDump(DevToolsCommandId command_id);
45 bool did_initiate_recording() { return did_initiate_recording_; } 46 bool did_initiate_recording() { return did_initiate_recording_; }
46 47
47 private: 48 private:
48 void OnRecordingEnabled(DevToolsCommandId command_id); 49 void OnRecordingEnabled(DevToolsCommandId command_id);
49 void OnBufferUsage(float percent_full, size_t approximate_event_count); 50 void OnBufferUsage(float percent_full, size_t approximate_event_count);
50 51
51 void OnCategoriesReceived(DevToolsCommandId command_id, 52 void OnCategoriesReceived(DevToolsCommandId command_id,
52 const std::set<std::string>& category_set); 53 const std::set<std::string>& category_set);
53 54
54 void SetupTimer(double usage_reporting_interval); 55 void SetupTimer(double usage_reporting_interval);
(...skipping 10 matching lines...) Expand all
65 base::WeakPtrFactory<TracingHandler> weak_factory_; 66 base::WeakPtrFactory<TracingHandler> weak_factory_;
66 67
67 DISALLOW_COPY_AND_ASSIGN(TracingHandler); 68 DISALLOW_COPY_AND_ASSIGN(TracingHandler);
68 }; 69 };
69 70
70 } // namespace tracing 71 } // namespace tracing
71 } // namespace devtools 72 } // namespace devtools
72 } // namespace content 73 } // namespace content
73 74
74 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TRACING_HANDLER_H_ 75 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TRACING_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/devtools/protocol/tracing_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698