diff options
author | tim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-05 01:18:27 +0000 |
---|---|---|
committer | tim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-05 01:18:27 +0000 |
commit | 132c8565a63ad57d680b6b8d9beaa28786a46ea8 (patch) | |
tree | 428425605547842abd6a7ab851bd27132f11efde /chrome/browser/sync/sync_status_ui_helper.h | |
parent | f902600776feea6570c876f2349bb4a8746ea95b (diff) | |
download | chromium_src-132c8565a63ad57d680b6b8d9beaa28786a46ea8.zip chromium_src-132c8565a63ad57d680b6b8d9beaa28786a46ea8.tar.gz chromium_src-132c8565a63ad57d680b6b8d9beaa28786a46ea8.tar.bz2 |
Add files to browser/sync and tweak includes.
Create browser/sync/glue and /engine.
Create sync watchlist and add a few folks.
No GYP change here so no build changes should occur.
chrome.gyp CL is coming shortly, as well as live_sync tests.
Review URL: http://codereview.chromium.org/160598
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22454 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync/sync_status_ui_helper.h')
-rw-r--r-- | chrome/browser/sync/sync_status_ui_helper.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/chrome/browser/sync/sync_status_ui_helper.h b/chrome/browser/sync/sync_status_ui_helper.h new file mode 100644 index 0000000..6241ead --- /dev/null +++ b/chrome/browser/sync/sync_status_ui_helper.h @@ -0,0 +1,34 @@ +// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifdef CHROME_PERSONALIZATION + +#ifndef CHROME_BROWSER_SYNC_SYNC_STATUS_UI_HELPER_H_ +#define CHROME_BROWSER_SYNC_SYNC_STATUS_UI_HELPER_H_ + +#include "base/string16.h" + +class ProfileSyncService; + +// Utility to gather current sync status information from the sync service and +// constructs messages suitable for showing in UI. +class SyncStatusUIHelper { + public: + enum MessageType { + PRE_SYNCED, // User has not set up sync. + SYNCED, // We are synced and authenticated to a gmail account. + SYNC_ERROR, // A sync error (such as invalid credentials) has occurred. + }; + + // Create status and link labels for the current status labels and link text + // by querying |service|. + static MessageType GetLabels(ProfileSyncService* service, + std::wstring* status_label, + std::wstring* link_label); + private: + DISALLOW_IMPLICIT_CONSTRUCTORS(SyncStatusUIHelper); +}; + +#endif // CHROME_BROWSER_SYNC_SYNC_STATUS_UI_HELPER_H_ +#endif // CHROME_PERSONALIZATION |