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

Unified Diff: content/worker/worker_devtools_agent.h

Issue 6990059: DevTools: devtools message plumbing between worker and page processes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed extra line 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/worker/webworkerclient_proxy.cc ('k') | content/worker/worker_devtools_agent.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/worker/worker_devtools_agent.h
diff --git a/content/worker/worker_devtools_agent.h b/content/worker/worker_devtools_agent.h
new file mode 100644
index 0000000000000000000000000000000000000000..64dc3c80595091fac9ae526b374051d1b47fff3d
--- /dev/null
+++ b/content/worker/worker_devtools_agent.h
@@ -0,0 +1,44 @@
+// 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_WORKER_WORKER_DEVTOOLS_AGENT_H_
+#define CONTENT_WORKER_WORKER_DEVTOOLS_AGENT_H_
+#pragma once
+
+#include <string>
+
+#include "base/basictypes.h"
+
+namespace IPC {
+class Message;
+}
+
+namespace WebKit {
+class WebString;
+class WebWorker;
+}
+
+class WorkerDevToolsAgent {
+ public:
+ WorkerDevToolsAgent(int route_id, WebKit::WebWorker*);
+ ~WorkerDevToolsAgent();
+
+ bool OnMessageReceived(const IPC::Message& message);
+
+ void SendDevToolsMessage(const WebKit::WebString&);
+
+ private:
+ void OnAttach();
+ void OnDetach();
+ void OnDispatchOnInspectorBackend(const std::string& message);
+
+ bool Send(IPC::Message* message);
+
+ int route_id_;
+ WebKit::WebWorker* webworker_;
+
+ DISALLOW_COPY_AND_ASSIGN(WorkerDevToolsAgent);
+};
+
+#endif // CONTENT_WORKER_WORKER_DEVTOOLS_AGENT_H_
« no previous file with comments | « content/worker/webworkerclient_proxy.cc ('k') | content/worker/worker_devtools_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698