OLD | NEW |
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 CHROME_BROWSER_DEVTOOLS_DEVTOOLS_UI_BINDINGS_H_ | 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_UI_BINDINGS_H_ |
6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_UI_BINDINGS_H_ | 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_UI_BINDINGS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 void SendMessageAck(int request_id, | 156 void SendMessageAck(int request_id, |
157 const base::Value* arg1); | 157 const base::Value* arg1); |
158 | 158 |
159 // DevToolsAndroidBridge::DeviceCountListener override: | 159 // DevToolsAndroidBridge::DeviceCountListener override: |
160 void DeviceCountChanged(int count) override; | 160 void DeviceCountChanged(int count) override; |
161 | 161 |
162 // Forwards discovered devices to frontend. | 162 // Forwards discovered devices to frontend. |
163 virtual void DevicesUpdated(const std::string& source, | 163 virtual void DevicesUpdated(const std::string& source, |
164 const base::ListValue& targets); | 164 const base::ListValue& targets); |
165 | 165 |
| 166 void DocumentAvailableInMainFrame(); |
166 void DocumentOnLoadCompletedInMainFrame(); | 167 void DocumentOnLoadCompletedInMainFrame(); |
167 void DidNavigateMainFrame(); | 168 void DidNavigateMainFrame(); |
168 void FrontendLoaded(); | 169 void FrontendLoaded(); |
169 | 170 |
170 void JsonReceived(const DispatchCallback& callback, | 171 void JsonReceived(const DispatchCallback& callback, |
171 int result, | 172 int result, |
172 const std::string& message); | 173 const std::string& message); |
173 void DevicesDiscoveryConfigUpdated(); | 174 void DevicesDiscoveryConfigUpdated(); |
174 void SendPortForwardingStatus(const base::Value& status); | 175 void SendPortForwardingStatus(const base::Value& status); |
175 | 176 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 scoped_ptr<DevToolsFileHelper> file_helper_; | 213 scoped_ptr<DevToolsFileHelper> file_helper_; |
213 scoped_refptr<DevToolsFileSystemIndexer> file_system_indexer_; | 214 scoped_refptr<DevToolsFileSystemIndexer> file_system_indexer_; |
214 typedef std::map< | 215 typedef std::map< |
215 int, | 216 int, |
216 scoped_refptr<DevToolsFileSystemIndexer::FileSystemIndexingJob> > | 217 scoped_refptr<DevToolsFileSystemIndexer::FileSystemIndexingJob> > |
217 IndexingJobsMap; | 218 IndexingJobsMap; |
218 IndexingJobsMap indexing_jobs_; | 219 IndexingJobsMap indexing_jobs_; |
219 | 220 |
220 bool devices_updates_enabled_; | 221 bool devices_updates_enabled_; |
221 bool frontend_loaded_; | 222 bool frontend_loaded_; |
| 223 bool reattaching_; |
222 scoped_ptr<DevToolsTargetsUIHandler> remote_targets_handler_; | 224 scoped_ptr<DevToolsTargetsUIHandler> remote_targets_handler_; |
223 scoped_ptr<PortForwardingStatusSerializer> port_status_serializer_; | 225 scoped_ptr<PortForwardingStatusSerializer> port_status_serializer_; |
224 PrefChangeRegistrar pref_change_registrar_; | 226 PrefChangeRegistrar pref_change_registrar_; |
225 scoped_ptr<DevToolsEmbedderMessageDispatcher> embedder_message_dispatcher_; | 227 scoped_ptr<DevToolsEmbedderMessageDispatcher> embedder_message_dispatcher_; |
226 GURL url_; | 228 GURL url_; |
227 using PendingRequestsMap = std::map<const net::URLFetcher*, DispatchCallback>; | 229 using PendingRequestsMap = std::map<const net::URLFetcher*, DispatchCallback>; |
228 PendingRequestsMap pending_requests_; | 230 PendingRequestsMap pending_requests_; |
229 base::WeakPtrFactory<DevToolsUIBindings> weak_factory_; | 231 base::WeakPtrFactory<DevToolsUIBindings> weak_factory_; |
230 | 232 |
231 DISALLOW_COPY_AND_ASSIGN(DevToolsUIBindings); | 233 DISALLOW_COPY_AND_ASSIGN(DevToolsUIBindings); |
232 }; | 234 }; |
233 | 235 |
234 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_UI_BINDINGS_H_ | 236 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_UI_BINDINGS_H_ |
OLD | NEW |