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

Side by Side Diff: services/debugger/debugger.cc

Issue 1284293003: Rename tracing interfaces. (Closed) Base URL: git@github.com:domokit/mojo.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 | « mojo/services/tracing/public/interfaces/tracing.mojom ('k') | services/tracing/BUILD.gn » ('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 #include <algorithm> 5 #include <algorithm>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/debug/profiler.h" 8 #include "base/debug/profiler.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 Error(callback, "Profiling not started"); 196 Error(callback, "Profiling not started");
197 return; 197 return;
198 } 198 }
199 base::debug::StopProfiling(); 199 base::debug::StopProfiling();
200 Respond(callback, "Stopped profiling"); 200 Respond(callback, "Stopped profiling");
201 } 201 }
202 202
203 bool is_tracing_; 203 bool is_tracing_;
204 mojo::ApplicationImpl* app_; 204 mojo::ApplicationImpl* app_;
205 mojo::WindowManagerPtr window_manager_; 205 mojo::WindowManagerPtr window_manager_;
206 tracing::TraceCoordinatorPtr tracing_; 206 tracing::TraceCollectorPtr tracing_;
207 std::string url_; 207 std::string url_;
208 uint32_t command_port_; 208 uint32_t command_port_;
209 209
210 http_server::HttpServerPtr http_server_; 210 http_server::HttpServerPtr http_server_;
211 mojo::Binding<http_server::HttpHandler> handler_binding_; 211 mojo::Binding<http_server::HttpHandler> handler_binding_;
212 212
213 scoped_ptr<TraceCollector> trace_collector_; 213 scoped_ptr<TraceCollector> trace_collector_;
214 214
215 DISALLOW_COPY_AND_ASSIGN(Debugger); 215 DISALLOW_COPY_AND_ASSIGN(Debugger);
216 }; 216 };
217 217
218 } // namespace debugger 218 } // namespace debugger
219 219
220 MojoResult MojoMain(MojoHandle application_request) { 220 MojoResult MojoMain(MojoHandle application_request) {
221 mojo::ApplicationRunnerChromium runner(new debugger::Debugger); 221 mojo::ApplicationRunnerChromium runner(new debugger::Debugger);
222 runner.set_message_loop_type(base::MessageLoop::TYPE_IO); 222 runner.set_message_loop_type(base::MessageLoop::TYPE_IO);
223 return runner.Run(application_request); 223 return runner.Run(application_request);
224 } 224 }
OLDNEW
« no previous file with comments | « mojo/services/tracing/public/interfaces/tracing.mojom ('k') | services/tracing/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698