ozone: evdev: Sync caps lock LED state to evdev
[chromium-blink-merge.git] / content / browser / devtools / service_worker_devtools_agent_host.h
blob5c78d8a8ac578cf11ca4363f258c3ff69c56de5b
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_BROWSER_DEVTOOLS_SERVICE_WORKER_DEVTOOLS_AGENT_HOST_H_
6 #define CONTENT_BROWSER_DEVTOOLS_SERVICE_WORKER_DEVTOOLS_AGENT_HOST_H_
8 #include "content/browser/devtools/service_worker_devtools_manager.h"
9 #include "content/browser/devtools/worker_devtools_agent_host.h"
11 namespace content {
13 class ServiceWorkerDevToolsAgentHost : public WorkerDevToolsAgentHost {
14 public:
15 typedef ServiceWorkerDevToolsManager::ServiceWorkerIdentifier
16 ServiceWorkerIdentifier;
18 ServiceWorkerDevToolsAgentHost(WorkerId worker_id,
19 const ServiceWorkerIdentifier& service_worker,
20 bool debug_service_worker_on_start);
22 // DevToolsAgentHost override.
23 Type GetType() override;
24 std::string GetTitle() override;
25 GURL GetURL() override;
26 bool Activate() override;
27 bool Close() override;
29 // IPCDevToolsAgentHost override.
30 void OnClientAttached() override;
31 void OnClientDetached() override;
33 bool Matches(const ServiceWorkerIdentifier& other);
35 private:
36 ~ServiceWorkerDevToolsAgentHost() override;
37 scoped_ptr<ServiceWorkerIdentifier> service_worker_;
39 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDevToolsAgentHost);
42 } // namespace content
44 #endif // CONTENT_BROWSER_DEVTOOLS_SERVICE_WORKER_DEVTOOLS_AGENT_HOST_H_