Commit a92534e1 authored by pfeldman@chromium.org's avatar pfeldman@chromium.org

DevTools: allow custom front-end configuration for the remote debugging.

Review URL: http://codereview.chromium.org/8776046

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112681 0039d316-1c4b-4281-b951-d872f2087c98
parent 82d3b399
...@@ -637,11 +637,16 @@ bool BrowserInit::LaunchWithProfile::Launch( ...@@ -637,11 +637,16 @@ bool BrowserInit::LaunchWithProfile::Launch(
command_line_.GetSwitchValueASCII(switches::kRemoteDebuggingPort); command_line_.GetSwitchValueASCII(switches::kRemoteDebuggingPort);
int64 port; int64 port;
if (base::StringToInt64(port_str, &port) && port > 0 && port < 65535) { if (base::StringToInt64(port_str, &port) && port > 0 && port < 65535) {
std::string frontend_str;
if (command_line_.HasSwitch(switches::kRemoteDebuggingFrontend)) {
frontend_str = command_line_.GetSwitchValueASCII(
switches::kRemoteDebuggingFrontend);
}
g_browser_process->InitDevToolsHttpProtocolHandler( g_browser_process->InitDevToolsHttpProtocolHandler(
profile, profile,
"127.0.0.1", "127.0.0.1",
static_cast<int>(port), static_cast<int>(port),
""); frontend_str);
} else { } else {
DLOG(WARNING) << "Invalid http debugger port number " << port; DLOG(WARNING) << "Invalid http debugger port number " << port;
} }
......
...@@ -945,6 +945,9 @@ const char kPurgeMemoryButton[] = "purge-memory-button"; ...@@ -945,6 +945,9 @@ const char kPurgeMemoryButton[] = "purge-memory-button";
// Reloads pages that have been killed when they are next focused by the user. // Reloads pages that have been killed when they are next focused by the user.
const char kReloadKilledTabs[] = "reload-killed-tabs"; const char kReloadKilledTabs[] = "reload-killed-tabs";
// Uses custom front-end URL for the remote debugging.
const char kRemoteDebuggingFrontend[] = "remote-debugging-frontend";
// Enables remote debug over HTTP on the specified port. // Enables remote debug over HTTP on the specified port.
const char kRemoteDebuggingPort[] = "remote-debugging-port"; const char kRemoteDebuggingPort[] = "remote-debugging-port";
......
...@@ -258,6 +258,7 @@ extern const char kProxyPacUrl[]; ...@@ -258,6 +258,7 @@ extern const char kProxyPacUrl[];
extern const char kProxyServer[]; extern const char kProxyServer[];
extern const char kPurgeMemoryButton[]; extern const char kPurgeMemoryButton[];
extern const char kReloadKilledTabs[]; extern const char kReloadKilledTabs[];
extern const char kRemoteDebuggingFrontend[];
extern const char kRemoteDebuggingPort[]; extern const char kRemoteDebuggingPort[];
extern const char kRestoreLastSession[]; extern const char kRestoreLastSession[];
extern const char kSbInfoURLPrefix[]; extern const char kSbInfoURLPrefix[];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment