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

Side by Side Diff: content/public/browser/devtools_socket_factory.h

Issue 2295623002: DevTools: simplify http handler delegate as it is moving into content. (Closed)
Patch Set: for bots 5 Created 4 years, 3 months 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 | « content/content_browser.gypi ('k') | content/shell/browser/shell_devtools_frontend.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « content/content_browser.gypi ('k') | content/shell/browser/shell_devtools_frontend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698