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

Side by Side Diff: sync/internal_api/sync_context_proxy_impl.h

Issue 629733002: replace OVERRIDE and FINAL with override and final in sync/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 SYNC_INTERNAL_API_SYNC_CONTEXT_PROXY_IMPL_H_ 5 #ifndef SYNC_INTERNAL_API_SYNC_CONTEXT_PROXY_IMPL_H_
6 #define SYNC_INTERNAL_API_SYNC_CONTEXT_PROXY_IMPL_H_ 6 #define SYNC_INTERNAL_API_SYNC_CONTEXT_PROXY_IMPL_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/sequenced_task_runner.h" 10 #include "base/sequenced_task_runner.h"
(...skipping 23 matching lines...) Expand all
34 // 34 //
35 // This may fail under some unusual circumstances, like shutdown. Due to the 35 // This may fail under some unusual circumstances, like shutdown. Due to the
36 // nature of WeakPtrs and cross-thread communication, the caller will be 36 // nature of WeakPtrs and cross-thread communication, the caller will be
37 // unable to distinguish a slow success from failure. 37 // unable to distinguish a slow success from failure.
38 // 38 //
39 // Must be called from the thread where the data type lives. 39 // Must be called from the thread where the data type lives.
40 virtual void ConnectTypeToSync( 40 virtual void ConnectTypeToSync(
41 syncer::ModelType type, 41 syncer::ModelType type,
42 const DataTypeState& data_type_state, 42 const DataTypeState& data_type_state,
43 const UpdateResponseDataList& pending_updates, 43 const UpdateResponseDataList& pending_updates,
44 const base::WeakPtr<ModelTypeSyncProxyImpl>& sync_proxy_impl) OVERRIDE; 44 const base::WeakPtr<ModelTypeSyncProxyImpl>& sync_proxy_impl) override;
45 45
46 // Disables syncing for the given type on the sync thread. 46 // Disables syncing for the given type on the sync thread.
47 virtual void Disconnect(syncer::ModelType type) OVERRIDE; 47 virtual void Disconnect(syncer::ModelType type) override;
48 48
49 virtual scoped_ptr<SyncContextProxy> Clone() const OVERRIDE; 49 virtual scoped_ptr<SyncContextProxy> Clone() const override;
50 50
51 private: 51 private:
52 // A SequencedTaskRunner representing the thread where the SyncContext lives. 52 // A SequencedTaskRunner representing the thread where the SyncContext lives.
53 scoped_refptr<base::SequencedTaskRunner> sync_task_runner_; 53 scoped_refptr<base::SequencedTaskRunner> sync_task_runner_;
54 54
55 // The SyncContext this object is wrapping. 55 // The SyncContext this object is wrapping.
56 base::WeakPtr<SyncContext> sync_context_; 56 base::WeakPtr<SyncContext> sync_context_;
57 }; 57 };
58 58
59 } // namespace syncer 59 } // namespace syncer
60 60
61 #endif // SYNC_INTERNAL_API_SYNC_CONTEXT_PROXY_IMPL_H_ 61 #endif // SYNC_INTERNAL_API_SYNC_CONTEXT_PROXY_IMPL_H_
OLDNEW
« no previous file with comments | « sync/internal_api/sync_backup_manager_unittest.cc ('k') | sync/internal_api/sync_encryption_handler_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698