Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / local_discovery / cloud_print_printer_list.h
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.
4
5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_CLOUD_PRINT_PRINTER_LIST_H_
6 #define CHROME_BROWSER_LOCAL_DISCOVERY_CLOUD_PRINT_PRINTER_LIST_H_
7
8 #include <string>
9 #include <vector>
10
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"
14
15 namespace local_discovery {
16
17 class CloudPrintPrinterList : public CloudPrintApiFlowRequest {
18  public:
19   explicit CloudPrintPrinterList(CloudDeviceListDelegate* delegate);
20   ~CloudPrintPrinterList() override;
21
22   void OnGCDAPIFlowError(GCDApiFlow::Status status) override;
23
24   void OnGCDAPIFlowComplete(const base::DictionaryValue& value) override;
25
26   GURL GetURL() override;
27
28  private:
29   bool FillPrinterDetails(const base::DictionaryValue& printer_value,
30                           CloudDeviceListDelegate::Device* printer_details);
31
32   CloudDeviceListDelegate* delegate_;
33 };
34
35 }  // namespace local_discovery
36
37 #endif  // CHROME_BROWSER_LOCAL_DISCOVERY_CLOUD_PRINT_PRINTER_LIST_H_