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

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

Issue 10823318: Moves device_orientation to content namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Attempts to fix trybots Created 8 years, 4 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
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" 14 #include "base/time.h"
15 #include "content/browser/device_orientation/data_fetcher.h" 15 #include "content/browser/device_orientation/data_fetcher.h"
16 #include "content/browser/device_orientation/device_data.h" 16 #include "content/browser/device_orientation/device_data.h"
17 #include "content/browser/device_orientation/provider.h" 17 #include "content/browser/device_orientation/provider.h"
18 #include "content/common/content_export.h" 18 #include "content/common/content_export.h"
19 19
20 class MessageLoop; 20 class MessageLoop;
21 21
22 namespace device_orientation { 22 namespace content {
23 23
24 class ProviderImpl : public Provider { 24 class ProviderImpl : public Provider {
25 public: 25 public:
26 typedef DataFetcher* (*DataFetcherFactory)(); 26 typedef DataFetcher* (*DataFetcherFactory)();
27 27
28 // Create a ProviderImpl that uses the factory to create a DataFetcher that 28 // Create a ProviderImpl that uses the factory to create a DataFetcher that
29 // can provide data. A NULL DataFetcherFactory indicates that there are no 29 // can provide data. A NULL DataFetcherFactory indicates that there are no
30 // DataFetchers for this OS. 30 // DataFetchers for this OS.
31 CONTENT_EXPORT ProviderImpl(DataFetcherFactory factory); 31 CONTENT_EXPORT ProviderImpl(DataFetcherFactory factory);
32 32
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // from that thread. 68 // from that thread.
69 base::WeakPtrFactory<ProviderImpl> weak_factory_; 69 base::WeakPtrFactory<ProviderImpl> weak_factory_;
70 70
71 // Polling is done on this background thread. PollingThread is owned by 71 // Polling is done on this background thread. PollingThread is owned by
72 // the ProviderImpl object. But its deletion doesn't happen synchronously 72 // the ProviderImpl object. But its deletion doesn't happen synchronously
73 // along with deletion of the ProviderImpl. Thus this should be a raw 73 // along with deletion of the ProviderImpl. Thus this should be a raw
74 // pointer instead of scoped_ptr. 74 // pointer instead of scoped_ptr.
75 PollingThread* polling_thread_; 75 PollingThread* polling_thread_;
76 }; 76 };
77 77
78 } // namespace device_orientation 78 } // namespace content
79 79
80 #endif // CONTENT_BROWSER_DEVICE_ORIENTATION_PROVIDER_IMPL_H_ 80 #endif // CONTENT_BROWSER_DEVICE_ORIENTATION_PROVIDER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698