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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 const std::string& name, | 87 const std::string& name, |
88 const DeviceDescription& description) OVERRIDE; | 88 const DeviceDescription& description) OVERRIDE; |
89 virtual void DeviceRemoved(const std::string& name) OVERRIDE; | 89 virtual void DeviceRemoved(const std::string& name) OVERRIDE; |
90 virtual void DeviceCacheFlushed() OVERRIDE; | 90 virtual void DeviceCacheFlushed() OVERRIDE; |
91 | 91 |
92 // CloudDeviceListDelegate implementation. | 92 // CloudDeviceListDelegate implementation. |
93 virtual void OnDeviceListReady(const std::vector<Device>& devices) OVERRIDE; | 93 virtual void OnDeviceListReady(const std::vector<Device>& devices) OVERRIDE; |
94 virtual void OnDeviceListUnavailable() OVERRIDE; | 94 virtual void OnDeviceListUnavailable() OVERRIDE; |
95 | 95 |
96 // SigninManagerBase::Observer implementation. | 96 // SigninManagerBase::Observer implementation. |
97 virtual void GoogleSigninSucceeded(const std::string& username, | 97 virtual void GoogleSigninSucceeded(const std::string& account_id, |
| 98 const std::string& username, |
98 const std::string& password) OVERRIDE; | 99 const std::string& password) OVERRIDE; |
99 virtual void GoogleSignedOut(const std::string& username) OVERRIDE; | 100 virtual void GoogleSignedOut(const std::string& account_id, |
| 101 const std::string& username) OVERRIDE; |
100 | 102 |
101 private: | 103 private: |
102 typedef std::map<std::string, DeviceDescription> DeviceDescriptionMap; | 104 typedef std::map<std::string, DeviceDescription> DeviceDescriptionMap; |
103 | 105 |
104 // Message handlers: | 106 // Message handlers: |
105 // For when the page is ready to receive device notifications. | 107 // For when the page is ready to receive device notifications. |
106 void HandleStart(const base::ListValue* args); | 108 void HandleStart(const base::ListValue* args); |
107 | 109 |
108 // For when a visibility change occurs. | 110 // For when a visibility change occurs. |
109 void HandleIsVisible(const base::ListValue* args); | 111 void HandleIsVisible(const base::ListValue* args); |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 scoped_ptr<wifi::BootstrappingDeviceLister> bootstrapping_device_lister_; | 231 scoped_ptr<wifi::BootstrappingDeviceLister> bootstrapping_device_lister_; |
230 #endif | 232 #endif |
231 | 233 |
232 DISALLOW_COPY_AND_ASSIGN(LocalDiscoveryUIHandler); | 234 DISALLOW_COPY_AND_ASSIGN(LocalDiscoveryUIHandler); |
233 }; | 235 }; |
234 | 236 |
235 #undef CLOUD_PRINT_CONNECTOR_UI_AVAILABLE | 237 #undef CLOUD_PRINT_CONNECTOR_UI_AVAILABLE |
236 | 238 |
237 } // namespace local_discovery | 239 } // namespace local_discovery |
238 #endif // CHROME_BROWSER_UI_WEBUI_LOCAL_DISCOVERY_LOCAL_DISCOVERY_UI_HANDLER_H_ | 240 #endif // CHROME_BROWSER_UI_WEBUI_LOCAL_DISCOVERY_LOCAL_DISCOVERY_UI_HANDLER_H_ |
OLD | NEW |