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

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

Issue 8549022: Define DevTools content API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: jam's comments addressed 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/debugger/devtools_frontend_message_handler.h
diff --git a/content/browser/debugger/devtools_frontend_message_handler.h b/content/browser/debugger/devtools_frontend_message_handler.h
deleted file mode 100644
index 603ee1006f788ccfbaaa026f5f299777e8c7d54e..0000000000000000000000000000000000000000
--- a/content/browser/debugger/devtools_frontend_message_handler.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright (c) 2011 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_DEBUGGER_DEVTOOLS_FRONTEND_MESSAGE_HANDLER_H_
-#define CONTENT_BROWSER_DEBUGGER_DEVTOOLS_FRONTEND_MESSAGE_HANDLER_H_
-#pragma once
-
-#include "base/basictypes.h"
-#include "content/public/browser/render_view_host_observer.h"
-
-class TabContents;
-
-namespace content {
-
-class DevToolsFrontendWindowDelegate;
-
-// This class handles messages from DevToolsClient and calls corresponding
-// methods on DevToolsFrontendWindowDelegate which is implemented by the
-// embedder. This allows us to avoid exposing DevTools client messages through
-// the content public API.
-class DevToolsFrontendMessageHandler : public RenderViewHostObserver {
- public:
- DevToolsFrontendMessageHandler(TabContents* tab_contents,
- DevToolsFrontendWindowDelegate* delegate);
-
- private:
- virtual ~DevToolsFrontendMessageHandler();
-
- // content::RenderViewHostObserver overrides.
- virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
-
- void ForwardToDevToolsAgent(const IPC::Message& message);
- void OnActivateWindow();
- void OnCloseWindow();
- void OnMoveWindow(int x, int y);
- void OnRequestDockWindow();
- void OnRequestUndockWindow();
- void OnSaveAs(const std::string& file_name,
- const std::string& content);
-
- TabContents* tab_contents_;
- DevToolsFrontendWindowDelegate* delegate_;
- DISALLOW_COPY_AND_ASSIGN(DevToolsFrontendMessageHandler);
-};
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_DEBUGGER_DEVTOOLS_FRONTEND_MESSAGE_HANDLER_H_
« no previous file with comments | « content/browser/debugger/devtools_frontend_host.cc ('k') | content/browser/debugger/devtools_frontend_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698