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 94d764811eb6fc2136fa96e1e71f78894af5067d..a6a5bbed532949b4a85aa4c6e9185e31f0233cd6 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" |
@@ -20,8 +21,10 @@ class CONTENT_EXPORT BackgroundSyncRegistration { |
static const RegistrationId kInitialId; |
BackgroundSyncRegistration(); |
+ virtual ~BackgroundSyncRegistration(); |
+ |
bool Equals(const BackgroundSyncRegistration& other) const; |
- bool IsValid() const; |
+ virtual bool IsValid() const; |
const BackgroundSyncRegistrationOptions* options() const { return &options_; } |
BackgroundSyncRegistrationOptions* options() { return &options_; } |
@@ -38,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 |