| 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_LOCAL_DISCOVERY_CLOUD_PRINT_PRINTER_LIST_H_ | 5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_CLOUD_PRINT_PRINTER_LIST_H_ |
| 6 #define CHROME_BROWSER_LOCAL_DISCOVERY_CLOUD_PRINT_PRINTER_LIST_H_ | 6 #define CHROME_BROWSER_LOCAL_DISCOVERY_CLOUD_PRINT_PRINTER_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 CloudPrintPrinterList : public CloudPrintApiFlowRequest { | 16 class CloudPrintPrinterList : public CloudPrintApiFlowRequest { |
| 17 public: | 17 public: |
| 18 explicit CloudPrintPrinterList(CloudDeviceListDelegate* delegate); | 18 explicit CloudPrintPrinterList(CloudDeviceListDelegate* delegate); |
| 19 virtual ~CloudPrintPrinterList(); | 19 virtual ~CloudPrintPrinterList(); |
| 20 | 20 |
| 21 virtual void OnGCDAPIFlowError(GCDApiFlow::Status status) OVERRIDE; | 21 virtual void OnGCDAPIFlowError(GCDApiFlowInterface::Status status) OVERRIDE; |
| 22 | 22 |
| 23 virtual void OnGCDAPIFlowComplete( | 23 virtual void OnGCDAPIFlowComplete( |
| 24 const base::DictionaryValue& value) OVERRIDE; | 24 const base::DictionaryValue& value) OVERRIDE; |
| 25 | 25 |
| 26 virtual GURL GetURL() OVERRIDE; | 26 virtual GURL GetURL() OVERRIDE; |
| 27 | 27 |
| 28 private: | 28 private: |
| 29 bool FillPrinterDetails(const base::DictionaryValue& printer_value, | 29 bool FillPrinterDetails(const base::DictionaryValue& printer_value, |
| 30 CloudDeviceListDelegate::Device* printer_details); | 30 CloudDeviceListDelegate::Device* printer_details); |
| 31 | 31 |
| 32 CloudDeviceListDelegate* delegate_; | 32 CloudDeviceListDelegate* delegate_; |
| 33 }; | 33 }; |
| 34 | 34 |
| 35 } // namespace local_discovery | 35 } // namespace local_discovery |
| 36 | 36 |
| 37 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_CLOUD_PRINT_PRINTER_LIST_H_ | 37 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_CLOUD_PRINT_PRINTER_LIST_H_ |
| OLD | NEW |