summaryrefslogtreecommitdiffstats
path: root/sync/internal_api/sync_manager_impl.h
diff options
context:
space:
mode:
authorakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-07 03:48:45 +0000
committerakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-07 03:48:45 +0000
commit6bb275c2204bee6abb89b9a6fc363912e19977c4 (patch)
tree956736668289d662a32aa690af4e3e7cd6427841 /sync/internal_api/sync_manager_impl.h
parentf1c77607c0c8c55847a56b2177ee05b64d0ddaf8 (diff)
downloadchromium_src-6bb275c2204bee6abb89b9a6fc363912e19977c4.zip
chromium_src-6bb275c2204bee6abb89b9a6fc363912e19977c4.tar.gz
chromium_src-6bb275c2204bee6abb89b9a6fc363912e19977c4.tar.bz2
[Sync] Print out notification state explicitly in about:sync
BUG=139430 Review URL: https://chromiumcodereview.appspot.com/10837111 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150251 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/internal_api/sync_manager_impl.h')
-rw-r--r--sync/internal_api/sync_manager_impl.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sync/internal_api/sync_manager_impl.h b/sync/internal_api/sync_manager_impl.h
index 01f37fc..c09a498 100644
--- a/sync/internal_api/sync_manager_impl.h
+++ b/sync/internal_api/sync_manager_impl.h
@@ -20,6 +20,7 @@
#include "sync/internal_api/js_sync_manager_observer.h"
#include "sync/internal_api/public/sync_manager.h"
#include "sync/js/js_backend.h"
+#include "sync/notifier/notifications_disabled_reason.h"
#include "sync/notifier/sync_notifier_observer.h"
#include "sync/syncable/directory_change_delegate.h"
#include "sync/util/cryptographer.h"
@@ -298,10 +299,16 @@ class SyncManagerImpl : public SyncManager,
void BindJsMessageHandler(
const std::string& name, UnboundJsMessageHandler unbound_message_handler);
+ // Helper function used by OnNotifications{Enabled,Disabled}().
+ void OnNotificationStateChange(NotificationsDisabledReason reason);
+
// Returned pointer is owned by the caller.
static DictionaryValue* NotificationInfoToValue(
const NotificationInfoMap& notification_info);
+ static std::string NotificationInfoToString(
+ const NotificationInfoMap& notification_info);
+
// JS message handlers.
JsArgList GetNotificationState(const JsArgList& args);
JsArgList GetNotificationInfo(const JsArgList& args);
@@ -381,6 +388,8 @@ class SyncManagerImpl : public SyncManager,
bool observing_ip_address_changes_;
+ NotificationsDisabledReason notifications_disabled_reason_;
+
// Map used to store the notification info to be displayed in
// about:sync page.
NotificationInfoMap notification_info_map_;