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

Unified Diff: blimp/helium/revision_generator.h

Issue 2602103002: Delete blimp/helium and remove references to it from dependent targets (Closed)
Patch Set: . Created 4 years 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 | « blimp/helium/result_unittest.cc ('k') | blimp/helium/revision_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/helium/revision_generator.h
diff --git a/blimp/helium/revision_generator.h b/blimp/helium/revision_generator.h
deleted file mode 100644
index 3d0f38c1b8687b62035524c5b5042a42a9eb0437..0000000000000000000000000000000000000000
--- a/blimp/helium/revision_generator.h
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2016 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 BLIMP_HELIUM_REVISION_GENERATOR_H_
-#define BLIMP_HELIUM_REVISION_GENERATOR_H_
-
-#include "base/lazy_instance.h"
-#include "base/macros.h"
-#include "base/sequence_checker.h"
-#include "blimp/helium/blimp_helium_export.h"
-#include "blimp/helium/version_vector.h"
-
-namespace blimp {
-namespace helium {
-
-// Responsible for generating monotonically increasing values
-// of Revisions. This generator is used one per host
-// (client or engine) to ensure they have a single clock domain.
-class BLIMP_HELIUM_EXPORT RevisionGenerator {
- public:
- RevisionGenerator() = default;
-
- const Revision& current() { return revision_; }
-
- const Revision& GetNextRevision();
-
- static RevisionGenerator* GetInstance();
-
- private:
- static base::LazyInstance<RevisionGenerator> instance_;
-
- Revision revision_ = 0;
- base::SequenceChecker sequence_checker_;
-
- DISALLOW_COPY_AND_ASSIGN(RevisionGenerator);
-};
-
-Revision BLIMP_HELIUM_EXPORT GetNextRevision();
-
-} // namespace helium
-} // namespace blimp
-
-#endif // BLIMP_HELIUM_REVISION_GENERATOR_H_
« no previous file with comments | « blimp/helium/result_unittest.cc ('k') | blimp/helium/revision_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698