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

Unified Diff: content/browser/background_sync/background_sync_registration.h

Issue 1282013004: BackgroundSyncManager tracks client registrations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed test Created 5 years, 3 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: content/browser/background_sync/background_sync_registration.h
diff --git a/content/browser/background_sync/background_sync_registration.h b/content/browser/background_sync/background_sync_registration.h
index e9653293fa200a1732993fc821bf883e9e5ff5ba..575ecf91e7e41b85a11bbbcc56f92c54a5b4b7f4 100644
--- a/content/browser/background_sync/background_sync_registration.h
+++ b/content/browser/background_sync/background_sync_registration.h
@@ -5,6 +5,7 @@
#ifndef CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_REGISTRATION_H_
#define CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_REGISTRATION_H_
+#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "content/browser/background_sync/background_sync.pb.h"
#include "content/browser/background_sync/background_sync_registration_options.h"
@@ -19,6 +20,9 @@ class CONTENT_EXPORT BackgroundSyncRegistration {
using RegistrationId = int64_t;
static const RegistrationId kInitialId;
+ BackgroundSyncRegistration() = default;
+ ~BackgroundSyncRegistration() = default;
+
bool Equals(const BackgroundSyncRegistration& other) const;
bool IsValid() const;
@@ -37,6 +41,8 @@ class CONTENT_EXPORT BackgroundSyncRegistration {
BackgroundSyncRegistrationOptions options_;
RegistrationId id_ = kInvalidRegistrationId;
SyncState sync_state_ = SYNC_STATE_PENDING;
+
+ DISALLOW_COPY_AND_ASSIGN(BackgroundSyncRegistration);
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698