Save errno for logging before potentially overwriting it.
[chromium-blink-merge.git] / content / browser / device_orientation / data_fetcher.h
blob0e739cddbf0f5b9e08b16f75de3b7ac6974f8095
1 // Copyright (c) 2012 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 CONTENT_BROWSER_DEVICE_ORIENTATION_DATA_FETCHER_H_
6 #define CONTENT_BROWSER_DEVICE_ORIENTATION_DATA_FETCHER_H_
8 #include "content/browser/device_orientation/device_data.h"
10 namespace content {
12 class DataFetcher {
13 public:
14 virtual ~DataFetcher() {}
16 // Returns NULL if there was a fatal error getting the device data of this
17 // type or if this fetcher can never provide this type of data. Otherwise,
18 // returns a pointer to a DeviceData containing the most recent data.
19 virtual const DeviceData* GetDeviceData(DeviceData::Type type) = 0;
22 } // namespace content
24 #endif // CONTENT_BROWSER_DEVICE_ORIENTATION_DATA_FETCHER_H_