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

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

Issue 470923004: DevTools: DevToolsAgentHost::Close/GetURL for service workers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed crash Created 6 years, 4 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
« no previous file with comments | « no previous file | content/browser/devtools/embedded_worker_devtools_agent_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_DEVTOOLS_EMBEDDED_WORKER_DEVTOOLS_AGENT_HOST_H_ 5 #ifndef CONTENT_BROWSER_DEVTOOLS_EMBEDDED_WORKER_DEVTOOLS_AGENT_HOST_H_
6 #define CONTENT_BROWSER_DEVTOOLS_EMBEDDED_WORKER_DEVTOOLS_AGENT_HOST_H_ 6 #define CONTENT_BROWSER_DEVTOOLS_EMBEDDED_WORKER_DEVTOOLS_AGENT_HOST_H_
7 7
8 #include "content/browser/devtools/embedded_worker_devtools_manager.h" 8 #include "content/browser/devtools/embedded_worker_devtools_manager.h"
9 #include "content/browser/devtools/ipc_devtools_agent_host.h" 9 #include "content/browser/devtools/ipc_devtools_agent_host.h"
10 #include "ipc/ipc_listener.h" 10 #include "ipc/ipc_listener.h"
(...skipping 27 matching lines...) Expand all
38 38
39 // IPC::Listener implementation. 39 // IPC::Listener implementation.
40 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 40 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
41 41
42 void WorkerContextStarted(); 42 void WorkerContextStarted();
43 void WorkerRestarted(WorkerId worker_id); 43 void WorkerRestarted(WorkerId worker_id);
44 void WorkerDestroyed(); 44 void WorkerDestroyed();
45 bool Matches(const SharedWorkerInstance& other); 45 bool Matches(const SharedWorkerInstance& other);
46 bool Matches(const ServiceWorkerIdentifier& other); 46 bool Matches(const ServiceWorkerIdentifier& other);
47 47
48 virtual GURL GetURL();
49 virtual bool Close();
50
48 private: 51 private:
49 friend class EmbeddedWorkerDevToolsManagerTest; 52 friend class EmbeddedWorkerDevToolsManagerTest;
50 53
51 virtual ~EmbeddedWorkerDevToolsAgentHost(); 54 virtual ~EmbeddedWorkerDevToolsAgentHost();
52 55
53 enum WorkerState { 56 enum WorkerState {
54 WORKER_UNINSPECTED, 57 WORKER_UNINSPECTED,
55 WORKER_INSPECTED, 58 WORKER_INSPECTED,
56 WORKER_TERMINATED, 59 WORKER_TERMINATED,
57 WORKER_PAUSED_FOR_DEBUG_ON_START, 60 WORKER_PAUSED_FOR_DEBUG_ON_START,
(...skipping 10 matching lines...) Expand all
68 scoped_ptr<ServiceWorkerIdentifier> service_worker_; 71 scoped_ptr<ServiceWorkerIdentifier> service_worker_;
69 WorkerState state_; 72 WorkerState state_;
70 WorkerId worker_id_; 73 WorkerId worker_id_;
71 std::string saved_agent_state_; 74 std::string saved_agent_state_;
72 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerDevToolsAgentHost); 75 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerDevToolsAgentHost);
73 }; 76 };
74 77
75 } // namespace content 78 } // namespace content
76 79
77 #endif // CONTENT_BROWSER_DEVTOOLS_EMBEDDED_WORKER_DEVTOOLS_AGENT_HOST_H_ 80 #endif // CONTENT_BROWSER_DEVTOOLS_EMBEDDED_WORKER_DEVTOOLS_AGENT_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/devtools/embedded_worker_devtools_agent_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698