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

Side by Side Diff: content/browser/devtools/service_worker_devtools_agent_host.h

Issue 814513003: Split EmbeddedWorkerDevToolsAgentHost into two for Shared- and ServiceWorker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed horo's comments Created 6 years 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
OLDNEW
(Empty)
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.
4
5 #ifndef CONTENT_BROWSER_DEVTOOLS_SERVICE_WORKER_DEVTOOLS_AGENT_HOST_H_
6 #define CONTENT_BROWSER_DEVTOOLS_SERVICE_WORKER_DEVTOOLS_AGENT_HOST_H_
7
8 #include "content/browser/devtools/embedded_worker_devtools_agent_host.h"
9
10 namespace content {
11
12 class ServiceWorkerDevToolsAgentHost : public EmbeddedWorkerDevToolsAgentHost {
13 public:
14 ServiceWorkerDevToolsAgentHost(WorkerId worker_id,
15 const ServiceWorkerIdentifier& service_worker,
16 bool debug_service_worker_on_start);
17
18 // DevToolsAgentHost override.
19 Type GetType() override;
20 std::string GetTitle() override;
21 GURL GetURL() override;
22 bool Activate() override;
23 bool Close() override;
24
25 // IPCDevToolsAgentHost override.
26 void OnClientAttached() override;
27 void OnClientDetached() override;
28
29 // EmbeddedWorkerDevToolsAgentHost override.
30 bool Matches(const ServiceWorkerIdentifier& other) override;
31
32 private:
33 ~ServiceWorkerDevToolsAgentHost() override;
34 scoped_ptr<ServiceWorkerIdentifier> service_worker_;
35
36 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDevToolsAgentHost);
37 };
38
39 } // namespace content
40
41 #endif // CONTENT_BROWSER_DEVTOOLS_SERVICE_WORKER_DEVTOOLS_AGENT_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698