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

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: Moved worker devtools login under content/ 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
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..2b5f8842f15213b2f53dfd499aa73e296740f314
--- /dev/null
+++ b/content/worker/worker_devtools_agent.h
@@ -0,0 +1,45 @@
+// 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"
+#include "content/worker/webworkerclient_proxy.h"
+
+namespace IPC {
+class Message;
+}
+
+namespace WebKit {
+class WebWorker;
+}
+
+class WorkerDevToolsAgent : public WebWorkerClientProxy::DevToolsDelegate {
+ public:
+ explicit WorkerDevToolsAgent(int route_id, WebKit::WebWorker*);
+ virtual ~WorkerDevToolsAgent();
+
+ bool OnMessageReceived(const IPC::Message& message);
+
+ private:
+ void OnAttach();
+ void OnDetach();
+ void OnDispatchOnInspectorBackend(const std::string& message);
+
+ bool Send(IPC::Message* message);
+
+ // WebWorkerClientProxy::DevToolsDelegate implementation
+ virtual void SendDevToolsMessage(const WebKit::WebString&);
+
+ int route_id_;
+ WebKit::WebWorker* webworker_;
+
+ DISALLOW_COPY_AND_ASSIGN(WorkerDevToolsAgent);
+};
+
+#endif // CONTENT_WORKER_WORKER_DEVTOOLS_AGENT_H_

Powered by Google App Engine
This is Rietveld 408576698