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

Side by Side Diff: chrome/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: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_RENDERER_WORKER_DEVTOOLS_AGENT_PROXY_H_
6 #define CHROME_RENDERER_WORKER_DEVTOOLS_AGENT_PROXY_H_
7 #pragma once
8
9 #include <string>
jam 2011/05/24 20:21:31 nit: probably not needed
yurys 2011/05/25 17:28:29 This file has changed, please look at it again.
10
11 #include "base/basictypes.h"
12 #include "content/renderer/webworker_base.h"
13
14 namespace IPC {
15 class Message;
jam 2011/05/24 20:21:31 nit: not needed
16 }
17
18 namespace WebKit {
19 class WebWorkerClient;
20 }
21
22 class WebWorkerBase;
jam 2011/05/24 20:21:31 niht: not needed
23
24 class WorkerDevToolsAgentProxy : public WebWorkerBase::DevToolsDelegate {
25 public:
26 WorkerDevToolsAgentProxy(WebWorkerBase*,
27 int route_id,
28 WebKit::WebWorkerClient*);
29 virtual ~WorkerDevToolsAgentProxy();
30
31 private:
32 // WebWorkerBase::DevToolsDelegate implementation.
33 virtual void WorkerProxyDestroyed();
34 virtual void SetRouteId(int route_id);
35 virtual bool OnMessageReceived(const IPC::Message& message);
36
37 virtual void AttachDevTools();
38 virtual void DetachDevTools();
39 virtual void SendDevToolsMessage(const std::string&);
40
41 void OnDispatchMessageFromWorker(const std::string& message);
42
43 void Send(IPC::Message* message);
44
45 int route_id_;
46 WebWorkerBase* webworker_;
47 WebKit::WebWorkerClient* webworker_client_;
48
49 DISALLOW_COPY_AND_ASSIGN(WorkerDevToolsAgentProxy);
50 };
51
52 #endif // CHROME_RENDERER_WORKER_DEVTOOLS_AGENT_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698