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

Unified Diff: content/browser/devtools/devtools_agent_host_impl.cc

Issue 12319114: Extract debugger target enumeration into a separate class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@debugger
Patch Set: Addressed comments Created 7 years, 10 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/devtools/devtools_agent_host_impl.cc
diff --git a/content/browser/devtools/devtools_agent_host_impl.cc b/content/browser/devtools/devtools_agent_host_impl.cc
index 0474103a4232e1c39c790fda2d4acd26b2442466..94e129636401ee78ae6d94e358a82ecbade743b5 100644
--- a/content/browser/devtools/devtools_agent_host_impl.cc
+++ b/content/browser/devtools/devtools_agent_host_impl.cc
@@ -5,17 +5,24 @@
#include "content/browser/devtools/devtools_agent_host_impl.h"
#include "base/basictypes.h"
+#include "base/stringprintf.h"
#include "content/common/devtools_messages.h"
+#include "content/public/browser/devtools_manager.h"
namespace content {
namespace {
static int g_next_agent_host_id = 0;
+
+static std::string GenerateId() {
pfeldman 2013/03/04 11:43:01 Why?
Vladislav Kaznacheev 2013/03/04 14:30:03 Inlined back. On 2013/03/04 11:43:01, pfeldman wro
+ return base::StringPrintf("%d", ++g_next_agent_host_id);
+}
+
} // namespace
DevToolsAgentHostImpl::DevToolsAgentHostImpl()
: close_listener_(NULL),
- id_(++g_next_agent_host_id) {
+ id_(GenerateId()) {
}
void DevToolsAgentHostImpl::Attach() {
@@ -58,6 +65,22 @@ RenderViewHost* DevToolsAgentHostImpl::GetRenderViewHost() {
return NULL;
}
+std::string DevToolsAgentHostImpl::title() {
+ return "";
+}
+
+GURL DevToolsAgentHostImpl::url() {
+ return GURL();
+}
+
+GURL DevToolsAgentHostImpl::thumbnail_url() {
+ return GURL();
+}
+
+GURL DevToolsAgentHostImpl::favicon_url() {
+ return GURL();
+}
+
void DevToolsAgentHostImpl::NotifyCloseListener() {
if (close_listener_) {
scoped_refptr<DevToolsAgentHostImpl> protect(this);

Powered by Google App Engine
This is Rietveld 408576698