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

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

Issue 11033046: DevTools: [remote debugging] introduce json/new and json/close for creating and closing the tabs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Used constants for about:blank Created 8 years, 2 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
Index: content/browser/debugger/devtools_http_handler_impl.h
diff --git a/content/browser/debugger/devtools_http_handler_impl.h b/content/browser/debugger/devtools_http_handler_impl.h
index f5c40bb26017152fb3c61924cdcfa3be61562820..0b652061e92223dd8ab299b688b2ebc6f54ed868 100644
--- a/content/browser/debugger/devtools_http_handler_impl.h
+++ b/content/browser/debugger/devtools_http_handler_impl.h
@@ -18,7 +18,9 @@
#include "net/server/http_server.h"
namespace base {
+class DictionaryValue;
class Thread;
+class Value;
}
namespace net {
@@ -68,6 +70,10 @@ class DevToolsHttpHandlerImpl
void OnJsonRequestUI(int connection_id,
const net::HttpServerRequestInfo& info);
+ void OnNewTargetRequestUI(int connection_id,
+ const net::HttpServerRequestInfo& info);
+ void OnCloseTargetRequestUI(int connection_id,
+ const net::HttpServerRequestInfo& info);
void OnThumbnailRequestUI(int connection_id,
const net::HttpServerRequestInfo& info);
void OnWebSocketRequestUI(int connection_id,
@@ -81,6 +87,9 @@ class DevToolsHttpHandlerImpl
void Send200(int connection_id,
const std::string& data,
const std::string& mime_type = "text/html");
+ void SendJson(int connection_id,
+ const net::HttpServerRequestInfo& info,
+ const base::Value& value);
void Send404(int connection_id);
void Send500(int connection_id,
const std::string& message);
@@ -93,6 +102,11 @@ class DevToolsHttpHandlerImpl
std::string GetFrontendURLInternal(const std::string rvh_id,
const std::string& host);
+ PageInfo CreatePageInfo(RenderViewHost* rvh);
+
+ base::DictionaryValue* SerializePageInfo(const PageInfo& page_info,
+ const std::string& host);
+
// The thread used by the devtools handler to run server socket.
scoped_ptr<base::Thread> thread_;
« no previous file with comments | « chrome/browser/debugger/browser_list_tabcontents_provider.cc ('k') | content/browser/debugger/devtools_http_handler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698