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 RecordEnumeratedHistogram(const std::string& name, |
| 137 int sample, |
| 138 int boundary_value) override; |
136 void SendJsonRequest(const DispatchCallback& callback, | 139 void SendJsonRequest(const DispatchCallback& callback, |
137 const std::string& browser_id, | 140 const std::string& browser_id, |
138 const std::string& url) override; | 141 const std::string& url) override; |
139 | 142 |
140 // net::URLFetcherDelegate overrides. | 143 // net::URLFetcherDelegate overrides. |
141 void OnURLFetchComplete(const net::URLFetcher* source) override; | 144 void OnURLFetchComplete(const net::URLFetcher* source) override; |
142 | 145 |
143 void EnableRemoteDeviceCounter(bool enable); | 146 void EnableRemoteDeviceCounter(bool enable); |
144 | 147 |
145 void SendMessageAck(int request_id, | 148 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_; | 213 scoped_ptr<DevToolsEmbedderMessageDispatcher> embedder_message_dispatcher_; |
211 GURL url_; | 214 GURL url_; |
212 using PendingRequestsMap = std::map<const net::URLFetcher*, DispatchCallback>; | 215 using PendingRequestsMap = std::map<const net::URLFetcher*, DispatchCallback>; |
213 PendingRequestsMap pending_requests_; | 216 PendingRequestsMap pending_requests_; |
214 base::WeakPtrFactory<DevToolsUIBindings> weak_factory_; | 217 base::WeakPtrFactory<DevToolsUIBindings> weak_factory_; |
215 | 218 |
216 DISALLOW_COPY_AND_ASSIGN(DevToolsUIBindings); | 219 DISALLOW_COPY_AND_ASSIGN(DevToolsUIBindings); |
217 }; | 220 }; |
218 | 221 |
219 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_UI_BINDINGS_H_ | 222 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_UI_BINDINGS_H_ |
OLD | NEW |