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

Side by Side Diff: content/browser/devtools/protocol/target_handler.h

Issue 2956423003: [DevTools] Provide Target.targetInfoChanged notification (Closed)
Patch Set: Created 3 years, 5 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_PROTOCOL_TARGET_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TARGET_HANDLER_H_
6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TARGET_HANDLER_H_ 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TARGET_HANDLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 private: 72 private:
73 using HostsMap = std::map<std::string, scoped_refptr<DevToolsAgentHost>>; 73 using HostsMap = std::map<std::string, scoped_refptr<DevToolsAgentHost>>;
74 using RawHostsMap = std::map<std::string, DevToolsAgentHost*>; 74 using RawHostsMap = std::map<std::string, DevToolsAgentHost*>;
75 75
76 void UpdateServiceWorkers(bool waiting_for_debugger); 76 void UpdateServiceWorkers(bool waiting_for_debugger);
77 void ReattachTargetsOfType(const HostsMap& new_hosts, 77 void ReattachTargetsOfType(const HostsMap& new_hosts,
78 const std::string& type, 78 const std::string& type,
79 bool waiting_for_debugger); 79 bool waiting_for_debugger);
80 void TargetCreatedInternal(DevToolsAgentHost* host); 80 void TargetCreatedInternal(DevToolsAgentHost* host);
81 void TargetInfoChangedInternal(DevToolsAgentHost* host);
81 void TargetDestroyedInternal(DevToolsAgentHost* host); 82 void TargetDestroyedInternal(DevToolsAgentHost* host);
82 bool AttachToTargetInternal(DevToolsAgentHost* host, 83 bool AttachToTargetInternal(DevToolsAgentHost* host,
83 bool waiting_for_debugger); 84 bool waiting_for_debugger);
84 void DetachFromTargetInternal(DevToolsAgentHost* host); 85 void DetachFromTargetInternal(DevToolsAgentHost* host);
85 86
86 // ServiceWorkerDevToolsManager::Observer implementation. 87 // ServiceWorkerDevToolsManager::Observer implementation.
87 void WorkerCreated(ServiceWorkerDevToolsAgentHost* host) override; 88 void WorkerCreated(ServiceWorkerDevToolsAgentHost* host) override;
88 void WorkerReadyForInspection(ServiceWorkerDevToolsAgentHost* host) override; 89 void WorkerReadyForInspection(ServiceWorkerDevToolsAgentHost* host) override;
89 void WorkerVersionInstalled(ServiceWorkerDevToolsAgentHost* host) override; 90 void WorkerVersionInstalled(ServiceWorkerDevToolsAgentHost* host) override;
90 void WorkerVersionDoomed(ServiceWorkerDevToolsAgentHost* host) override; 91 void WorkerVersionDoomed(ServiceWorkerDevToolsAgentHost* host) override;
(...skipping 22 matching lines...) Expand all
113 std::set<GURL> frame_urls_; 114 std::set<GURL> frame_urls_;
114 RawHostsMap reported_hosts_; 115 RawHostsMap reported_hosts_;
115 116
116 DISALLOW_COPY_AND_ASSIGN(TargetHandler); 117 DISALLOW_COPY_AND_ASSIGN(TargetHandler);
117 }; 118 };
118 119
119 } // namespace protocol 120 } // namespace protocol
120 } // namespace content 121 } // namespace content
121 122
122 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TARGET_HANDLER_H_ 123 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TARGET_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698