| 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_UI_WEBUI_LOCAL_DISCOVERY_LOCAL_DISCOVERY_UI_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_LOCAL_DISCOVERY_LOCAL_DISCOVERY_UI_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_LOCAL_DISCOVERY_LOCAL_DISCOVERY_UI_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_LOCAL_DISCOVERY_LOCAL_DISCOVERY_UI_HANDLER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 | 67 |
| 68 virtual void OnPrivetRegisterDone( | 68 virtual void OnPrivetRegisterDone( |
| 69 PrivetRegisterOperation* operation, | 69 PrivetRegisterOperation* operation, |
| 70 const std::string& device_id) OVERRIDE; | 70 const std::string& device_id) OVERRIDE; |
| 71 | 71 |
| 72 // PrivetDeviceLister::Delegate implementation. | 72 // PrivetDeviceLister::Delegate implementation. |
| 73 virtual void DeviceChanged( | 73 virtual void DeviceChanged( |
| 74 bool added, | 74 bool added, |
| 75 const std::string& name, | 75 const std::string& name, |
| 76 const DeviceDescription& description) OVERRIDE; | 76 const DeviceDescription& description) OVERRIDE; |
| 77 |
| 77 virtual void DeviceRemoved(const std::string& name) OVERRIDE; | 78 virtual void DeviceRemoved(const std::string& name) OVERRIDE; |
| 78 | 79 |
| 80 virtual void DeviceCacheFlushed() OVERRIDE; |
| 81 |
| 79 // CloudPrintPrinterList::Delegate implementation. | 82 // CloudPrintPrinterList::Delegate implementation. |
| 80 virtual void OnCloudPrintPrinterListReady() OVERRIDE; | 83 virtual void OnCloudPrintPrinterListReady() OVERRIDE; |
| 81 | 84 |
| 82 virtual void OnCloudPrintPrinterListUnavailable() OVERRIDE; | 85 virtual void OnCloudPrintPrinterListUnavailable() OVERRIDE; |
| 83 | 86 |
| 84 private: | 87 private: |
| 85 typedef std::map<std::string, DeviceDescription> DeviceDescriptionMap; | 88 typedef std::map<std::string, DeviceDescription> DeviceDescriptionMap; |
| 86 | 89 |
| 87 // Message handlers: | 90 // Message handlers: |
| 88 // For when the page is ready to recieve device notifications. | 91 // For when the page is ready to recieve device notifications. |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 scoped_ptr<CloudPrintPrinterList> cloud_print_printer_list_; | 176 scoped_ptr<CloudPrintPrinterList> cloud_print_printer_list_; |
| 174 | 177 |
| 175 // Announcement timeout for registration. | 178 // Announcement timeout for registration. |
| 176 base::CancelableCallback<void()> registration_announce_timeout_; | 179 base::CancelableCallback<void()> registration_announce_timeout_; |
| 177 | 180 |
| 178 DISALLOW_COPY_AND_ASSIGN(LocalDiscoveryUIHandler); | 181 DISALLOW_COPY_AND_ASSIGN(LocalDiscoveryUIHandler); |
| 179 }; | 182 }; |
| 180 | 183 |
| 181 } // namespace local_discovery | 184 } // namespace local_discovery |
| 182 #endif // CHROME_BROWSER_UI_WEBUI_LOCAL_DISCOVERY_LOCAL_DISCOVERY_UI_HANDLER_H_ | 185 #endif // CHROME_BROWSER_UI_WEBUI_LOCAL_DISCOVERY_LOCAL_DISCOVERY_UI_HANDLER_H_ |
| OLD | NEW |