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

Side by Side Diff: content/browser/device_orientation/device_data.h

Issue 59403004: Android: remove device_data.h from browser/device_orientation/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed extra line Created 6 years, 11 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 unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #ifndef CONTENT_BROWSER_DEVICE_ORIENTATION_DEVICE_DATA_H_
6 #define CONTENT_BROWSER_DEVICE_ORIENTATION_DEVICE_DATA_H_
7
8 #include "base/memory/ref_counted.h"
9 #include "content/common/content_export.h"
10
11 namespace IPC {
12 class Message;
13 }
14
15 namespace content {
16
17 class CONTENT_EXPORT DeviceData :
18 public base::RefCountedThreadSafe<DeviceData> {
19 public:
20 // TODO(timvolodine): move the DeviceData::Type enum to the service class
21 // once it is implemented.
22 enum Type {
23 kTypeOrientation = 0,
24 kTypeMotion = 1,
25 kTypeTest = 100
26 };
27
28 virtual IPC::Message* CreateIPCMessage(int render_view_id) const = 0;
29 virtual bool ShouldFireEvent(const DeviceData* other) const = 0;
30
31 protected:
32 DeviceData() {}
33 virtual ~DeviceData() {}
34
35 private:
36 friend class base::RefCountedThreadSafe<DeviceData>;
37
38 DISALLOW_COPY_AND_ASSIGN(DeviceData);
39 };
40
41 } // namespace content
42
43 #endif // CONTENT_BROWSER_DEVICE_ORIENTATION_DEVICE_DATA_H_
OLDNEW
« no previous file with comments | « content/browser/device_orientation/data_fetcher_impl_android_unittest.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698