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

Unified Diff: content/renderer/devtools_agent_filter.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_agent.cc ('k') | content/renderer/devtools_agent_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/devtools_agent_filter.h
diff --git a/content/renderer/devtools_agent_filter.h b/content/renderer/devtools_agent_filter.h
deleted file mode 100644
index 627f7494f0f6125e3ab9a76e578553e023c8c74f..0000000000000000000000000000000000000000
--- a/content/renderer/devtools_agent_filter.h
+++ /dev/null
@@ -1,48 +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_FILTER_H_
-#define CONTENT_RENDERER_DEVTOOLS_AGENT_FILTER_H_
-
-#include <string>
-
-#include "ipc/ipc_channel_proxy.h"
-
-class MessageLoop;
-struct DevToolsMessageData;
-
-namespace content {
-
-// DevToolsAgentFilter is registered as an IPC filter in order to be able to
-// dispatch messages while on the IO thread. The reason for that is that while
-// debugging, Render thread is being held by the v8 and hence no messages
-// are being dispatched there. While holding the thread in a tight loop,
-// v8 provides thread-safe Api for controlling debugger. In our case v8's Api
-// is being used from this communication agent on the IO thread.
-class DevToolsAgentFilter : public IPC::ChannelProxy::MessageFilter {
- public:
- // There is a single instance of this class instantiated by the RenderThread.
- DevToolsAgentFilter();
-
- static void SendRpcMessage(const DevToolsMessageData& data);
-
- // IPC::ChannelProxy::MessageFilter override. Called on IO thread.
- virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
-
- protected:
- virtual ~DevToolsAgentFilter();
-
- private:
- void OnDispatchOnInspectorBackend(const std::string& message);
-
- bool message_handled_;
- MessageLoop* render_thread_loop_;
- int current_routing_id_;
-
- DISALLOW_COPY_AND_ASSIGN(DevToolsAgentFilter);
-};
-
-} // namespace content
-
-#endif // CONTENT_RENDERER_DEVTOOLS_AGENT_FILTER_H_
« no previous file with comments | « content/renderer/devtools_agent.cc ('k') | content/renderer/devtools_agent_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698