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

Unified Diff: content/renderer/devtools_agent.h

Issue 11630004: DevTools: rename debugger/ to devtools/, move DevTools files into content/renderer/devtools. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: For landing 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
« no previous file with comments | « content/renderer/devtools/devtools_client.cc ('k') | content/renderer/devtools_agent.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/devtools_agent.h
diff --git a/content/renderer/devtools_agent.h b/content/renderer/devtools_agent.h
deleted file mode 100644
index 219a767d9729682383254b0dc9745d224fd10aa9..0000000000000000000000000000000000000000
--- a/content/renderer/devtools_agent.h
+++ /dev/null
@@ -1,73 +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_RENDERER_DEVTOOLS_AGENT_H_
-#define CONTENT_RENDERER_DEVTOOLS_AGENT_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "content/public/common/console_message_level.h"
-#include "content/public/renderer/render_view_observer.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgentClient.h"
-
-namespace WebKit {
-class WebDevToolsAgent;
-}
-
-namespace content {
-class RenderViewImpl;
-
-// DevToolsAgent belongs to the inspectable RenderView and provides Glue's
-// agents with the communication capabilities. All messages from/to Glue's
-// agents infrastructure are flowing through this communication agent.
-// There is a corresponding DevToolsClient object on the client side.
-class DevToolsAgent : public RenderViewObserver,
- public WebKit::WebDevToolsAgentClient {
- public:
- explicit DevToolsAgent(RenderViewImpl* render_view);
- virtual ~DevToolsAgent();
-
- // Returns agent instance for its host id.
- static DevToolsAgent* FromHostId(int host_id);
-
- WebKit::WebDevToolsAgent* GetWebAgent();
-
- bool IsAttached();
-
- private:
- friend class DevToolsAgentFilter;
-
- // RenderView::Observer implementation.
- virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
-
- // WebDevToolsAgentClient implementation
- virtual void sendMessageToInspectorFrontend(const WebKit::WebString& data);
-
- virtual int hostIdentifier();
- virtual void saveAgentRuntimeState(const WebKit::WebString& state);
- virtual WebKit::WebDevToolsAgentClient::WebKitClientMessageLoop*
- createClientMessageLoop();
- virtual void clearBrowserCache();
- virtual void clearBrowserCookies();
- virtual void visitAllocatedObjects(AllocatedObjectVisitor* visitor);
-
- void OnAttach();
- void OnReattach(const std::string& agent_state);
- void OnDetach();
- void OnDispatchOnInspectorBackend(const std::string& message);
- void OnInspectElement(int x, int y);
- void OnAddMessageToConsole(ConsoleMessageLevel level,
- const std::string& message);
- void ContinueProgram();
- void OnSetupDevToolsClient();
-
- bool is_attached_;
-
- DISALLOW_COPY_AND_ASSIGN(DevToolsAgent);
-};
-
-} // namespace content
-
-#endif // CONTENT_RENDERER_DEVTOOLS_AGENT_H_
« no previous file with comments | « content/renderer/devtools/devtools_client.cc ('k') | content/renderer/devtools_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698