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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 void IndexPath(int index_request_id, | 123 void IndexPath(int index_request_id, |
124 const std::string& file_system_path) override; | 124 const std::string& file_system_path) override; |
125 void StopIndexing(int index_request_id) override; | 125 void StopIndexing(int index_request_id) override; |
126 void SearchInPath(int search_request_id, | 126 void SearchInPath(int search_request_id, |
127 const std::string& file_system_path, | 127 const std::string& file_system_path, |
128 const std::string& query) override; | 128 const std::string& query) override; |
129 void SetWhitelistedShortcuts(const std::string& message) override; | 129 void SetWhitelistedShortcuts(const std::string& message) override; |
130 void ZoomIn() override; | 130 void ZoomIn() override; |
131 void ZoomOut() override; | 131 void ZoomOut() override; |
132 void ResetZoom() override; | 132 void ResetZoom() override; |
133 void OpenUrlOnRemoteDeviceAndInspect(const std::string& browser_id, | |
134 const std::string& url) override; | |
135 void SetDeviceCountUpdatesEnabled(bool enabled) override; | |
136 void SetDevicesUpdatesEnabled(bool enabled) override; | 133 void SetDevicesUpdatesEnabled(bool enabled) override; |
137 void SendMessageToBrowser(const std::string& message) override; | 134 void SendMessageToBrowser(const std::string& message) override; |
138 void RecordActionUMA(const std::string& name, int action) override; | 135 void RecordActionUMA(const std::string& name, int action) override; |
139 void SendJsonRequest(const DispatchCallback& callback, | 136 void SendJsonRequest(const DispatchCallback& callback, |
140 const std::string& browser_id, | 137 const std::string& browser_id, |
141 const std::string& url) override; | 138 const std::string& url) override; |
142 | 139 |
143 // net::URLFetcherDelegate overrides. | 140 // net::URLFetcherDelegate overrides. |
144 void OnURLFetchComplete(const net::URLFetcher* source) override; | 141 void OnURLFetchComplete(const net::URLFetcher* source) override; |
145 | 142 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 content::NotificationRegistrar registrar_; | 197 content::NotificationRegistrar registrar_; |
201 scoped_ptr<content::DevToolsFrontendHost> frontend_host_; | 198 scoped_ptr<content::DevToolsFrontendHost> frontend_host_; |
202 scoped_ptr<DevToolsFileHelper> file_helper_; | 199 scoped_ptr<DevToolsFileHelper> file_helper_; |
203 scoped_refptr<DevToolsFileSystemIndexer> file_system_indexer_; | 200 scoped_refptr<DevToolsFileSystemIndexer> file_system_indexer_; |
204 typedef std::map< | 201 typedef std::map< |
205 int, | 202 int, |
206 scoped_refptr<DevToolsFileSystemIndexer::FileSystemIndexingJob> > | 203 scoped_refptr<DevToolsFileSystemIndexer::FileSystemIndexingJob> > |
207 IndexingJobsMap; | 204 IndexingJobsMap; |
208 IndexingJobsMap indexing_jobs_; | 205 IndexingJobsMap indexing_jobs_; |
209 | 206 |
210 bool device_count_updates_enabled_; | |
211 bool devices_updates_enabled_; | 207 bool devices_updates_enabled_; |
212 bool frontend_loaded_; | 208 bool frontend_loaded_; |
213 scoped_ptr<DevToolsTargetsUIHandler> remote_targets_handler_; | 209 scoped_ptr<DevToolsTargetsUIHandler> remote_targets_handler_; |
214 scoped_ptr<DevToolsEmbedderMessageDispatcher> embedder_message_dispatcher_; | 210 scoped_ptr<DevToolsEmbedderMessageDispatcher> embedder_message_dispatcher_; |
215 GURL url_; | 211 GURL url_; |
216 using PendingRequestsMap = std::map<const net::URLFetcher*, DispatchCallback>; | 212 using PendingRequestsMap = std::map<const net::URLFetcher*, DispatchCallback>; |
217 PendingRequestsMap pending_requests_; | 213 PendingRequestsMap pending_requests_; |
218 base::WeakPtrFactory<DevToolsUIBindings> weak_factory_; | 214 base::WeakPtrFactory<DevToolsUIBindings> weak_factory_; |
219 | 215 |
220 DISALLOW_COPY_AND_ASSIGN(DevToolsUIBindings); | 216 DISALLOW_COPY_AND_ASSIGN(DevToolsUIBindings); |
221 }; | 217 }; |
222 | 218 |
223 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_UI_BINDINGS_H_ | 219 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_UI_BINDINGS_H_ |
OLD | NEW |