Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / browser / local_discovery / cloud_device_list.h
blob1f75efd1f5a61f0c2dd634d461f52385e436d1af
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_LOCAL_DISCOVERY_CLOUD_DEVICE_LIST_H_
6 #define CHROME_BROWSER_LOCAL_DISCOVERY_CLOUD_DEVICE_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 CloudDeviceList : public GCDApiFlowRequest {
18 public:
19 typedef std::vector<CloudDeviceListDelegate::Device> DeviceList;
20 typedef DeviceList::const_iterator iterator;
22 explicit CloudDeviceList(CloudDeviceListDelegate* delegate);
23 ~CloudDeviceList() override;
25 void OnGCDAPIFlowError(GCDApiFlow::Status status) override;
27 void OnGCDAPIFlowComplete(const base::DictionaryValue& value) override;
29 GURL GetURL() override;
31 private:
32 bool FillDeviceDetails(const base::DictionaryValue& value,
33 CloudDeviceListDelegate::Device* device);
35 CloudDeviceListDelegate* delegate_;
38 } // namespace local_discovery
40 #endif // CHROME_BROWSER_LOCAL_DISCOVERY_CLOUD_DEVICE_LIST_H_