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

Unified Diff: chrome/browser/android/dev_tools_server.cc

Issue 376323002: Refactor unix domain socket. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved UnixDomainListenSocket to net::deprecated namespace. Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « android_webview/native/aw_dev_tools_server.cc ('k') | content/shell/browser/shell_devtools_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/dev_tools_server.cc
diff --git a/chrome/browser/android/dev_tools_server.cc b/chrome/browser/android/dev_tools_server.cc
index ff1acd3bf99cb6ee9a5d5047c44144b50c49610a..acdb6b589d5bd7225c51eeb82d05122367aeb6f8 100644
--- a/chrome/browser/android/dev_tools_server.cc
+++ b/chrome/browser/android/dev_tools_server.cc
@@ -40,7 +40,7 @@
#include "content/public/common/user_agent.h"
#include "grit/browser_resources.h"
#include "jni/DevToolsServer_jni.h"
-#include "net/socket/unix_domain_socket_posix.h"
+#include "net/socket/unix_domain_listen_socket_posix.h"
#include "net/url_request/url_request_context_getter.h"
#include "ui/base/resource/resource_bundle.h"
@@ -366,12 +366,13 @@ class DevToolsServerDelegate : public content::DevToolsHttpHandlerDelegate {
std::string* name) OVERRIDE {
*name = base::StringPrintf(
kTetheringSocketName, getpid(), ++last_tethering_socket_);
- return net::UnixDomainSocket::CreateAndListenWithAbstractNamespace(
- *name,
- "",
- delegate,
- base::Bind(&content::CanUserConnectToDevTools))
- .PassAs<net::StreamListenSocket>();
+ return net::deprecated::UnixDomainListenSocket::
+ CreateAndListenWithAbstractNamespace(
+ *name,
+ "",
+ delegate,
+ base::Bind(&content::CanUserConnectToDevTools))
+ .PassAs<net::StreamListenSocket>();
}
private:
@@ -423,7 +424,7 @@ void DevToolsServer::Start() {
return;
protocol_handler_ = content::DevToolsHttpHandler::Start(
- new net::UnixDomainSocketWithAbstractNamespaceFactory(
+ new net::deprecated::UnixDomainListenSocketWithAbstractNamespaceFactory(
socket_name_,
base::StringPrintf("%s_%d", socket_name_.c_str(), getpid()),
base::Bind(&content::CanUserConnectToDevTools)),
« no previous file with comments | « android_webview/native/aw_dev_tools_server.cc ('k') | content/shell/browser/shell_devtools_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698