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

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

Issue 1165673002: [Startup Tracing] Hook up TraceConfig and remove CategoryFilter & TraceOptions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 6 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
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 Response End(DevToolsCommandId command_id); 43 Response End(DevToolsCommandId command_id);
44 Response GetCategories(DevToolsCommandId command); 44 Response GetCategories(DevToolsCommandId command);
45 45
46 private: 46 private:
47 void OnRecordingEnabled(DevToolsCommandId command_id); 47 void OnRecordingEnabled(DevToolsCommandId command_id);
48 void OnBufferUsage(float percent_full, size_t approximate_event_count); 48 void OnBufferUsage(float percent_full, size_t approximate_event_count);
49 49
50 void OnCategoriesReceived(DevToolsCommandId command_id, 50 void OnCategoriesReceived(DevToolsCommandId command_id,
51 const std::set<std::string>& category_set); 51 const std::set<std::string>& category_set);
52 52
53 base::trace_event::TraceOptions TraceOptionsFromString(
54 const std::string* options);
55
56 void SetupTimer(double usage_reporting_interval); 53 void SetupTimer(double usage_reporting_interval);
57 54
58 void DisableRecording(bool abort); 55 void DisableRecording(bool abort);
59 56
60 scoped_ptr<base::Timer> buffer_usage_poll_timer_; 57 scoped_ptr<base::Timer> buffer_usage_poll_timer_;
61 Target target_; 58 Target target_;
62 bool is_recording_; 59 bool is_recording_;
63 60
64 scoped_ptr<Client> client_; 61 scoped_ptr<Client> client_;
65 base::WeakPtrFactory<TracingHandler> weak_factory_; 62 base::WeakPtrFactory<TracingHandler> weak_factory_;
66 63
67 DISALLOW_COPY_AND_ASSIGN(TracingHandler); 64 DISALLOW_COPY_AND_ASSIGN(TracingHandler);
68 }; 65 };
69 66
70 } // namespace tracing 67 } // namespace tracing
71 } // namespace devtools 68 } // namespace devtools
72 } // namespace content 69 } // namespace content
73 70
74 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TRACING_HANDLER_H_ 71 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TRACING_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/android/tracing_controller_android.cc ('k') | content/browser/devtools/protocol/tracing_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698