OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_PROVIDER_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_DEVICE_ORIENTATION_PROVIDER_IMPL_H_ |
6 #define CHROME_BROWSER_DEVICE_ORIENTATION_PROVIDER_IMPL_H_ | 6 #define CONTENT_BROWSER_DEVICE_ORIENTATION_PROVIDER_IMPL_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
12 #include "base/task.h" | 12 #include "base/task.h" |
13 #include "chrome/browser/device_orientation/data_fetcher.h" | 13 #include "content/browser/device_orientation/data_fetcher.h" |
14 #include "chrome/browser/device_orientation/orientation.h" | 14 #include "content/browser/device_orientation/orientation.h" |
15 #include "chrome/browser/device_orientation/provider.h" | 15 #include "content/browser/device_orientation/provider.h" |
16 | 16 |
17 class MessageLoop; | 17 class MessageLoop; |
18 | 18 |
19 namespace base { | 19 namespace base { |
20 class Thread; | 20 class Thread; |
21 } | 21 } |
22 | 22 |
23 namespace device_orientation { | 23 namespace device_orientation { |
24 | 24 |
25 class ProviderImpl : public Provider { | 25 class ProviderImpl : public Provider { |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 scoped_ptr<DataFetcher> data_fetcher_; | 75 scoped_ptr<DataFetcher> data_fetcher_; |
76 Orientation last_orientation_; | 76 Orientation last_orientation_; |
77 ScopedRunnableMethodFactory<ProviderImpl> do_poll_method_factory_; | 77 ScopedRunnableMethodFactory<ProviderImpl> do_poll_method_factory_; |
78 | 78 |
79 // Polling is done on this background thread. | 79 // Polling is done on this background thread. |
80 scoped_ptr<base::Thread> polling_thread_; | 80 scoped_ptr<base::Thread> polling_thread_; |
81 }; | 81 }; |
82 | 82 |
83 } // namespace device_orientation | 83 } // namespace device_orientation |
84 | 84 |
85 #endif // CHROME_BROWSER_DEVICE_ORIENTATION_PROVIDER_IMPL_H_ | 85 #endif // CONTENT_BROWSER_DEVICE_ORIENTATION_PROVIDER_IMPL_H_ |
OLD | NEW |