Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/memory/weak_ptr.h" | 6 #include "base/memory/weak_ptr.h" |
| 7 #include "base/strings/string_number_conversions.h" | 7 #include "base/strings/string_number_conversions.h" |
| 8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
| 9 #include "mojo/application/application_runner_chromium.h" | 9 #include "mojo/application/application_runner_chromium.h" |
| 10 #include "mojo/public/c/system/main.h" | 10 #include "mojo/public/c/system/main.h" |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 149 is_tracing_ = !is_tracing_; | 149 is_tracing_ = !is_tracing_; |
| 150 Respond(connection_id, response); | 150 Respond(connection_id, response); |
| 151 } | 151 } |
| 152 | 152 |
| 153 bool is_tracing_; | 153 bool is_tracing_; |
| 154 DebuggerPtr debugger_; | 154 DebuggerPtr debugger_; |
| 155 tracing::TraceCoordinatorPtr tracing_; | 155 tracing::TraceCoordinatorPtr tracing_; |
| 156 std::string url_; | 156 std::string url_; |
| 157 base::WeakPtrFactory<Prompt> weak_ptr_factory_; | 157 base::WeakPtrFactory<Prompt> weak_ptr_factory_; |
| 158 scoped_ptr<net::HttpServer> web_server_; | 158 scoped_ptr<net::HttpServer> web_server_; |
| 159 unsigned command_port_; | 159 uint32_t command_port_; |
|
eseidel
2015/01/09 22:58:50
This was to answer an earlier complaint from james
| |
| 160 | 160 |
| 161 DISALLOW_COPY_AND_ASSIGN(Prompt); | 161 DISALLOW_COPY_AND_ASSIGN(Prompt); |
| 162 }; | 162 }; |
| 163 | 163 |
| 164 } // namespace debugger | 164 } // namespace debugger |
| 165 } // namespace sky | 165 } // namespace sky |
| 166 | 166 |
| 167 MojoResult MojoMain(MojoHandle shell_handle) { | 167 MojoResult MojoMain(MojoHandle shell_handle) { |
| 168 mojo::ApplicationRunnerChromium runner(new sky::debugger::Prompt); | 168 mojo::ApplicationRunnerChromium runner(new sky::debugger::Prompt); |
| 169 runner.set_message_loop_type(base::MessageLoop::TYPE_IO); | 169 runner.set_message_loop_type(base::MessageLoop::TYPE_IO); |
| 170 return runner.Run(shell_handle); | 170 return runner.Run(shell_handle); |
| 171 } | 171 } |
| OLD | NEW |