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

Unified Diff: sync/internal_api/protocol_event_buffer.h

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 5 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 | « sync/internal_api/processor_entity_tracker_unittest.cc ('k') | sync/internal_api/protocol_event_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/internal_api/protocol_event_buffer.h
diff --git a/sync/internal_api/protocol_event_buffer.h b/sync/internal_api/protocol_event_buffer.h
deleted file mode 100644
index 71a9c6433b1c1bf945125ed08df892049b9354dc..0000000000000000000000000000000000000000
--- a/sync/internal_api/protocol_event_buffer.h
+++ /dev/null
@@ -1,45 +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 SYNC_INTERNAL_API_PROTOCOL_EVENT_BUFFER_H_
-#define SYNC_INTERNAL_API_PROTOCOL_EVENT_BUFFER_H_
-
-#include <stddef.h>
-
-#include <deque>
-
-#include "base/macros.h"
-#include "base/memory/scoped_vector.h"
-#include "sync/base/sync_export.h"
-
-namespace syncer {
-
-class ProtocolEvent;
-
-// A container for ProtocolEvents.
-//
-// Stores at most kBufferSize events, then starts dropping the oldest events.
-class SYNC_EXPORT ProtocolEventBuffer {
- public:
- static const size_t kBufferSize;
-
- ProtocolEventBuffer();
- ~ProtocolEventBuffer();
-
- // Records an event. May cause the oldest event to be dropped.
- void RecordProtocolEvent(const ProtocolEvent& event);
-
- // Returns the buffered contents. Will not clear the buffer.
- ScopedVector<ProtocolEvent> GetBufferedProtocolEvents() const;
-
- private:
- std::deque<ProtocolEvent*> buffer_;
- STLElementDeleter<std::deque<ProtocolEvent*> > buffer_deleter_;
-
- DISALLOW_COPY_AND_ASSIGN(ProtocolEventBuffer);
-};
-
-} // namespace syncer
-
-#endif // SYNC_INTERNAL_API_PROTOCOL_EVENT_BUFFER_H_
« no previous file with comments | « sync/internal_api/processor_entity_tracker_unittest.cc ('k') | sync/internal_api/protocol_event_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698