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

Unified Diff: components/invalidation/ack_handle.h

Issue 1191393008: Introduce a layering in the invalidation component as public and impl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Explicitly forbid content to prevent future additions Created 5 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
« no previous file with comments | « components/invalidation/DEPS ('k') | components/invalidation/ack_handle.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/invalidation/ack_handle.h
diff --git a/components/invalidation/ack_handle.h b/components/invalidation/ack_handle.h
deleted file mode 100644
index 2435efaac1b81d65a9cd82a10da2ba55923747fb..0000000000000000000000000000000000000000
--- a/components/invalidation/ack_handle.h
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright 2014 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.
-
-#ifndef COMPONENTS_INVALIDATION_ACK_HANDLE_H_
-#define COMPONENTS_INVALIDATION_ACK_HANDLE_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/memory/scoped_ptr.h"
-#include "base/time/time.h"
-#include "components/invalidation/invalidation_export.h"
-
-namespace base {
-class DictionaryValue;
-}
-
-namespace syncer {
-
-// Opaque class that represents a local ack handle. We don't reuse the
-// invalidation ack handles to avoid unnecessary dependencies.
-class INVALIDATION_EXPORT AckHandle {
- public:
- static AckHandle CreateUnique();
- static AckHandle InvalidAckHandle();
-
- bool Equals(const AckHandle& other) const;
-
- scoped_ptr<base::DictionaryValue> ToValue() const;
- bool ResetFromValue(const base::DictionaryValue& value);
-
- bool IsValid() const;
-
- ~AckHandle();
-
- private:
- // Explicitly copyable and assignable for STL containers.
- AckHandle(const std::string& state, base::Time timestamp);
-
- std::string state_;
- base::Time timestamp_;
-};
-
-} // namespace syncer
-
-#endif // COMPONENTS_INVALIDATION_ACK_HANDLE_H_
« no previous file with comments | « components/invalidation/DEPS ('k') | components/invalidation/ack_handle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698