| OLD | NEW |
| 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 22 matching lines...) Expand all Loading... |
| 33 void SetClient(std::unique_ptr<Client> client); | 33 void SetClient(std::unique_ptr<Client> client); |
| 34 void Detached(); | 34 void Detached(); |
| 35 | 35 |
| 36 void UpdateServiceWorkers(); | 36 void UpdateServiceWorkers(); |
| 37 void UpdateFrames(); | 37 void UpdateFrames(); |
| 38 | 38 |
| 39 // Domain implementation. | 39 // Domain implementation. |
| 40 Response SetDiscoverTargets(bool discover); | 40 Response SetDiscoverTargets(bool discover); |
| 41 Response SetAutoAttach(bool auto_attach, bool wait_for_debugger_on_start); | 41 Response SetAutoAttach(bool auto_attach, bool wait_for_debugger_on_start); |
| 42 Response SetAttachToFrames(bool value); | 42 Response SetAttachToFrames(bool value); |
| 43 Response SetRemoteLocations( |
| 44 const std::vector<std::unique_ptr<base::DictionaryValue>>&); |
| 43 Response AttachToTarget(const std::string& target_id, bool* out_success); | 45 Response AttachToTarget(const std::string& target_id, bool* out_success); |
| 44 Response DetachFromTarget(const std::string& target_id); | 46 Response DetachFromTarget(const std::string& target_id); |
| 45 Response SendMessageToTarget(const std::string& target_id, | 47 Response SendMessageToTarget(const std::string& target_id, |
| 46 const std::string& message); | 48 const std::string& message); |
| 47 Response GetTargetInfo(const std::string& target_id, | 49 Response GetTargetInfo(const std::string& target_id, |
| 48 scoped_refptr<TargetInfo>* target_info); | 50 scoped_refptr<TargetInfo>* target_info); |
| 49 Response ActivateTarget(const std::string& target_id); | 51 Response ActivateTarget(const std::string& target_id); |
| 50 | 52 |
| 51 private: | 53 private: |
| 52 using HostsMap = std::map<std::string, scoped_refptr<DevToolsAgentHost>>; | 54 using HostsMap = std::map<std::string, scoped_refptr<DevToolsAgentHost>>; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 RawHostsMap reported_hosts_; | 93 RawHostsMap reported_hosts_; |
| 92 | 94 |
| 93 DISALLOW_COPY_AND_ASSIGN(TargetHandler); | 95 DISALLOW_COPY_AND_ASSIGN(TargetHandler); |
| 94 }; | 96 }; |
| 95 | 97 |
| 96 } // namespace target | 98 } // namespace target |
| 97 } // namespace devtools | 99 } // namespace devtools |
| 98 } // namespace content | 100 } // namespace content |
| 99 | 101 |
| 100 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TARGET_HANDLER_H_ | 102 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TARGET_HANDLER_H_ |
| OLD | NEW |