diff options
Diffstat (limited to 'content/browser/background_sync/background_sync_registration.cc')
-rw-r--r-- | content/browser/background_sync/background_sync_registration.cc | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/content/browser/background_sync/background_sync_registration.cc b/content/browser/background_sync/background_sync_registration.cc new file mode 100644 index 0000000..d6a122c --- /dev/null +++ b/content/browser/background_sync/background_sync_registration.cc @@ -0,0 +1,24 @@ +// Copyright 2015 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. + +#include "content/browser/background_sync/background_sync_registration.h" + +namespace content { + +const BackgroundSyncRegistration::RegistrationId + BackgroundSyncRegistration::kInvalidRegistrationId = -1; + +const BackgroundSyncRegistration::RegistrationId + BackgroundSyncRegistration::kInitialId = 0; + +bool BackgroundSyncRegistration::Equals( + const BackgroundSyncRegistration& other) const { + return options_.Equals(other.options_); +} + +bool BackgroundSyncRegistration::IsValid() const { + return id_ != kInvalidRegistrationId; +} + +} // namespace content |