Add GCMChannelStatusSyncer to schedule requests and enable/disable GCM
[chromium-blink-merge.git] / chrome / browser / local_discovery / cloud_print_printer_list.h
blobe5abc64e226765ee3416191597ae47b96dc06f16
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_CLOUD_PRINT_PRINTER_LIST_H_
6 #define CHROME_BROWSER_LOCAL_DISCOVERY_CLOUD_PRINT_PRINTER_LIST_H_
8 #include <string>
9 #include <vector>
11 #include "base/values.h"
12 #include "chrome/browser/local_discovery/cloud_device_list_delegate.h"
13 #include "chrome/browser/local_discovery/gcd_api_flow.h"
15 namespace local_discovery {
17 class CloudPrintPrinterList : public CloudPrintApiFlowRequest {
18 public:
19 explicit CloudPrintPrinterList(CloudDeviceListDelegate* delegate);
20 virtual ~CloudPrintPrinterList();
22 virtual void OnGCDAPIFlowError(GCDApiFlow::Status status) OVERRIDE;
24 virtual void OnGCDAPIFlowComplete(
25 const base::DictionaryValue& value) OVERRIDE;
27 virtual GURL GetURL() OVERRIDE;
29 private:
30 bool FillPrinterDetails(const base::DictionaryValue& printer_value,
31 CloudDeviceListDelegate::Device* printer_details);
33 CloudDeviceListDelegate* delegate_;
36 } // namespace local_discovery
38 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_CLOUD_PRINT_PRINTER_LIST_H_