Index: chrome/browser/sync/engine/syncer_thread.h |
diff --git a/chrome/browser/sync/engine/syncer_thread.h b/chrome/browser/sync/engine/syncer_thread.h |
index 67b9376e88b30a88330fe7fa418f1bffea2c9b1f..be7d028c0f5e6e5d8344972a5dc23cca6b73178d 100644 |
--- a/chrome/browser/sync/engine/syncer_thread.h |
+++ b/chrome/browser/sync/engine/syncer_thread.h |
@@ -7,6 +7,8 @@ |
#define CHROME_BROWSER_SYNC_ENGINE_SYNCER_THREAD_H_ |
#pragma once |
+#include <string> |
+ |
#include "base/callback.h" |
#include "base/memory/linked_ptr.h" |
#include "base/memory/scoped_ptr.h" |
@@ -43,8 +45,10 @@ class SyncerThread : public sessions::SyncSession::Delegate, |
NORMAL_MODE, |
}; |
- // Takes ownership of both |context| and |syncer|. |
- SyncerThread(sessions::SyncSessionContext* context, Syncer* syncer); |
+ // |name| is a display string to identify the syncer thread. Takes |
+ // |ownership of both |context| and |syncer|. |
+ SyncerThread(const std::string& name, |
+ sessions::SyncSessionContext* context, Syncer* syncer); |
virtual ~SyncerThread(); |
typedef Callback0::Type ModeChangeCallback; |
@@ -298,6 +302,8 @@ class SyncerThread : public sessions::SyncSession::Delegate, |
// the client starts up and does not need to perform an initial sync. |
void SendInitialSnapshot(); |
+ const std::string name_; |
+ |
base::Thread thread_; |
// Modifiable versions of kDefaultLongPollIntervalSeconds which can be |