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

Side by Side Diff: android_webview/browser/aw_devtools_delegate.cc

Issue 16093005: [Android] Use a "unique" remote debugging socket name on bind failure (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Always use socket names from MakeSocketPath Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/android/dev_tools_server.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "android_webview/browser/aw_devtools_delegate.h" 5 #include "android_webview/browser/aw_devtools_delegate.h"
6 6
7 #include "android_webview/browser/browser_view_renderer_impl.h" 7 #include "android_webview/browser/browser_view_renderer_impl.h"
8 #include "android_webview/browser/in_process_renderer/in_process_view_renderer.h " 8 #include "android_webview/browser/in_process_renderer/in_process_view_renderer.h "
9 #include "android_webview/common/aw_switches.h" 9 #include "android_webview/common/aw_switches.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 12 matching lines...) Expand all
23 const char kSocketNameFormat[] = "webview_devtools_remote_%d"; 23 const char kSocketNameFormat[] = "webview_devtools_remote_%d";
24 } 24 }
25 25
26 namespace android_webview { 26 namespace android_webview {
27 27
28 AwDevToolsDelegate::AwDevToolsDelegate(content::BrowserContext* browser_context) 28 AwDevToolsDelegate::AwDevToolsDelegate(content::BrowserContext* browser_context)
29 : browser_context_(browser_context) { 29 : browser_context_(browser_context) {
30 devtools_http_handler_ = content::DevToolsHttpHandler::Start( 30 devtools_http_handler_ = content::DevToolsHttpHandler::Start(
31 new net::UnixDomainSocketWithAbstractNamespaceFactory( 31 new net::UnixDomainSocketWithAbstractNamespaceFactory(
32 base::StringPrintf(kSocketNameFormat, getpid()), 32 base::StringPrintf(kSocketNameFormat, getpid()),
33 "",
33 base::Bind(&content::CanUserConnectToDevTools)), 34 base::Bind(&content::CanUserConnectToDevTools)),
34 "", 35 "",
35 this); 36 this);
36 } 37 }
37 38
38 AwDevToolsDelegate::~AwDevToolsDelegate() { 39 AwDevToolsDelegate::~AwDevToolsDelegate() {
39 } 40 }
40 41
41 void AwDevToolsDelegate::Stop() { 42 void AwDevToolsDelegate::Stop() {
42 devtools_http_handler_->Stop(); 43 devtools_http_handler_->Stop();
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 } 244 }
244 245
245 scoped_refptr<net::StreamListenSocket> 246 scoped_refptr<net::StreamListenSocket>
246 AwDevToolsDelegate::CreateSocketForTethering( 247 AwDevToolsDelegate::CreateSocketForTethering(
247 net::StreamListenSocket::Delegate* delegate, 248 net::StreamListenSocket::Delegate* delegate,
248 std::string* name) { 249 std::string* name) {
249 return NULL; 250 return NULL;
250 } 251 }
251 252
252 } // namespace android_webview 253 } // namespace android_webview
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/android/dev_tools_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698