Upstreaming browser/ui/uikit_ui_util from iOS.
[chromium-blink-merge.git] / content / renderer / service_worker / embedded_worker_devtools_agent.h
blob97c15824fe927e12c7f8ca46fa497f8ac9a4907e
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_
8 #include <string>
10 #include "base/basictypes.h"
11 #include "ipc/ipc_listener.h"
13 namespace IPC {
14 class Message;
17 namespace blink {
18 class WebEmbeddedWorker;
19 class WebString;
22 namespace content {
24 class EmbeddedWorkerDevToolsAgent : public IPC::Listener {
25 public:
26 EmbeddedWorkerDevToolsAgent(blink::WebEmbeddedWorker* webworker,
27 int route_id);
28 ~EmbeddedWorkerDevToolsAgent() override;
30 bool OnMessageReceived(const IPC::Message& message) override;
32 private:
33 void OnAttach(const std::string& host_id);
34 void OnReattach(const std::string& host_id, const std::string& state);
35 void OnDetach();
36 void OnDispatchOnInspectorBackend(const std::string& message);
38 blink::WebEmbeddedWorker* webworker_;
39 int route_id_;
41 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerDevToolsAgent);
44 } // namespace content
46 #endif // CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_DEVTOOLS_AGENT_H_