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

Side by Side Diff: content/browser/devtools/devtools_http_handler_impl.cc

Issue 15702003: Move webkit/user_agent/ into webkit/common (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 | « content/browser/android/content_view_core_impl.cc ('k') | content/content_tests.gypi » ('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 (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/browser/devtools/devtools_http_handler_impl.h" 5 #include "content/browser/devtools/devtools_http_handler_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 29 matching lines...) Expand all
40 #include "content/public/common/url_constants.h" 40 #include "content/public/common/url_constants.h"
41 #include "googleurl/src/gurl.h" 41 #include "googleurl/src/gurl.h"
42 #include "grit/devtools_resources_map.h" 42 #include "grit/devtools_resources_map.h"
43 #include "net/base/escape.h" 43 #include "net/base/escape.h"
44 #include "net/base/io_buffer.h" 44 #include "net/base/io_buffer.h"
45 #include "net/base/ip_endpoint.h" 45 #include "net/base/ip_endpoint.h"
46 #include "net/server/http_server_request_info.h" 46 #include "net/server/http_server_request_info.h"
47 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" 47 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h"
48 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgent.h" 48 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgent.h"
49 #include "ui/base/layout.h" 49 #include "ui/base/layout.h"
50 #include "webkit/user_agent/user_agent.h" 50 #include "webkit/common/user_agent/user_agent.h"
51 #include "webkit/user_agent/user_agent_util.h" 51 #include "webkit/common/user_agent/user_agent_util.h"
52 52
53 namespace content { 53 namespace content {
54 54
55 const int kBufferSize = 16 * 1024; 55 const int kBufferSize = 16 * 1024;
56 56
57 namespace { 57 namespace {
58 58
59 static const char* kDevToolsHandlerThreadName = "Chrome_DevToolsHandlerThread"; 59 static const char* kDevToolsHandlerThreadName = "Chrome_DevToolsHandlerThread";
60 60
61 static const char* kThumbUrlPrefix = "/thumb/"; 61 static const char* kThumbUrlPrefix = "/thumb/";
(...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after
884 host.c_str(), 884 host.c_str(),
885 kPageUrlPrefix, 885 kPageUrlPrefix,
886 id.c_str())); 886 id.c_str()));
887 std::string devtools_frontend_url = GetFrontendURLInternal( 887 std::string devtools_frontend_url = GetFrontendURLInternal(
888 id.c_str(), 888 id.c_str(),
889 host); 889 host);
890 dictionary->SetString(kTargetDevtoolsFrontendUrlField, devtools_frontend_url); 890 dictionary->SetString(kTargetDevtoolsFrontendUrlField, devtools_frontend_url);
891 } 891 }
892 892
893 } // namespace content 893 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/android/content_view_core_impl.cc ('k') | content/content_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698