OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_DEVICE_ORIENTATION_DATA_FETCHER_IMPL_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_DEVICE_ORIENTATION_DATA_FETCHER_IMPL_ANDROID_H_ |
6 #define CHROME_BROWSER_DEVICE_ORIENTATION_DATA_FETCHER_IMPL_ANDROID_H_ | 6 #define CHROME_BROWSER_DEVICE_ORIENTATION_DATA_FETCHER_IMPL_ANDROID_H_ |
7 #pragma once | |
8 | 7 |
9 #include <jni.h> | 8 #include <jni.h> |
10 | 9 |
11 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
12 #include "base/synchronization/lock.h" | 11 #include "base/synchronization/lock.h" |
13 #include "content/browser/device_orientation/data_fetcher.h" | 12 #include "content/browser/device_orientation/data_fetcher.h" |
14 #include "content/browser/device_orientation/orientation.h" | 13 #include "content/browser/device_orientation/orientation.h" |
15 | 14 |
16 namespace device_orientation { | 15 namespace device_orientation { |
17 | 16 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 // 1-element buffer, written by GotOrientation, read by GetOrientation. | 53 // 1-element buffer, written by GotOrientation, read by GetOrientation. |
55 base::Lock next_orientation_lock_; | 54 base::Lock next_orientation_lock_; |
56 scoped_ptr<Orientation> next_orientation_; | 55 scoped_ptr<Orientation> next_orientation_; |
57 | 56 |
58 DISALLOW_COPY_AND_ASSIGN(DataFetcherImplAndroid); | 57 DISALLOW_COPY_AND_ASSIGN(DataFetcherImplAndroid); |
59 }; | 58 }; |
60 | 59 |
61 } // namespace device_orientation | 60 } // namespace device_orientation |
62 | 61 |
63 #endif // CHROME_BROWSER_DEVICE_ORIENTATION_DATA_FETCHER_IMPL_ANDROID_H_ | 62 #endif // CHROME_BROWSER_DEVICE_ORIENTATION_DATA_FETCHER_IMPL_ANDROID_H_ |
OLD | NEW |