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