| 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_LOCAL_DISCOVERY_CLOUD_DEVICE_LIST_H_ | 5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_CLOUD_DEVICE_LIST_H_ |
| 6 #define CHROME_BROWSER_LOCAL_DISCOVERY_CLOUD_DEVICE_LIST_H_ | 6 #define CHROME_BROWSER_LOCAL_DISCOVERY_CLOUD_DEVICE_LIST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "chrome/browser/local_discovery/cloud_device_list_delegate.h" | 11 #include "chrome/browser/local_discovery/cloud_device_list_delegate.h" |
| 12 #include "chrome/browser/local_discovery/gcd_api_flow.h" | 12 #include "chrome/browser/local_discovery/gcd_api_flow.h" |
| 13 | 13 |
| 14 namespace local_discovery { | 14 namespace local_discovery { |
| 15 | 15 |
| 16 class CloudDeviceList : public GCDApiFlowRequest { | 16 class CloudDeviceList : public GCDApiFlowRequest { |
| 17 public: | 17 public: |
| 18 typedef std::vector<CloudDeviceListDelegate::Device> DeviceList; | 18 typedef std::vector<CloudDeviceListDelegate::Device> DeviceList; |
| 19 typedef DeviceList::const_iterator iterator; | 19 typedef DeviceList::const_iterator iterator; |
| 20 | 20 |
| 21 explicit CloudDeviceList(CloudDeviceListDelegate* delegate); | 21 explicit CloudDeviceList(CloudDeviceListDelegate* delegate); |
| 22 virtual ~CloudDeviceList(); | 22 virtual ~CloudDeviceList(); |
| 23 | 23 |
| 24 virtual void OnGCDAPIFlowError(GCDApiFlow::Status status) OVERRIDE; | 24 virtual void OnGCDAPIFlowError(GCDApiFlowInterface::Status status) OVERRIDE; |
| 25 | 25 |
| 26 virtual void OnGCDAPIFlowComplete( | 26 virtual void OnGCDAPIFlowComplete( |
| 27 const base::DictionaryValue& value) OVERRIDE; | 27 const base::DictionaryValue& value) OVERRIDE; |
| 28 | 28 |
| 29 virtual GURL GetURL() OVERRIDE; | 29 virtual GURL GetURL() OVERRIDE; |
| 30 | 30 |
| 31 private: | 31 private: |
| 32 bool FillDeviceDetails(const base::DictionaryValue& value, | 32 bool FillDeviceDetails(const base::DictionaryValue& value, |
| 33 CloudDeviceListDelegate::Device* device); | 33 CloudDeviceListDelegate::Device* device); |
| 34 | 34 |
| 35 CloudDeviceListDelegate* delegate_; | 35 CloudDeviceListDelegate* delegate_; |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 } // namespace local_discovery | 38 } // namespace local_discovery |
| 39 | 39 |
| 40 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_CLOUD_DEVICE_LIST_H_ | 40 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_CLOUD_DEVICE_LIST_H_ |
| OLD | NEW |