OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/browser/background_sync/background_sync_registration.h" | 5 #include "content/browser/background_sync/background_sync_registration.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
11 #include "base/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
12 | 12 |
13 namespace content { | 13 namespace content { |
14 | 14 |
15 const BackgroundSyncRegistration::RegistrationId | 15 const BackgroundSyncRegistration::RegistrationId |
16 BackgroundSyncRegistration::kInvalidRegistrationId = -1; | 16 BackgroundSyncRegistration::kInvalidRegistrationId = -1; |
17 | 17 |
18 const BackgroundSyncRegistration::RegistrationId | 18 const BackgroundSyncRegistration::RegistrationId |
19 BackgroundSyncRegistration::kInitialId = 0; | 19 BackgroundSyncRegistration::kInitialId = 0; |
20 | 20 |
21 bool BackgroundSyncRegistration::Equals( | 21 bool BackgroundSyncRegistration::Equals( |
(...skipping 11 matching lines...) Expand all Loading... |
33 case mojom::BackgroundSyncState::REREGISTERED_WHILE_FIRING: | 33 case mojom::BackgroundSyncState::REREGISTERED_WHILE_FIRING: |
34 return true; | 34 return true; |
35 case mojom::BackgroundSyncState::PENDING: | 35 case mojom::BackgroundSyncState::PENDING: |
36 return false; | 36 return false; |
37 } | 37 } |
38 NOTREACHED(); | 38 NOTREACHED(); |
39 return false; | 39 return false; |
40 } | 40 } |
41 | 41 |
42 } // namespace content | 42 } // namespace content |
OLD | NEW |