Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(330)

Unified Diff: content/browser/device_orientation/data_fetcher_orientation_android.h

Issue 18572014: Implement Android shared memory data fetcher for Device Motion. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@renderer-sync-12June-tryASYNC-2-bis-tryRebase-6
Patch Set: fixed some includes and removed instance() from data_fetcher_shared_memory_default Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/device_orientation/data_fetcher_orientation_android.h
diff --git a/content/browser/device_orientation/data_fetcher_orientation_android.h b/content/browser/device_orientation/data_fetcher_orientation_android.h
new file mode 100644
index 0000000000000000000000000000000000000000..19b286faf2d6374f0e219c093628d9fe2317862d
--- /dev/null
+++ b/content/browser/device_orientation/data_fetcher_orientation_android.h
@@ -0,0 +1,32 @@
+// Copyright (c) 2013 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 CHROME_BROWSER_DEVICE_ORIENTATION_DATA_FETCHER_ORIENTATION_ANDROID_H_
+#define CHROME_BROWSER_DEVICE_ORIENTATION_DATA_FETCHER_ORIENTATION_ANDROID_H_
+
+#include "content/browser/device_orientation/data_fetcher.h"
+#include "content/browser/device_orientation/device_data.h"
+
+namespace content {
+
+class DataFetcherOrientationAndroid : public DataFetcher {
+ public:
+ // Factory function. We'll listen for events for the lifetime of this object.
+ // Returns NULL on error.
+ 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
+
+ virtual ~DataFetcherOrientationAndroid();
+
+ // Implementation of DataFetcher.
+ virtual const DeviceData* GetDeviceData(DeviceData::Type type) OVERRIDE;
+
+ protected:
+ DataFetcherOrientationAndroid();
+
+ DISALLOW_COPY_AND_ASSIGN(DataFetcherOrientationAndroid);
+};
+
+} // namespace content
+
+#endif // CHROME_BROWSER_DEVICE_ORIENTATION_DATA_FETCHER_ORIENTATION_ANDROID_H_

Powered by Google App Engine
This is Rietveld 408576698