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

Side by Side Diff: chrome/browser/devtools/remote_debugging_server.h

Issue 1846953007: DevTools: remote debugging should work in the IPv6-only environment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_ 5 #ifndef CHROME_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_
6 #define CHROME_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_ 6 #define CHROME_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 14
15 namespace devtools_http_handler { 15 namespace devtools_http_handler {
16 class DevToolsHttpHandler; 16 class DevToolsHttpHandler;
17 } 17 }
18 18
19 class RemoteDebuggingServer { 19 class RemoteDebuggingServer {
20 public: 20 public:
21 static void EnableTetheringForDebug(); 21 static void EnableTetheringForDebug();
22 22
23 // Bind remote debugging service to the given |ip| and |port|.
24 // Empty |ip| stands for 127.0.0.1 or ::1.
23 RemoteDebuggingServer(const std::string& ip, uint16_t port); 25 RemoteDebuggingServer(const std::string& ip, uint16_t port);
24 26
25 virtual ~RemoteDebuggingServer(); 27 virtual ~RemoteDebuggingServer();
26 28
27 private: 29 private:
28 scoped_ptr<devtools_http_handler::DevToolsHttpHandler> devtools_http_handler_; 30 scoped_ptr<devtools_http_handler::DevToolsHttpHandler> devtools_http_handler_;
29 DISALLOW_COPY_AND_ASSIGN(RemoteDebuggingServer); 31 DISALLOW_COPY_AND_ASSIGN(RemoteDebuggingServer);
30 }; 32 };
31 33
32 #endif // CHROME_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_ 34 #endif // CHROME_BROWSER_DEVTOOLS_REMOTE_DEBUGGING_SERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698