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

Side by Side Diff: content/browser/debugger/devtools_http_protocol_handler.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/debugger/devtools_http_protocol_handler.h" 5 #include "content/browser/debugger/devtools_http_protocol_handler.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/json/json_writer.h" 10 #include "base/json/json_writer.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/message_loop_proxy.h" 12 #include "base/message_loop_proxy.h"
13 #include "base/string_number_conversions.h" 13 #include "base/string_number_conversions.h"
14 #include "base/stringprintf.h" 14 #include "base/stringprintf.h"
15 #include "base/threading/thread.h" 15 #include "base/threading/thread.h"
16 #include "base/utf_string_conversions.h" 16 #include "base/utf_string_conversions.h"
17 #include "base/values.h" 17 #include "base/values.h"
18 #include "content/browser/debugger/devtools_client_host.h" 18 #include "content/browser/debugger/devtools_client_host.h"
19 #include "content/browser/debugger/devtools_manager.h" 19 #include "content/browser/debugger/devtools_manager.h"
20 #include "content/browser/tab_contents/tab_contents.h" 20 #include "content/browser/tab_contents/tab_contents.h"
21 #include "content/browser/tab_contents/tab_contents_observer.h" 21 #include "content/browser/tab_contents/tab_contents_observer.h"
22 #include "content/common/devtools_messages.h" 22 #include "content/common/devtools_messages.h"
23 #include "content/public/browser/browser_thread.h" 23 #include "content/public/browser/browser_thread.h"
24 #include "googleurl/src/gurl.h" 24 #include "googleurl/src/gurl.h"
25 #include "net/base/escape.h" 25 #include "net/base/escape.h"
26 #include "net/base/io_buffer.h" 26 #include "net/base/io_buffer.h"
27 #include "net/server/http_server_request_info.h" 27 #include "net/server/http_server_request_info.h"
28 #include "net/url_request/url_request_context.h" 28 #include "net/url_request/url_request_context.h"
29 29
30 using content::BrowserThread;
31
30 const int kBufferSize = 16 * 1024; 32 const int kBufferSize = 16 * 1024;
31 33
32 namespace { 34 namespace {
33 35
34 // An internal implementation of DevToolsClientHost that delegates 36 // An internal implementation of DevToolsClientHost that delegates
35 // messages sent for DevToolsClient to a DebuggerShell instance. 37 // messages sent for DevToolsClient to a DebuggerShell instance.
36 class DevToolsClientHostImpl : public DevToolsClientHost { 38 class DevToolsClientHostImpl : public DevToolsClientHost {
37 public: 39 public:
38 DevToolsClientHostImpl( 40 DevToolsClientHostImpl(
39 net::HttpServer* server, 41 net::HttpServer* server,
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 void DevToolsHttpProtocolHandler::AcceptWebSocket( 545 void DevToolsHttpProtocolHandler::AcceptWebSocket(
544 int connection_id, 546 int connection_id,
545 const net::HttpServerRequestInfo& request) { 547 const net::HttpServerRequestInfo& request) {
546 BrowserThread::PostTask( 548 BrowserThread::PostTask(
547 BrowserThread::IO, FROM_HERE, 549 BrowserThread::IO, FROM_HERE,
548 NewRunnableMethod(server_.get(), 550 NewRunnableMethod(server_.get(),
549 &net::HttpServer::AcceptWebSocket, 551 &net::HttpServer::AcceptWebSocket,
550 connection_id, 552 connection_id,
551 request)); 553 request));
552 } 554 }
OLDNEW
« no previous file with comments | « content/browser/chrome_blob_storage_context.cc ('k') | content/browser/debugger/devtools_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698