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

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

Issue 13812005: net: move socket files from net/base to net/socket (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sort gyp Created 7 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 | 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 "base/bind.h" 8 #include "base/bind.h"
9 #include "base/json/json_writer.h" 9 #include "base/json/json_writer.h"
10 #include "base/stringprintf.h" 10 #include "base/stringprintf.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "content/public/browser/android/devtools_auth.h" 12 #include "content/public/browser/android/devtools_auth.h"
13 #include "content/public/browser/devtools_http_handler.h" 13 #include "content/public/browser/devtools_http_handler.h"
14 #include "content/public/browser/web_contents.h" 14 #include "content/public/browser/web_contents.h"
15 #include "content/public/common/url_constants.h" 15 #include "content/public/common/url_constants.h"
16 #include "net/base/unix_domain_socket_posix.h" 16 #include "net/socket/unix_domain_socket_posix.h"
17 #include "ui/base/resource/resource_bundle.h" 17 #include "ui/base/resource/resource_bundle.h"
18 18
19 namespace { 19 namespace {
20 const char kSocketNameFormat[] = "webview_devtools_remote_%d"; 20 const char kSocketNameFormat[] = "webview_devtools_remote_%d";
21 } 21 }
22 22
23 namespace android_webview { 23 namespace android_webview {
24 24
25 AwDevToolsDelegate::AwDevToolsDelegate(content::BrowserContext* browser_context) 25 AwDevToolsDelegate::AwDevToolsDelegate(content::BrowserContext* browser_context)
26 : browser_context_(browser_context) { 26 : browser_context_(browser_context) {
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 if (!screen_rect.size().IsEmpty()) { 226 if (!screen_rect.size().IsEmpty()) {
227 description.SetInteger("width", screen_rect.width()); 227 description.SetInteger("width", screen_rect.width());
228 description.SetInteger("height", screen_rect.height()); 228 description.SetInteger("height", screen_rect.height());
229 } 229 }
230 std::string json; 230 std::string json;
231 base::JSONWriter::Write(&description, &json); 231 base::JSONWriter::Write(&description, &json);
232 return json; 232 return json;
233 } 233 }
234 234
235 } // namespace android_webview 235 } // 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