| 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_H_ | 5 #ifndef CONTENT_BROWSER_DEVICE_ORIENTATION_PROVIDER_H_ |
| 6 #define CHROME_BROWSER_DEVICE_ORIENTATION_PROVIDER_H_ | 6 #define CONTENT_BROWSER_DEVICE_ORIENTATION_PROVIDER_H_ |
| 7 | 7 |
| 8 #include "base/ref_counted.h" | 8 #include "base/ref_counted.h" |
| 9 | 9 |
| 10 namespace device_orientation { | 10 namespace device_orientation { |
| 11 | 11 |
| 12 class Orientation; | 12 class Orientation; |
| 13 | 13 |
| 14 class Provider : public base::RefCountedThreadSafe<Provider> { | 14 class Provider : public base::RefCountedThreadSafe<Provider> { |
| 15 public: | 15 public: |
| 16 class Observer { | 16 class Observer { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 46 | 46 |
| 47 private: | 47 private: |
| 48 friend class base::RefCountedThreadSafe<Provider>; | 48 friend class base::RefCountedThreadSafe<Provider>; |
| 49 static Provider* instance_; | 49 static Provider* instance_; |
| 50 | 50 |
| 51 DISALLOW_COPY_AND_ASSIGN(Provider); | 51 DISALLOW_COPY_AND_ASSIGN(Provider); |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 } // namespace device_orientation | 54 } // namespace device_orientation |
| 55 | 55 |
| 56 #endif // CHROME_BROWSER_DEVICE_ORIENTATION_PROVIDER_H_ | 56 #endif // CONTENT_BROWSER_DEVICE_ORIENTATION_PROVIDER_H_ |
| OLD | NEW |