OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | |
dgozman
2016/09/02 18:25:45
no (c)
| |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_SOCKET_FACTORY_H_ | |
6 #define CONTENT_PUBLIC_BROWSER_DEVTOOLS_SOCKET_FACTORY_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "net/socket/server_socket.h" | |
11 | |
12 namespace content { | |
13 | |
14 // Factory of net::ServerSocket. This is to separate instantiating dev tools | |
15 // and instantiating server sockets. | |
16 // All methods including destructor are called on a separate thread | |
17 // different from any BrowserThread instance. | |
18 class DevToolsSocketFactory { | |
19 public: | |
dgozman
2016/09/02 18:25:45
Please reformat.
| |
20 virtual ~DevToolsSocketFactory() {} | |
21 | |
22 // Returns a new instance of ServerSocket or nullptr if an error occurred. | |
23 virtual std::unique_ptr<net::ServerSocket> CreateForHttpServer() = 0; | |
24 | |
25 // Creates a named socket for reversed tethering implementation (used with | |
26 // remote debugging, primarily for mobile). | |
27 virtual std::unique_ptr<net::ServerSocket> CreateForTethering( | |
28 std::string* out_name) = 0; | |
29 }; | |
30 | |
31 } // namespace content | |
32 | |
33 #endif // CONTENT_PUBLIC_BROWSER_DEVTOOLS_SOCKET_FACTORY_H_ | |
OLD | NEW |