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

Unified Diff: content/browser/debugger/devtools_http_handler_impl.h

Issue 10169043: Allow customization of remote debugger URL targets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/debugger/devtools_http_handler_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/debugger/devtools_http_handler_impl.h
===================================================================
--- content/browser/debugger/devtools_http_handler_impl.h (revision 133927)
+++ content/browser/debugger/devtools_http_handler_impl.h (working copy)
@@ -15,6 +15,7 @@
#include "base/memory/scoped_ptr.h"
#include "content/common/content_export.h"
#include "content/public/browser/devtools_http_handler.h"
+#include "content/public/browser/devtools_http_handler_delegate.h"
#include "net/server/http_server.h"
#include "net/url_request/url_request.h"
@@ -50,6 +51,8 @@
// DevToolsHttpHandler implementation.
virtual void Stop() OVERRIDE;
+ virtual void SetRenderViewHostBinding(
+ RenderViewHostBinding* binding) OVERRIDE;
// net::HttpServer::Delegate implementation.
virtual void OnHttpRequest(int connection_id,
@@ -89,9 +92,6 @@
const std::string& message);
void AcceptWebSocket(int connection_id,
const net::HttpServerRequestInfo& request);
- size_t BindRenderViewHost(RenderViewHost* rvh);
- RenderViewHost* GetBoundRenderViewHost(size_t id);
- void ResetRenderViewHostBinding();
std::string ip_;
int port_;
@@ -111,8 +111,8 @@
ConnectionToClientHostMap connection_to_client_host_ui_;
net::URLRequestContextGetter* request_context_getter_;
scoped_ptr<DevToolsHttpHandlerDelegate> delegate_;
- typedef std::pair<int, int> Target;
- std::vector<Target> targets_;
+ RenderViewHostBinding* binding_;
+ scoped_ptr<RenderViewHostBinding> default_binding_;
DISALLOW_COPY_AND_ASSIGN(DevToolsHttpHandlerImpl);
};
« no previous file with comments | « no previous file | content/browser/debugger/devtools_http_handler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698