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

Unified Diff: chrome/browser/sync/notifier/invalidation_util.h

Issue 2827014: Implemented initial version of server-issued notification client. (Closed)
Patch Set: Added DEPS Created 10 years, 6 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
Index: chrome/browser/sync/notifier/invalidation_util.h
diff --git a/chrome/browser/sync/notifier/invalidation_util.h b/chrome/browser/sync/notifier/invalidation_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..3ca5fe9d9856e15a007b38b576b6d79f8180ddcf
--- /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_
« no previous file with comments | « chrome/browser/sync/notifier/chrome_system_resources.cc ('k') | chrome/browser/sync/notifier/invalidation_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698