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

Side by Side 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, 6 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
« no previous file with comments | « content/renderer/webworker_proxy.cc ('k') | content/renderer/worker_devtools_agent_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CONTENT_RENDERER_WORKER_DEVTOOLS_AGENT_PROXY_H_
6 #define CONTENT_RENDERER_WORKER_DEVTOOLS_AGENT_PROXY_H_
7 #pragma once
8
9 #include <string>
10
11 #include "base/basictypes.h"
12
13 namespace IPC {
14 class Message;
15 }
16
17 namespace WebKit {
18 class WebWorkerClient;
19 }
20
21 class WebWorkerBase;
22
23 class WorkerDevToolsAgentProxy {
24 public:
25 WorkerDevToolsAgentProxy(WebWorkerBase*,
26 int route_id,
27 WebKit::WebWorkerClient*);
28 ~WorkerDevToolsAgentProxy();
29
30 void WorkerProxyDestroyed();
31 void SetRouteId(int route_id);
32 bool OnMessageReceived(const IPC::Message& message);
33
34 void AttachDevTools();
35 void DetachDevTools();
36 void SendDevToolsMessage(const std::string&);
37
38 private:
39
jam 2011/05/26 18:28:53 nit: extra line
yurys 2011/05/27 07:45:43 Done.
40 void OnDispatchMessageFromWorker(const std::string& message);
41
42 void Send(IPC::Message* message);
43
44 int route_id_;
45 WebWorkerBase* webworker_;
46 WebKit::WebWorkerClient* webworker_client_;
47
48 DISALLOW_COPY_AND_ASSIGN(WorkerDevToolsAgentProxy);
49 };
50
51 #endif // CONTENT_RENDERER_WORKER_DEVTOOLS_AGENT_PROXY_H_
OLDNEW
« 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