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

Side by Side Diff: components/devtools_service/devtools_http_server.cc

Issue 1410053006: Move third_party/mojo/src/mojo/public to mojo/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 1 month 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 | « components/devtools_service/devtools_http_server.h ('k') | components/devtools_service/main.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "components/devtools_service/devtools_http_server.h" 5 #include "components/devtools_service/devtools_http_server.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/json/json_writer.h" 12 #include "base/json/json_writer.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/stl_util.h" 14 #include "base/stl_util.h"
15 #include "base/strings/stringprintf.h" 15 #include "base/strings/stringprintf.h"
16 #include "base/values.h" 16 #include "base/values.h"
17 #include "components/devtools_service/devtools_agent_host.h" 17 #include "components/devtools_service/devtools_agent_host.h"
18 #include "components/devtools_service/devtools_registry_impl.h" 18 #include "components/devtools_service/devtools_registry_impl.h"
19 #include "components/devtools_service/devtools_service.h" 19 #include "components/devtools_service/devtools_service.h"
20 #include "mojo/application/public/cpp/application_impl.h" 20 #include "mojo/application/public/cpp/application_impl.h"
21 #include "mojo/public/cpp/system/data_pipe.h"
21 #include "mojo/services/network/public/cpp/web_socket_read_queue.h" 22 #include "mojo/services/network/public/cpp/web_socket_read_queue.h"
22 #include "mojo/services/network/public/cpp/web_socket_write_queue.h" 23 #include "mojo/services/network/public/cpp/web_socket_write_queue.h"
23 #include "mojo/services/network/public/interfaces/net_address.mojom.h" 24 #include "mojo/services/network/public/interfaces/net_address.mojom.h"
24 #include "mojo/services/network/public/interfaces/network_service.mojom.h" 25 #include "mojo/services/network/public/interfaces/network_service.mojom.h"
25 #include "mojo/services/network/public/interfaces/web_socket.mojom.h" 26 #include "mojo/services/network/public/interfaces/web_socket.mojom.h"
26 #include "third_party/mojo/src/mojo/public/cpp/system/data_pipe.h"
27 27
28 namespace devtools_service { 28 namespace devtools_service {
29 29
30 namespace { 30 namespace {
31 31
32 const char kPageUrlPrefix[] = "/devtools/page/"; 32 const char kPageUrlPrefix[] = "/devtools/page/";
33 const char kBrowserUrlPrefix[] = "/devtools/browser"; 33 const char kBrowserUrlPrefix[] = "/devtools/browser";
34 const char kJsonRequestUrlPrefix[] = "/json"; 34 const char kJsonRequestUrlPrefix[] = "/json";
35 35
36 const char kActivateCommand[] = "activate"; 36 const char kActivateCommand[] = "activate";
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 iter.value()->id().c_str())); 492 iter.value()->id().c_str()));
493 list_value.Append(dict_value.Pass()); 493 list_value.Append(dict_value.Pass());
494 } 494 }
495 return MakeJsonResponse(200, &list_value, std::string()); 495 return MakeJsonResponse(200, &list_value, std::string());
496 } 496 }
497 497
498 return MakeJsonResponse(404, nullptr, "Unknown command: " + command); 498 return MakeJsonResponse(404, nullptr, "Unknown command: " + command);
499 } 499 }
500 500
501 } // namespace devtools_service 501 } // namespace devtools_service
OLDNEW
« no previous file with comments | « components/devtools_service/devtools_http_server.h ('k') | components/devtools_service/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698