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

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

Issue 1545243002: Convert Pass()→std::move() in //content/browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_MANAGER_H_
6 #define CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_MANAGER_H_ 6 #define CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_MANAGER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 void OnRegistrationDeleted(int64_t sw_registration_id, 104 void OnRegistrationDeleted(int64_t sw_registration_id,
105 const GURL& pattern) override; 105 const GURL& pattern) override;
106 void OnStorageWiped() override; 106 void OnStorageWiped() override;
107 107
108 BackgroundSyncNetworkObserver* GetNetworkObserverForTesting() { 108 BackgroundSyncNetworkObserver* GetNetworkObserverForTesting() {
109 return network_observer_.get(); 109 return network_observer_.get();
110 } 110 }
111 111
112 void set_clock(scoped_ptr<base::Clock> clock) { 112 void set_clock(scoped_ptr<base::Clock> clock) {
113 DCHECK_CURRENTLY_ON(BrowserThread::IO); 113 DCHECK_CURRENTLY_ON(BrowserThread::IO);
114 clock_ = clock.Pass(); 114 clock_ = std::move(clock);
115 } 115 }
116 void set_max_sync_attempts(int max_attempts) { 116 void set_max_sync_attempts(int max_attempts) {
117 DCHECK_CURRENTLY_ON(BrowserThread::IO); 117 DCHECK_CURRENTLY_ON(BrowserThread::IO);
118 parameters_->max_sync_attempts = max_attempts; 118 parameters_->max_sync_attempts = max_attempts;
119 } 119 }
120 120
121 protected: 121 protected:
122 // A registration might be referenced by the client longer than 122 // A registration might be referenced by the client longer than
123 // the BackgroundSyncManager needs to keep track of it (e.g., the event has 123 // the BackgroundSyncManager needs to keep track of it (e.g., the event has
124 // finished firing). The BackgroundSyncManager reference counts its 124 // finished firing). The BackgroundSyncManager reference counts its
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 scoped_ptr<base::Clock> clock_; 410 scoped_ptr<base::Clock> clock_;
411 411
412 base::WeakPtrFactory<BackgroundSyncManager> weak_ptr_factory_; 412 base::WeakPtrFactory<BackgroundSyncManager> weak_ptr_factory_;
413 413
414 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncManager); 414 DISALLOW_COPY_AND_ASSIGN(BackgroundSyncManager);
415 }; 415 };
416 416
417 } // namespace content 417 } // namespace content
418 418
419 #endif // CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_MANAGER_H_ 419 #endif // CONTENT_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698