Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 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_DEVICE_ORIENTATION_DATA_FETCHER_ORIENTATION_ANDROID_H_ | |
| 6 #define CHROME_BROWSER_DEVICE_ORIENTATION_DATA_FETCHER_ORIENTATION_ANDROID_H_ | |
| 7 | |
| 8 #include "content/browser/device_orientation/data_fetcher.h" | |
| 9 #include "content/browser/device_orientation/device_data.h" | |
| 10 | |
| 11 namespace content { | |
| 12 | |
| 13 class DataFetcherOrientationAndroid : public DataFetcher { | |
| 14 public: | |
| 15 // Factory function. We'll listen for events for the lifetime of this object. | |
| 16 // Returns NULL on error. | |
| 17 static DataFetcher* Create(); | |
|
bulach
2013/07/12 14:00:41
return a scoped_ptr<DataFecther>
timvolodine
2013/07/12 15:22:18
provider_impl.cc uses a raw pointer (which is late
| |
| 18 | |
| 19 virtual ~DataFetcherOrientationAndroid(); | |
| 20 | |
| 21 // Implementation of DataFetcher. | |
| 22 virtual const DeviceData* GetDeviceData(DeviceData::Type type) OVERRIDE; | |
| 23 | |
| 24 protected: | |
| 25 DataFetcherOrientationAndroid(); | |
| 26 | |
| 27 DISALLOW_COPY_AND_ASSIGN(DataFetcherOrientationAndroid); | |
| 28 }; | |
| 29 | |
| 30 } // namespace content | |
| 31 | |
| 32 #endif // CHROME_BROWSER_DEVICE_ORIENTATION_DATA_FETCHER_ORIENTATION_ANDROID_H_ | |
| OLD | NEW |