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

Unified Diff: content/renderer/worker_devtools_agent_proxy.h

Issue 6990059: DevTools: devtools message plumbing between worker and page processes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments addressed, WebWorkerBase::DevToolsDelegate removed Created 9 years, 7 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
« no previous file with comments | « content/renderer/webworker_proxy.cc ('k') | content/renderer/worker_devtools_agent_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/worker_devtools_agent_proxy.h
diff --git a/content/renderer/worker_devtools_agent_proxy.h b/content/renderer/worker_devtools_agent_proxy.h
new file mode 100644
index 0000000000000000000000000000000000000000..72c8823de0da664c1f131e3bc473d0246193e703
--- /dev/null
+++ b/content/renderer/worker_devtools_agent_proxy.h
@@ -0,0 +1,51 @@
+// 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_RENDERER_WORKER_DEVTOOLS_AGENT_PROXY_H_
+#define CONTENT_RENDERER_WORKER_DEVTOOLS_AGENT_PROXY_H_
+#pragma once
+
+#include <string>
+
+#include "base/basictypes.h"
+
+namespace IPC {
+class Message;
+}
+
+namespace WebKit {
+class WebWorkerClient;
+}
+
+class WebWorkerBase;
+
+class WorkerDevToolsAgentProxy {
+ public:
+ WorkerDevToolsAgentProxy(WebWorkerBase*,
+ int route_id,
+ WebKit::WebWorkerClient*);
+ ~WorkerDevToolsAgentProxy();
+
+ void WorkerProxyDestroyed();
+ void SetRouteId(int route_id);
+ bool OnMessageReceived(const IPC::Message& message);
+
+ void AttachDevTools();
+ void DetachDevTools();
+ void SendDevToolsMessage(const std::string&);
+
+ private:
+
jam 2011/05/26 18:28:53 nit: extra line
yurys 2011/05/27 07:45:43 Done.
+ void OnDispatchMessageFromWorker(const std::string& message);
+
+ void Send(IPC::Message* message);
+
+ int route_id_;
+ WebWorkerBase* webworker_;
+ WebKit::WebWorkerClient* webworker_client_;
+
+ DISALLOW_COPY_AND_ASSIGN(WorkerDevToolsAgentProxy);
+};
+
+#endif // CONTENT_RENDERER_WORKER_DEVTOOLS_AGENT_PROXY_H_
« no previous file with comments | « content/renderer/webworker_proxy.cc ('k') | content/renderer/worker_devtools_agent_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698