| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_IDLE_QUERY_LINUX_H_ | 5 #ifndef CHROME_BROWSER_IDLE_QUERY_LINUX_H_ |
| 6 #define CHROME_BROWSER_IDLE_QUERY_LINUX_H_ | 6 #define CHROME_BROWSER_IDLE_QUERY_LINUX_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 | 11 |
| 12 namespace browser { | 12 namespace chrome { |
| 13 | 13 |
| 14 class IdleData; | 14 class IdleData; |
| 15 | 15 |
| 16 class IdleQueryLinux { | 16 class IdleQueryLinux { |
| 17 public: | 17 public: |
| 18 IdleQueryLinux(); | 18 IdleQueryLinux(); |
| 19 ~IdleQueryLinux(); | 19 ~IdleQueryLinux(); |
| 20 | 20 |
| 21 int IdleTime(); | 21 int IdleTime(); |
| 22 | 22 |
| 23 private: | 23 private: |
| 24 scoped_ptr<IdleData> idle_data_; | 24 scoped_ptr<IdleData> idle_data_; |
| 25 | 25 |
| 26 DISALLOW_COPY_AND_ASSIGN(IdleQueryLinux); | 26 DISALLOW_COPY_AND_ASSIGN(IdleQueryLinux); |
| 27 }; | 27 }; |
| 28 | 28 |
| 29 } // namespace browser | 29 } // namespace chrome |
| 30 | 30 |
| 31 #endif // CHROME_BROWSER_IDLE_QUERY_LINUX_H_ | 31 #endif // CHROME_BROWSER_IDLE_QUERY_LINUX_H_ |
| OLD | NEW |