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

Side by Side 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: Comments addressed, WebWorkerBase::DevToolsDelegate removed 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_WORKER_WORKER_DEVTOOLS_AGENT_H_
6 #define CONTENT_WORKER_WORKER_DEVTOOLS_AGENT_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 WebString;
19 class WebWorker;
20 }
21
22 class WorkerDevToolsAgent {
23 public:
24 WorkerDevToolsAgent(int route_id, WebKit::WebWorker*);
25 ~WorkerDevToolsAgent();
26
27 bool OnMessageReceived(const IPC::Message& message);
28
29 void SendDevToolsMessage(const WebKit::WebString&);
30
31 private:
32 void OnAttach();
33 void OnDetach();
34 void OnDispatchOnInspectorBackend(const std::string& message);
35
36 bool Send(IPC::Message* message);
37
38 int route_id_;
39 WebKit::WebWorker* webworker_;
40
41 DISALLOW_COPY_AND_ASSIGN(WorkerDevToolsAgent);
42 };
43
44 #endif // CONTENT_WORKER_WORKER_DEVTOOLS_AGENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698