OLD | NEW |
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 #ifndef COMPONENTS_DEVTOOLS_SERVICE_DEVTOOLS_HTTP_SERVER_H_ | 5 #ifndef COMPONENTS_DEVTOOLS_SERVICE_DEVTOOLS_HTTP_SERVER_H_ |
6 #define COMPONENTS_DEVTOOLS_SERVICE_DEVTOOLS_HTTP_SERVER_H_ | 6 #define COMPONENTS_DEVTOOLS_SERVICE_DEVTOOLS_HTTP_SERVER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "mojo/services/network/public/interfaces/http_connection.mojom.h" | 12 #include "mojo/services/network/public/interfaces/http_connection.mojom.h" |
13 #include "mojo/services/network/public/interfaces/http_message.mojom.h" | 13 #include "mojo/services/network/public/interfaces/http_message.mojom.h" |
14 #include "mojo/services/network/public/interfaces/http_server.mojom.h" | 14 #include "mojo/services/network/public/interfaces/http_server.mojom.h" |
15 #include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h" | |
16 | 15 |
17 namespace devtools_service { | 16 namespace devtools_service { |
18 | 17 |
19 class DevToolsService; | 18 class DevToolsService; |
20 | 19 |
21 class DevToolsHttpServer : public mojo::HttpServerDelegate { | 20 class DevToolsHttpServer : public mojo::HttpServerDelegate { |
22 public: | 21 public: |
23 // |service| must outlive this object. | 22 // |service| must outlive this object. |
24 DevToolsHttpServer(DevToolsService* service, uint16_t remote_debugging_port); | 23 DevToolsHttpServer(DevToolsService* service, uint16_t remote_debugging_port); |
25 ~DevToolsHttpServer() override; | 24 ~DevToolsHttpServer() override; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 57 |
59 // Owns the elements. | 58 // Owns the elements. |
60 std::set<HttpConnectionDelegateImpl*> connections_; | 59 std::set<HttpConnectionDelegateImpl*> connections_; |
61 | 60 |
62 DISALLOW_COPY_AND_ASSIGN(DevToolsHttpServer); | 61 DISALLOW_COPY_AND_ASSIGN(DevToolsHttpServer); |
63 }; | 62 }; |
64 | 63 |
65 } // namespace devtools_service | 64 } // namespace devtools_service |
66 | 65 |
67 #endif // COMPONENTS_DEVTOOLS_SERVICE_DEVTOOLS_HTTP_SERVER_H_ | 66 #endif // COMPONENTS_DEVTOOLS_SERVICE_DEVTOOLS_HTTP_SERVER_H_ |
OLD | NEW |