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 #ifndef CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_REGISTRATION_H_ | 5 #ifndef CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_REGISTRATION_H_ |
6 #define CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_REGISTRATION_H_ | 6 #define CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_REGISTRATION_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
14 #include "content/browser/background_sync/background_sync.pb.h" | 14 #include "content/browser/background_sync/background_sync.pb.h" |
15 #include "content/browser/background_sync/background_sync_registration_options.h
" | 15 #include "content/browser/background_sync/background_sync_registration_options.h
" |
16 #include "content/common/background_sync_service.mojom.h" | 16 #include "content/common/background_sync_service.mojom.h" |
17 #include "content/common/content_export.h" | 17 #include "content/common/content_export.h" |
18 #include "third_party/mojo/src/mojo/public/cpp/bindings/type_converter.h" | 18 #include "mojo/public/cpp/bindings/type_converter.h" |
19 | 19 |
20 namespace content { | 20 namespace content { |
21 | 21 |
22 class CONTENT_EXPORT BackgroundSyncRegistration { | 22 class CONTENT_EXPORT BackgroundSyncRegistration { |
23 public: | 23 public: |
24 using RegistrationId = int64_t; | 24 using RegistrationId = int64_t; |
25 using StateCallback = base::Callback<void(BackgroundSyncState)>; | 25 using StateCallback = base::Callback<void(BackgroundSyncState)>; |
26 | 26 |
27 static const RegistrationId kInitialId; | 27 static const RegistrationId kInitialId; |
28 | 28 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 template <> | 86 template <> |
87 struct CONTENT_EXPORT TypeConverter<content::SyncRegistrationPtr, | 87 struct CONTENT_EXPORT TypeConverter<content::SyncRegistrationPtr, |
88 content::BackgroundSyncRegistration> { | 88 content::BackgroundSyncRegistration> { |
89 static content::SyncRegistrationPtr Convert( | 89 static content::SyncRegistrationPtr Convert( |
90 const content::BackgroundSyncRegistration& input); | 90 const content::BackgroundSyncRegistration& input); |
91 }; | 91 }; |
92 | 92 |
93 } // namespace | 93 } // namespace |
94 | 94 |
95 #endif // CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_REGISTRATION_H_ | 95 #endif // CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_REGISTRATION_H_ |
OLD | NEW |