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

Side by Side Diff: content/browser/background_sync/background_sync_registration_options.h

Issue 1617063002: [BackgroundSync Cleanup] Remove power observer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Found more Created 4 years, 11 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 unified diff | Download patch
OLDNEW
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_OPTIONS_H_ 5 #ifndef CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_REGISTRATION_OPTIONS_H_
6 #define CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_REGISTRATION_OPTIONS_H_ 6 #define CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_REGISTRATION_OPTIONS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
11 11
12 #include "content/browser/background_sync/background_sync.pb.h" 12 #include "content/browser/background_sync/background_sync.pb.h"
13 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 14
15 namespace content { 15 namespace content {
16 16
17 // The options passed to BackgroundSyncManager::Registration. 17 // The options passed to BackgroundSyncManager::Registration.
18 struct CONTENT_EXPORT BackgroundSyncRegistrationOptions { 18 struct CONTENT_EXPORT BackgroundSyncRegistrationOptions {
19 bool Equals(const BackgroundSyncRegistrationOptions& other) const; 19 bool Equals(const BackgroundSyncRegistrationOptions& other) const;
20 20
21 std::string tag; 21 std::string tag;
22 int64_t min_period = 0; 22 int64_t min_period = 0;
23 SyncNetworkState network_state = NETWORK_STATE_ONLINE; 23 SyncNetworkState network_state = NETWORK_STATE_ONLINE;
24 SyncPowerState power_state = POWER_STATE_AVOID_DRAINING;
25 SyncPeriodicity periodicity = SYNC_ONE_SHOT; 24 SyncPeriodicity periodicity = SYNC_ONE_SHOT;
26 }; 25 };
27 26
28 } // namespace content 27 } // namespace content
29 28
30 #endif // CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_REGISTRATION_OPTIONS_ H_ 29 #endif // CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_REGISTRATION_OPTIONS_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698