| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, | 136 void RecordEnumeratedHistogram(const std::string& name, |
| 137 int sample, | 137 int sample, |
| 138 int boundary_value) override; | 138 int boundary_value) override; |
| 139 void SendJsonRequest(const DispatchCallback& callback, | 139 void SendJsonRequest(const DispatchCallback& callback, |
| 140 const std::string& browser_id, | 140 const std::string& browser_id, |
| 141 const std::string& url) override; | 141 const std::string& url) override; |
| 142 void OpenWorkerInspector(const std::string& id) override; |
| 142 | 143 |
| 143 // net::URLFetcherDelegate overrides. | 144 // net::URLFetcherDelegate overrides. |
| 144 void OnURLFetchComplete(const net::URLFetcher* source) override; | 145 void OnURLFetchComplete(const net::URLFetcher* source) override; |
| 145 | 146 |
| 146 void EnableRemoteDeviceCounter(bool enable); | 147 void EnableRemoteDeviceCounter(bool enable); |
| 147 | 148 |
| 148 void SendMessageAck(int request_id, | 149 void SendMessageAck(int request_id, |
| 149 const base::Value* arg1); | 150 const base::Value* arg1); |
| 150 | 151 |
| 151 // DevToolsAndroidBridge::DeviceCountListener override: | 152 // DevToolsAndroidBridge::DeviceCountListener override: |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 scoped_ptr<DevToolsEmbedderMessageDispatcher> embedder_message_dispatcher_; | 214 scoped_ptr<DevToolsEmbedderMessageDispatcher> embedder_message_dispatcher_; |
| 214 GURL url_; | 215 GURL url_; |
| 215 using PendingRequestsMap = std::map<const net::URLFetcher*, DispatchCallback>; | 216 using PendingRequestsMap = std::map<const net::URLFetcher*, DispatchCallback>; |
| 216 PendingRequestsMap pending_requests_; | 217 PendingRequestsMap pending_requests_; |
| 217 base::WeakPtrFactory<DevToolsUIBindings> weak_factory_; | 218 base::WeakPtrFactory<DevToolsUIBindings> weak_factory_; |
| 218 | 219 |
| 219 DISALLOW_COPY_AND_ASSIGN(DevToolsUIBindings); | 220 DISALLOW_COPY_AND_ASSIGN(DevToolsUIBindings); |
| 220 }; | 221 }; |
| 221 | 222 |
| 222 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_UI_BINDINGS_H_ | 223 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_UI_BINDINGS_H_ |
| OLD | NEW |