| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 Response SetAttachToFrames(bool value); | 42 Response SetAttachToFrames(bool value); |
| 43 Response SetRemoteLocations( | 43 Response SetRemoteLocations( |
| 44 const std::vector<std::unique_ptr<base::DictionaryValue>>&); | 44 const std::vector<std::unique_ptr<base::DictionaryValue>>&); |
| 45 Response AttachToTarget(const std::string& target_id, bool* out_success); | 45 Response AttachToTarget(const std::string& target_id, bool* out_success); |
| 46 Response DetachFromTarget(const std::string& target_id); | 46 Response DetachFromTarget(const std::string& target_id); |
| 47 Response SendMessageToTarget(const std::string& target_id, | 47 Response SendMessageToTarget(const std::string& target_id, |
| 48 const std::string& message); | 48 const std::string& message); |
| 49 Response GetTargetInfo(const std::string& target_id, | 49 Response GetTargetInfo(const std::string& target_id, |
| 50 scoped_refptr<TargetInfo>* target_info); | 50 scoped_refptr<TargetInfo>* target_info); |
| 51 Response ActivateTarget(const std::string& target_id); | 51 Response ActivateTarget(const std::string& target_id); |
| 52 Response CloseTarget(const std::string& target_id, bool* out_success); |
| 53 Response CreateBrowserContext(std::string* out_context_id); |
| 54 Response DisposeBrowserContext(const std::string& context_id, |
| 55 bool* out_success); |
| 56 Response CreateTarget(const std::string& url, |
| 57 const int* width, |
| 58 const int* height, |
| 59 const std::string* context_id, |
| 60 std::string* out_target_id); |
| 61 Response GetTargets(std::vector<scoped_refptr<TargetInfo>>* target_infos); |
| 52 | 62 |
| 53 private: | 63 private: |
| 54 using HostsMap = std::map<std::string, scoped_refptr<DevToolsAgentHost>>; | 64 using HostsMap = std::map<std::string, scoped_refptr<DevToolsAgentHost>>; |
| 55 using RawHostsMap = std::map<std::string, DevToolsAgentHost*>; | 65 using RawHostsMap = std::map<std::string, DevToolsAgentHost*>; |
| 56 | 66 |
| 57 void UpdateServiceWorkers(bool waiting_for_debugger); | 67 void UpdateServiceWorkers(bool waiting_for_debugger); |
| 58 void ReattachTargetsOfType(const HostsMap& new_hosts, | 68 void ReattachTargetsOfType(const HostsMap& new_hosts, |
| 59 const std::string& type, | 69 const std::string& type, |
| 60 bool waiting_for_debugger); | 70 bool waiting_for_debugger); |
| 61 void TargetCreatedInternal(DevToolsAgentHost* host); | 71 void TargetCreatedInternal(DevToolsAgentHost* host); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 RawHostsMap reported_hosts_; | 103 RawHostsMap reported_hosts_; |
| 94 | 104 |
| 95 DISALLOW_COPY_AND_ASSIGN(TargetHandler); | 105 DISALLOW_COPY_AND_ASSIGN(TargetHandler); |
| 96 }; | 106 }; |
| 97 | 107 |
| 98 } // namespace target | 108 } // namespace target |
| 99 } // namespace devtools | 109 } // namespace devtools |
| 100 } // namespace content | 110 } // namespace content |
| 101 | 111 |
| 102 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TARGET_HANDLER_H_ | 112 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TARGET_HANDLER_H_ |
| OLD | NEW |