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

Unified Diff: chrome/browser/sync/engine/syncer_thread.h

Issue 553051: Add support for UserIdleTime to Linux. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/engine/syncer_thread.h
===================================================================
--- chrome/browser/sync/engine/syncer_thread.h (revision 37123)
+++ chrome/browser/sync/engine/syncer_thread.h (working copy)
@@ -21,6 +21,9 @@
#include "base/time.h"
#include "base/waitable_event.h"
#include "chrome/browser/sync/engine/all_status.h"
+#if defined(OS_LINUX)
+#include "chrome/browser/sync/engine/idle_query_linux.h"
+#endif
#include "chrome/browser/sync/sessions/sync_session.h"
#include "chrome/browser/sync/util/event_sys-inl.h"
#include "testing/gtest/include/gtest/gtest_prod.h" // For FRIEND_TEST
@@ -247,6 +250,8 @@
void SetUpdatesSource(bool nudged, NudgeSource nudge_source,
bool* initial_sync);
+ int UserIdleTime();
+
// For unit tests only.
virtual void DisableIdleDetection() { disable_idle_detection_ = true; }
@@ -280,6 +285,11 @@
scoped_ptr<EventListenerHookup> directory_manager_hookup_;
scoped_ptr<EventListenerHookup> syncer_events_;
+#if defined(OS_LINUX)
+ // On Linux, we need this information in order to query idle time.
+ scoped_ptr<IdleQueryLinux> idle_query_;
+#endif
+
scoped_ptr<sessions::SyncSessionContext> session_context_;
// Events from the Syncer's syncer_event_channel are first processed by the

Powered by Google App Engine
This is Rietveld 408576698