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

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

Issue 8587009: Add OVERRIDE to content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
« no previous file with comments | « content/browser/cert_store.h ('k') | content/browser/debugger/devtools_manager.h » ('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) 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>
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 DevToolsHttpProtocolHandler(const std::string& ip, 66 DevToolsHttpProtocolHandler(const std::string& ip,
67 int port, 67 int port,
68 const std::string& frontend_url, 68 const std::string& frontend_url,
69 Delegate* delegate); 69 Delegate* delegate);
70 virtual ~DevToolsHttpProtocolHandler(); 70 virtual ~DevToolsHttpProtocolHandler();
71 void Start(); 71 void Start();
72 72
73 // net::HttpServer::Delegate implementation. 73 // net::HttpServer::Delegate implementation.
74 virtual void OnHttpRequest(int connection_id, 74 virtual void OnHttpRequest(int connection_id,
75 const net::HttpServerRequestInfo& info); 75 const net::HttpServerRequestInfo& info) OVERRIDE;
76 virtual void OnWebSocketRequest(int connection_id, 76 virtual void OnWebSocketRequest(
77 const net::HttpServerRequestInfo& info); 77 int connection_id,
78 const net::HttpServerRequestInfo& info) OVERRIDE;
78 virtual void OnWebSocketMessage(int connection_id, 79 virtual void OnWebSocketMessage(int connection_id,
79 const std::string& data); 80 const std::string& data) OVERRIDE;
80 virtual void OnClose(int connection_id); 81 virtual void OnClose(int connection_id) OVERRIDE;
81 82
82 virtual void OnJsonRequestUI(int connection_id, 83 virtual void OnJsonRequestUI(int connection_id,
83 const net::HttpServerRequestInfo& info); 84 const net::HttpServerRequestInfo& info);
84 virtual void OnWebSocketRequestUI(int connection_id, 85 virtual void OnWebSocketRequestUI(int connection_id,
85 const net::HttpServerRequestInfo& info); 86 const net::HttpServerRequestInfo& info);
86 virtual void OnWebSocketMessageUI(int connection_id, 87 virtual void OnWebSocketMessageUI(int connection_id,
87 const std::string& data); 88 const std::string& data);
88 virtual void OnCloseUI(int connection_id); 89 virtual void OnCloseUI(int connection_id);
89 90
90 // net::URLRequest::Delegate implementation. 91 // net::URLRequest::Delegate implementation.
91 virtual void OnResponseStarted(net::URLRequest* request); 92 virtual void OnResponseStarted(net::URLRequest* request) OVERRIDE;
92 virtual void OnReadCompleted(net::URLRequest* request, int bytes_read); 93 virtual void OnReadCompleted(net::URLRequest* request,
94 int bytes_read) OVERRIDE;
93 95
94 void Init(); 96 void Init();
95 void Teardown(); 97 void Teardown();
96 void Bind(net::URLRequest* request, int connection_id); 98 void Bind(net::URLRequest* request, int connection_id);
97 void RequestCompleted(net::URLRequest* request); 99 void RequestCompleted(net::URLRequest* request);
98 100
99 void Send200(int connection_id, 101 void Send200(int connection_id,
100 const std::string& data, 102 const std::string& data,
101 const std::string& mime_type = "text/html"); 103 const std::string& mime_type = "text/html");
102 void Send404(int connection_id); 104 void Send404(int connection_id);
(...skipping 16 matching lines...) Expand all
119 BuffersMap; 121 BuffersMap;
120 BuffersMap request_to_buffer_io_; 122 BuffersMap request_to_buffer_io_;
121 typedef std::map<int, DevToolsClientHost*> 123 typedef std::map<int, DevToolsClientHost*>
122 ConnectionToClientHostMap; 124 ConnectionToClientHostMap;
123 ConnectionToClientHostMap connection_to_client_host_ui_; 125 ConnectionToClientHostMap connection_to_client_host_ui_;
124 scoped_ptr<Delegate> delegate_; 126 scoped_ptr<Delegate> delegate_;
125 DISALLOW_COPY_AND_ASSIGN(DevToolsHttpProtocolHandler); 127 DISALLOW_COPY_AND_ASSIGN(DevToolsHttpProtocolHandler);
126 }; 128 };
127 129
128 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_HTTP_PROTOCOL_HANDLER_H_ 130 #endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_HTTP_PROTOCOL_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/cert_store.h ('k') | content/browser/debugger/devtools_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698