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 CONTENT_BROWSER_DEVICE_ORIENTATION_PROVIDER_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_DEVICE_ORIENTATION_PROVIDER_IMPL_H_ |
6 #define CONTENT_BROWSER_DEVICE_ORIENTATION_PROVIDER_IMPL_H_ | 6 #define CONTENT_BROWSER_DEVICE_ORIENTATION_PROVIDER_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "base/time.h" | |
15 #include "content/browser/device_orientation/data_fetcher.h" | 14 #include "content/browser/device_orientation/data_fetcher.h" |
16 #include "content/browser/device_orientation/device_data.h" | 15 #include "content/browser/device_orientation/device_data.h" |
17 #include "content/browser/device_orientation/provider.h" | 16 #include "content/browser/device_orientation/provider.h" |
18 #include "content/common/content_export.h" | 17 #include "content/common/content_export.h" |
19 | 18 |
20 class MessageLoop; | 19 class MessageLoop; |
21 | 20 |
22 namespace content { | 21 namespace content { |
23 | 22 |
24 class ProviderImpl : public Provider { | 23 class ProviderImpl : public Provider { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 // Polling is done on this background thread. PollingThread is owned by | 70 // Polling is done on this background thread. PollingThread is owned by |
72 // the ProviderImpl object. But its deletion doesn't happen synchronously | 71 // the ProviderImpl object. But its deletion doesn't happen synchronously |
73 // along with deletion of the ProviderImpl. Thus this should be a raw | 72 // along with deletion of the ProviderImpl. Thus this should be a raw |
74 // pointer instead of scoped_ptr. | 73 // pointer instead of scoped_ptr. |
75 PollingThread* polling_thread_; | 74 PollingThread* polling_thread_; |
76 }; | 75 }; |
77 | 76 |
78 } // namespace content | 77 } // namespace content |
79 | 78 |
80 #endif // CONTENT_BROWSER_DEVICE_ORIENTATION_PROVIDER_IMPL_H_ | 79 #endif // CONTENT_BROWSER_DEVICE_ORIENTATION_PROVIDER_IMPL_H_ |
OLD | NEW |