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

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

Issue 8549022: Define DevTools content API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments addressed 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 #ifndef CONTENT_BROWSER_DEBUGGER_DEVTOOLS_HTTP_PROTOCOL_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_DEBUGGER_DEVTOOLS_HTTP_PROTOCOL_HANDLER_H_
6 #define CONTENT_BROWSER_DEBUGGER_DEVTOOLS_HTTP_PROTOCOL_HANDLER_H_ 6 #define CONTENT_BROWSER_DEBUGGER_DEVTOOLS_HTTP_PROTOCOL_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "content/common/content_export.h" 16 #include "content/common/content_export.h"
17 #include "net/server/http_server.h" 17 #include "net/server/http_server.h"
18 #include "net/url_request/url_request.h" 18 #include "net/url_request/url_request.h"
19 19
20 class TabContents;
21
22 namespace content {
20 class DevToolsClientHost; 23 class DevToolsClientHost;
21 class TabContents; 24 }
22 25
23 namespace net { 26 namespace net {
24 class URLRequestContext; 27 class URLRequestContext;
25 } 28 }
26 29
27 class DevToolsHttpProtocolHandler 30 class DevToolsHttpProtocolHandler
28 : public net::HttpServer::Delegate, 31 : public net::HttpServer::Delegate,
29 public net::URLRequest::Delegate, 32 public net::URLRequest::Delegate,
30 public base::RefCountedThreadSafe<DevToolsHttpProtocolHandler> { 33 public base::RefCountedThreadSafe<DevToolsHttpProtocolHandler> {
31 public: 34 public:
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 scoped_refptr<net::HttpServer> server_; 116 scoped_refptr<net::HttpServer> server_;
114 typedef std::map<net::URLRequest*, int> 117 typedef std::map<net::URLRequest*, int>
115 RequestToSocketMap; 118 RequestToSocketMap;
116 RequestToSocketMap request_to_connection_io_; 119 RequestToSocketMap request_to_connection_io_;
117 typedef std::map<int, std::set<net::URLRequest*> > 120 typedef std::map<int, std::set<net::URLRequest*> >
118 ConnectionToRequestsMap; 121 ConnectionToRequestsMap;
119 ConnectionToRequestsMap connection_to_requests_io_; 122 ConnectionToRequestsMap connection_to_requests_io_;
120 typedef std::map<net::URLRequest*, scoped_refptr<net::IOBuffer> > 123 typedef std::map<net::URLRequest*, scoped_refptr<net::IOBuffer> >
121 BuffersMap; 124 BuffersMap;
122 BuffersMap request_to_buffer_io_; 125 BuffersMap request_to_buffer_io_;
123 typedef std::map<int, DevToolsClientHost*> 126 typedef std::map<int, content::DevToolsClientHost*>
124 ConnectionToClientHostMap; 127 ConnectionToClientHostMap;
125 ConnectionToClientHostMap connection_to_client_host_ui_; 128 ConnectionToClientHostMap connection_to_client_host_ui_;
126 scoped_ptr<Delegate> delegate_; 129 scoped_ptr<Delegate> delegate_;
127 DISALLOW_COPY_AND_ASSIGN(DevToolsHttpProtocolHandler); 130 DISALLOW_COPY_AND_ASSIGN(DevToolsHttpProtocolHandler);
128 }; 131 };
129 132
130 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_HTTP_PROTOCOL_HANDLER_H_ 133 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_HTTP_PROTOCOL_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698