| 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" | 
| 15 | 16 | 
| 16 namespace devtools_service { | 17 namespace devtools_service { | 
| 17 | 18 | 
| 18 class DevToolsService; | 19 class DevToolsService; | 
| 19 | 20 | 
| 20 class DevToolsHttpServer : public mojo::HttpServerDelegate { | 21 class DevToolsHttpServer : public mojo::HttpServerDelegate { | 
| 21  public: | 22  public: | 
| 22   // |service| must outlive this object. | 23   // |service| must outlive this object. | 
| 23   DevToolsHttpServer(DevToolsService* service, uint16_t remote_debugging_port); | 24   DevToolsHttpServer(DevToolsService* service, uint16_t remote_debugging_port); | 
| 24   ~DevToolsHttpServer() override; | 25   ~DevToolsHttpServer() override; | 
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 57 | 58 | 
| 58   // Owns the elements. | 59   // Owns the elements. | 
| 59   std::set<HttpConnectionDelegateImpl*> connections_; | 60   std::set<HttpConnectionDelegateImpl*> connections_; | 
| 60 | 61 | 
| 61   DISALLOW_COPY_AND_ASSIGN(DevToolsHttpServer); | 62   DISALLOW_COPY_AND_ASSIGN(DevToolsHttpServer); | 
| 62 }; | 63 }; | 
| 63 | 64 | 
| 64 }  // namespace devtools_service | 65 }  // namespace devtools_service | 
| 65 | 66 | 
| 66 #endif  // COMPONENTS_DEVTOOLS_SERVICE_DEVTOOLS_HTTP_SERVER_H_ | 67 #endif  // COMPONENTS_DEVTOOLS_SERVICE_DEVTOOLS_HTTP_SERVER_H_ | 
| OLD | NEW | 
|---|