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

Unified Diff: content/browser/devtools/devtools_browser_target.h

Issue 11645015: Revert r173891 - "DevTools: rename debugger/ to devtools/, move DevTools files into content/rendere… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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_browser_target.h
diff --git a/content/browser/devtools/devtools_browser_target.h b/content/browser/devtools/devtools_browser_target.h
deleted file mode 100644
index a0a34e3da0e485e50d1486cfc417372e68a91e8c..0000000000000000000000000000000000000000
--- a/content/browser/devtools/devtools_browser_target.h
+++ /dev/null
@@ -1,68 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_BROWSER_TARGET_H_
-#define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_BROWSER_TARGET_H_
-
-#include <map>
-#include <string>
-
-#include "base/basictypes.h"
-
-namespace base {
-
-class DictionaryValue;
-class Value;
-
-} // namespace base
-
-namespace content {
-
-// This class handles the "Browser" target for remote debugging.
-class DevToolsBrowserTarget {
- public:
- class Handler {
- public:
- virtual ~Handler() {}
-
- // Returns the domain name for this handler.
- virtual std::string Domain() = 0;
-
- // |return_value| and |error_message_out| ownership is transferred to the
- // caller.
- virtual base::Value* OnProtocolCommand(
- const std::string& method,
- const base::DictionaryValue* params,
- base::Value** error_message_out) = 0;
- };
-
- explicit DevToolsBrowserTarget(int connection_id);
- ~DevToolsBrowserTarget();
-
- int connection_id() const { return connection_id_; }
-
- // Takes ownership of |handler|.
- void RegisterHandler(Handler* handler);
-
- std::string HandleMessage(const std::string& data);
-
- private:
- const int connection_id_;
-
- typedef std::map<std::string, Handler*> HandlersMap;
- HandlersMap handlers_;
-
- // Takes ownership of |error_object|.
- std::string SerializeErrorResponse(int request_id, base::Value* error_object);
-
- base::Value* CreateErrorObject(int error_code, const std::string& message);
-
- std::string SerializeResponse(int request_id, base::Value* response);
-
- DISALLOW_COPY_AND_ASSIGN(DevToolsBrowserTarget);
-};
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_BROWSER_TARGET_H_
« no previous file with comments | « content/browser/devtools/devtools_agent_host.cc ('k') | content/browser/devtools/devtools_browser_target.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698