diff options
author | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-23 00:16:45 +0000 |
---|---|---|
committer | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-23 00:16:45 +0000 |
commit | 3d47a26aed8fd135280d4924d9e9bb36cb624946 (patch) | |
tree | f515a3604302e123d67a04c80079df4da6fc6b35 /chrome/browser/sync/notifier/invalidation_util.h | |
parent | 51e413c3e9f11186b5026123a4610dd1dc005416 (diff) | |
download | chromium_src-3d47a26aed8fd135280d4924d9e9bb36cb624946.zip chromium_src-3d47a26aed8fd135280d4924d9e9bb36cb624946.tar.gz chromium_src-3d47a26aed8fd135280d4924d9e9bb36cb624946.tar.bz2 |
Implemented initial version of server-issued notification client.
Added NOTIFICATION_SERVER notification method (use
--sync-notification-method=server to turn on).
BUG=34647
TEST=manually
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=50479
Review URL: http://codereview.chromium.org/2827014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50550 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync/notifier/invalidation_util.h')
-rw-r--r-- | chrome/browser/sync/notifier/invalidation_util.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/chrome/browser/sync/notifier/invalidation_util.h b/chrome/browser/sync/notifier/invalidation_util.h new file mode 100644 index 0000000..3ca5fe9 --- /dev/null +++ b/chrome/browser/sync/notifier/invalidation_util.h @@ -0,0 +1,36 @@ +// Copyright (c) 2010 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. +// +// Various utilities for dealing with invalidation data types. + +#ifndef CHROME_BROWSER_SYNC_NOTIFIER_INVALIDATION_UTIL_H_ +#define CHROME_BROWSER_SYNC_NOTIFIER_INVALIDATION_UTIL_H_ + +#include <string> + +#include "google/cacheinvalidation/invalidation-client.h" + +namespace sync_notifier { + +void RunAndDeleteClosure(invalidation::Closure* task); + +// We need to write our own protobuf-to-string functions because we +// use LITE_RUNTIME, which doesn't support DebugString(). + +std::string ObjectIdToString(const invalidation::ObjectId& object_id); + +std::string StatusToString(const invalidation::Status& status); + +std::string InvalidationToString( + const invalidation::Invalidation& invalidation); + +std::string RegistrationUpdateToString( + const invalidation::RegistrationUpdate& update); + +std::string RegistrationUpdateResultToString( + const invalidation::RegistrationUpdateResult& update_result); + +} // namespace sync_notifier + +#endif // CHROME_BROWSER_SYNC_NOTIFIER_INVALIDATION_UTIL_H_ |