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

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: 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 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 CONTENT_RENDERER_WORKER_DEVTOOLS_AGENT_PROXY_H_
6 #define CONTENT_RENDERER_WORKER_DEVTOOLS_AGENT_PROXY_H_
7 #pragma once
8
9 #include "base/basictypes.h"
10 #include "content/renderer/webworker_base.h"
11
12 namespace WebKit {
13 class WebWorkerClient;
14 }
15
16 class WorkerDevToolsAgentProxy : public WebWorkerBase::DevToolsDelegate {
17 public:
18 WorkerDevToolsAgentProxy(WebWorkerBase*,
19 int route_id,
20 WebKit::WebWorkerClient*);
21 virtual ~WorkerDevToolsAgentProxy();
22
23 private:
24 // WebWorkerBase::DevToolsDelegate implementation.
25 virtual void WorkerProxyDestroyed();
26 virtual void SetRouteId(int route_id);
27 virtual bool OnMessageReceived(const IPC::Message& message);
28
29 virtual void AttachDevTools();
30 virtual void DetachDevTools();
31 virtual void SendDevToolsMessage(const std::string&);
32
33 void OnDispatchMessageFromWorker(const std::string& message);
34
35 void Send(IPC::Message* message);
36
37 int route_id_;
38 WebWorkerBase* webworker_;
39 WebKit::WebWorkerClient* webworker_client_;
40
41 DISALLOW_COPY_AND_ASSIGN(WorkerDevToolsAgentProxy);
42 };
43
44 #endif // CONTENT_RENDERER_WORKER_DEVTOOLS_AGENT_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698