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

Unified Diff: chrome/browser/sync/sync_status_ui_helper.h

Issue 160598: Add files to browser/sync. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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
« no previous file with comments | « chrome/browser/sync/resources/setup_flow.html ('k') | chrome/browser/sync/sync_status_ui_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/sync_status_ui_helper.h
===================================================================
--- chrome/browser/sync/sync_status_ui_helper.h (revision 0)
+++ chrome/browser/sync/sync_status_ui_helper.h (revision 0)
@@ -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
Property changes on: chrome\browser\sync\sync_status_ui_helper.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/browser/sync/resources/setup_flow.html ('k') | chrome/browser/sync/sync_status_ui_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698