| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_EMBEDDER_MESSAGE_DISPATCHER_H_ | 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_ |
| 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_ | 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 const std::string& file_system_path) = 0; | 55 const std::string& file_system_path) = 0; |
| 56 virtual void StopIndexing(int index_request_id) = 0; | 56 virtual void StopIndexing(int index_request_id) = 0; |
| 57 virtual void LoadNetworkResource(const DispatchCallback& callback, | 57 virtual void LoadNetworkResource(const DispatchCallback& callback, |
| 58 const std::string& url, | 58 const std::string& url, |
| 59 const std::string& headers, | 59 const std::string& headers, |
| 60 int stream_id) = 0; | 60 int stream_id) = 0; |
| 61 virtual void SearchInPath(int search_request_id, | 61 virtual void SearchInPath(int search_request_id, |
| 62 const std::string& file_system_path, | 62 const std::string& file_system_path, |
| 63 const std::string& query) = 0; | 63 const std::string& query) = 0; |
| 64 virtual void SetWhitelistedShortcuts(const std::string& message) = 0; | 64 virtual void SetWhitelistedShortcuts(const std::string& message) = 0; |
| 65 virtual void SetEyeDropperActive(bool active) = 0; |
| 65 virtual void ShowCertificateViewer(const std::string& cert_chain) = 0; | 66 virtual void ShowCertificateViewer(const std::string& cert_chain) = 0; |
| 66 virtual void ZoomIn() = 0; | 67 virtual void ZoomIn() = 0; |
| 67 virtual void ZoomOut() = 0; | 68 virtual void ZoomOut() = 0; |
| 68 virtual void ResetZoom() = 0; | 69 virtual void ResetZoom() = 0; |
| 69 virtual void SetDevicesUpdatesEnabled(bool enabled) = 0; | 70 virtual void SetDevicesUpdatesEnabled(bool enabled) = 0; |
| 70 virtual void SetDevicesDiscoveryConfig( | 71 virtual void SetDevicesDiscoveryConfig( |
| 71 bool discover_usb_devices, | 72 bool discover_usb_devices, |
| 72 bool port_forwarding_enabled, | 73 bool port_forwarding_enabled, |
| 73 const std::string& port_forwarding_config) = 0; | 74 const std::string& port_forwarding_config) = 0; |
| 74 virtual void PerformActionOnRemotePage(const std::string& page_id, | 75 virtual void PerformActionOnRemotePage(const std::string& page_id, |
| (...skipping 23 matching lines...) Expand all Loading... |
| 98 virtual ~DevToolsEmbedderMessageDispatcher() {} | 99 virtual ~DevToolsEmbedderMessageDispatcher() {} |
| 99 virtual bool Dispatch(const DispatchCallback& callback, | 100 virtual bool Dispatch(const DispatchCallback& callback, |
| 100 const std::string& method, | 101 const std::string& method, |
| 101 const base::ListValue* params) = 0; | 102 const base::ListValue* params) = 0; |
| 102 | 103 |
| 103 static DevToolsEmbedderMessageDispatcher* CreateForDevToolsFrontend( | 104 static DevToolsEmbedderMessageDispatcher* CreateForDevToolsFrontend( |
| 104 Delegate* delegate); | 105 Delegate* delegate); |
| 105 }; | 106 }; |
| 106 | 107 |
| 107 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_ | 108 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_ |
| OLD | NEW |