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

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

Issue 892213004: Mechanical rename of base::debug -> base::trace_event for /content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_trace_part3_1
Patch Set: Rebase. Created 5 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 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::debug::TraceOptions TraceOptionsFromString(const std::string* options); 53 base::trace_event::TraceOptions TraceOptionsFromString(
54 const std::string* options);
54 55
55 void SetupTimer(double usage_reporting_interval); 56 void SetupTimer(double usage_reporting_interval);
56 57
57 void DisableRecording(bool abort); 58 void DisableRecording(bool abort);
58 59
59 scoped_ptr<base::Timer> buffer_usage_poll_timer_; 60 scoped_ptr<base::Timer> buffer_usage_poll_timer_;
60 Target target_; 61 Target target_;
61 bool is_recording_; 62 bool is_recording_;
62 63
63 scoped_ptr<Client> client_; 64 scoped_ptr<Client> client_;
64 base::WeakPtrFactory<TracingHandler> weak_factory_; 65 base::WeakPtrFactory<TracingHandler> weak_factory_;
65 66
66 DISALLOW_COPY_AND_ASSIGN(TracingHandler); 67 DISALLOW_COPY_AND_ASSIGN(TracingHandler);
67 }; 68 };
68 69
69 } // namespace tracing 70 } // namespace tracing
70 } // namespace devtools 71 } // namespace devtools
71 } // namespace content 72 } // namespace content
72 73
73 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TRACING_HANDLER_H_ 74 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TRACING_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/browser_shutdown_profile_dumper.cc ('k') | content/browser/devtools/protocol/tracing_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698