OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/shell/shell_devtools_delegate.h" | 5 #include "content/shell/shell_devtools_delegate.h" |
6 | 6 |
7 #include "base/stringprintf.h" | 7 #include "base/stringprintf.h" |
8 #include "content/public/browser/android/devtools_auth.h" | 8 #include "content/public/browser/android/devtools_auth.h" |
9 #include "content/public/browser/devtools_http_handler.h" | 9 #include "content/public/browser/devtools_http_handler.h" |
10 #include "grit/shell_resources.h" | 10 #include "grit/shell_resources.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 const char* kFrontendVersion = "21.0.1175.0"; | 21 const char* kFrontendVersion = "21.0.1175.0"; |
22 const char kSocketName[] = "content_shell_devtools_remote"; | 22 const char kSocketName[] = "content_shell_devtools_remote"; |
23 const char kFrontEndURL[] = | 23 const char kFrontEndURL[] = |
24 "http://chrome-devtools-frontend.appspot.com/static/%s/devtools.html"; | 24 "http://chrome-devtools-frontend.appspot.com/static/%s/devtools.html"; |
25 | 25 |
26 } | 26 } |
27 | 27 |
28 namespace content { | 28 namespace content { |
29 | 29 |
30 ShellDevToolsDelegate::ShellDevToolsDelegate( | 30 ShellDevToolsDelegate::ShellDevToolsDelegate( |
31 int port, | |
32 net::URLRequestContextGetter* context_getter) | 31 net::URLRequestContextGetter* context_getter) |
33 : context_getter_(context_getter) { | 32 : context_getter_(context_getter) { |
34 devtools_http_handler_ = DevToolsHttpHandler::Start( | 33 devtools_http_handler_ = DevToolsHttpHandler::Start( |
35 new net::UnixDomainSocketWithAbstractNamespaceFactory( | 34 new net::UnixDomainSocketWithAbstractNamespaceFactory( |
36 kSocketName, | 35 kSocketName, |
37 base::Bind(&CanUserConnectToDevTools)), | 36 base::Bind(&CanUserConnectToDevTools)), |
38 StringPrintf(kFrontEndURL, kFrontendVersion), | 37 StringPrintf(kFrontEndURL, kFrontendVersion), |
39 context_getter, | 38 context_getter, |
40 this); | 39 this); |
41 } | 40 } |
(...skipping 14 matching lines...) Expand all Loading... |
56 | 55 |
57 bool ShellDevToolsDelegate::BundlesFrontendResources() { | 56 bool ShellDevToolsDelegate::BundlesFrontendResources() { |
58 return false; | 57 return false; |
59 } | 58 } |
60 | 59 |
61 std::string ShellDevToolsDelegate::GetFrontendResourcesBaseURL() { | 60 std::string ShellDevToolsDelegate::GetFrontendResourcesBaseURL() { |
62 return ""; | 61 return ""; |
63 } | 62 } |
64 | 63 |
65 } // namespace content | 64 } // namespace content |
OLD | NEW |