summaryrefslogtreecommitdiffstats
path: root/content/browser/device_orientation/data_fetcher.h
blob: 0e739cddbf0f5b9e08b16f75de3b7ac6974f8095 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CONTENT_BROWSER_DEVICE_ORIENTATION_DATA_FETCHER_H_
#define CONTENT_BROWSER_DEVICE_ORIENTATION_DATA_FETCHER_H_

#include "content/browser/device_orientation/device_data.h"

namespace content {

class DataFetcher {
 public:
  virtual ~DataFetcher() {}

  // Returns NULL if there was a fatal error getting the device data of this
  // type or if this fetcher can never provide this type of data. Otherwise,
  // returns a pointer to a DeviceData containing the most recent data.
  virtual const DeviceData* GetDeviceData(DeviceData::Type type) = 0;
};

}  // namespace content

#endif  // CONTENT_BROWSER_DEVICE_ORIENTATION_DATA_FETCHER_H_