1 // Copyright 2014 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.
5 #ifndef CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_DEVTOOLS_AGENT_H_
6 #define CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_DEVTOOLS_AGENT_H_
10 #include "base/basictypes.h"
11 #include "ipc/ipc_listener.h"
18 class WebEmbeddedWorker
;
24 class EmbeddedWorkerDevToolsAgent
: public IPC::Listener
{
26 EmbeddedWorkerDevToolsAgent(blink::WebEmbeddedWorker
* webworker
,
28 virtual ~EmbeddedWorkerDevToolsAgent();
30 virtual bool OnMessageReceived(const IPC::Message
& message
) OVERRIDE
;
33 void OnAttach(const std::string
& host_id
);
34 void OnReattach(const std::string
& host_id
, const std::string
& state
);
36 void OnDispatchOnInspectorBackend(const std::string
& message
);
37 void OnResumeWorkerContext();
39 blink::WebEmbeddedWorker
* webworker_
;
42 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerDevToolsAgent
);
45 } // namespace content
47 #endif // CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_DEVTOOLS_AGENT_H_