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

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

Issue 661423002: DevTools: Clean-up service/shared workers code after switching to main thread debugging. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed some more code Created 6 years, 2 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 // IPCDevToolsAgentHost implementation. 38 // IPCDevToolsAgentHost implementation.
39 virtual void SendMessageToAgent(IPC::Message* message) override; 39 virtual void SendMessageToAgent(IPC::Message* message) override;
40 virtual void Attach() override; 40 virtual void Attach() override;
41 virtual void OnClientAttached() override {} 41 virtual void OnClientAttached() override {}
42 virtual void OnClientDetached() override; 42 virtual void OnClientDetached() override;
43 43
44 // IPC::Listener implementation. 44 // IPC::Listener implementation.
45 virtual bool OnMessageReceived(const IPC::Message& msg) override; 45 virtual bool OnMessageReceived(const IPC::Message& msg) override;
46 46
47 void WorkerReadyForInspection(); 47 void WorkerReadyForInspection();
48 void WorkerContextStarted();
49 void WorkerRestarted(WorkerId worker_id); 48 void WorkerRestarted(WorkerId worker_id);
50 void WorkerDestroyed(); 49 void WorkerDestroyed();
51 bool Matches(const SharedWorkerInstance& other); 50 bool Matches(const SharedWorkerInstance& other);
52 bool Matches(const ServiceWorkerIdentifier& other); 51 bool Matches(const ServiceWorkerIdentifier& other);
53 bool IsTerminated(); 52 bool IsTerminated();
54 53
55 private: 54 private:
56 friend class EmbeddedWorkerDevToolsManagerTest; 55 friend class EmbeddedWorkerDevToolsManagerTest;
57 56
58 virtual ~EmbeddedWorkerDevToolsAgentHost(); 57 virtual ~EmbeddedWorkerDevToolsAgentHost();
(...skipping 17 matching lines...) Expand all
76 scoped_ptr<ServiceWorkerIdentifier> service_worker_; 75 scoped_ptr<ServiceWorkerIdentifier> service_worker_;
77 WorkerState state_; 76 WorkerState state_;
78 WorkerId worker_id_; 77 WorkerId worker_id_;
79 std::string saved_agent_state_; 78 std::string saved_agent_state_;
80 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerDevToolsAgentHost); 79 DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerDevToolsAgentHost);
81 }; 80 };
82 81
83 } // namespace content 82 } // namespace content
84 83
85 #endif // CONTENT_BROWSER_DEVTOOLS_EMBEDDED_WORKER_DEVTOOLS_AGENT_HOST_H_ 84 #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