| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 SetDevicesUpdatesEnabled(bool enabled) override; | 133 void SetDevicesUpdatesEnabled(bool enabled) override; |
| 134 void SendMessageToBrowser(const std::string& message) override; | 134 void SendMessageToBrowser(const std::string& message) override; |
| 135 void RecordActionUMA(const std::string& name, int action) override; | 135 void RecordActionUMA(const std::string& name, int action) override; |
| 136 void RecordUMA(const std::string& name, int action, int bucket_size) override; |
| 136 void SendJsonRequest(const DispatchCallback& callback, | 137 void SendJsonRequest(const DispatchCallback& callback, |
| 137 const std::string& browser_id, | 138 const std::string& browser_id, |
| 138 const std::string& url) override; | 139 const std::string& url) override; |
| 139 | 140 |
| 140 // net::URLFetcherDelegate overrides. | 141 // net::URLFetcherDelegate overrides. |
| 141 void OnURLFetchComplete(const net::URLFetcher* source) override; | 142 void OnURLFetchComplete(const net::URLFetcher* source) override; |
| 142 | 143 |
| 143 void EnableRemoteDeviceCounter(bool enable); | 144 void EnableRemoteDeviceCounter(bool enable); |
| 144 | 145 |
| 145 void SendMessageAck(int request_id, | 146 void SendMessageAck(int request_id, |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 scoped_ptr<DevToolsEmbedderMessageDispatcher> embedder_message_dispatcher_; | 211 scoped_ptr<DevToolsEmbedderMessageDispatcher> embedder_message_dispatcher_; |
| 211 GURL url_; | 212 GURL url_; |
| 212 using PendingRequestsMap = std::map<const net::URLFetcher*, DispatchCallback>; | 213 using PendingRequestsMap = std::map<const net::URLFetcher*, DispatchCallback>; |
| 213 PendingRequestsMap pending_requests_; | 214 PendingRequestsMap pending_requests_; |
| 214 base::WeakPtrFactory<DevToolsUIBindings> weak_factory_; | 215 base::WeakPtrFactory<DevToolsUIBindings> weak_factory_; |
| 215 | 216 |
| 216 DISALLOW_COPY_AND_ASSIGN(DevToolsUIBindings); | 217 DISALLOW_COPY_AND_ASSIGN(DevToolsUIBindings); |
| 217 }; | 218 }; |
| 218 | 219 |
| 219 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_UI_BINDINGS_H_ | 220 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_UI_BINDINGS_H_ |
| OLD | NEW |