| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 67     virtual void ResetZoom() = 0; | 67     virtual void ResetZoom() = 0; | 
| 68     virtual void SetDevicesUpdatesEnabled(bool enabled) = 0; | 68     virtual void SetDevicesUpdatesEnabled(bool enabled) = 0; | 
| 69     virtual void SendMessageToBrowser(const std::string& message) = 0; | 69     virtual void SendMessageToBrowser(const std::string& message) = 0; | 
| 70     virtual void RecordActionUMA(const std::string& name, int action) = 0; | 70     virtual void RecordActionUMA(const std::string& name, int action) = 0; | 
| 71     virtual void RecordEnumeratedHistogram(const std::string& name, | 71     virtual void RecordEnumeratedHistogram(const std::string& name, | 
| 72                                            int sample, | 72                                            int sample, | 
| 73                                            int boundary_value) = 0; | 73                                            int boundary_value) = 0; | 
| 74     virtual void SendJsonRequest(const DispatchCallback& callback, | 74     virtual void SendJsonRequest(const DispatchCallback& callback, | 
| 75                                  const std::string& browser_id, | 75                                  const std::string& browser_id, | 
| 76                                  const std::string& url) = 0; | 76                                  const std::string& url) = 0; | 
|  | 77     virtual void OpenWorkerInspector(const std::string& id) = 0; | 
| 77   }; | 78   }; | 
| 78 | 79 | 
| 79   using DispatchCallback = Delegate::DispatchCallback; | 80   using DispatchCallback = Delegate::DispatchCallback; | 
| 80 | 81 | 
| 81   virtual ~DevToolsEmbedderMessageDispatcher() {} | 82   virtual ~DevToolsEmbedderMessageDispatcher() {} | 
| 82   virtual bool Dispatch(const DispatchCallback& callback, | 83   virtual bool Dispatch(const DispatchCallback& callback, | 
| 83                         const std::string& method, | 84                         const std::string& method, | 
| 84                         const base::ListValue* params) = 0; | 85                         const base::ListValue* params) = 0; | 
| 85 | 86 | 
| 86   static DevToolsEmbedderMessageDispatcher* CreateForDevToolsFrontend( | 87   static DevToolsEmbedderMessageDispatcher* CreateForDevToolsFrontend( | 
| 87       Delegate* delegate); | 88       Delegate* delegate); | 
| 88 }; | 89 }; | 
| 89 | 90 | 
| 90 #endif  // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_ | 91 #endif  // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_ | 
| OLD | NEW | 
|---|