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

Side by Side Diff: chrome/browser/sync/engine/syncapi.h

Issue 7477008: Remove explicit keyword from multi-argument constructors (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // This file defines the "sync API", an interface to the syncer 5 // This file defines the "sync API", an interface to the syncer
6 // backend that exposes (1) the core functionality of maintaining a consistent 6 // backend that exposes (1) the core functionality of maintaining a consistent
7 // local snapshot of a hierarchical object set; (2) a means to transactionally 7 // local snapshot of a hierarchical object set; (2) a means to transactionally
8 // access and modify those objects; (3) a means to control client/server 8 // access and modify those objects; (3) a means to control client/server
9 // synchronization tasks, namely: pushing local object modifications to a 9 // synchronization tasks, namely: pushing local object modifications to a
10 // server, pulling nonlocal object modifications from a server to this client, 10 // server, pulling nonlocal object modifications from a server to this client,
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 }; 587 };
588 588
589 // Sync API's WriteTransaction is a read/write BaseTransaction. It wraps 589 // Sync API's WriteTransaction is a read/write BaseTransaction. It wraps
590 // a syncable::WriteTransaction. 590 // a syncable::WriteTransaction.
591 // 591 //
592 // NOTE: Only a single model type can be mutated for a given 592 // NOTE: Only a single model type can be mutated for a given
593 // WriteTransaction. 593 // WriteTransaction.
594 class WriteTransaction : public BaseTransaction { 594 class WriteTransaction : public BaseTransaction {
595 public: 595 public:
596 // Start a new read/write transaction. 596 // Start a new read/write transaction.
597 explicit WriteTransaction(const tracked_objects::Location& from_here, 597 WriteTransaction(const tracked_objects::Location& from_here,
598 UserShare* share); 598 UserShare* share);
599 virtual ~WriteTransaction(); 599 virtual ~WriteTransaction();
600 600
601 // Provide access to the syncable.h transaction from the API WriteNode. 601 // Provide access to the syncable.h transaction from the API WriteNode.
602 virtual syncable::BaseTransaction* GetWrappedTrans() const; 602 virtual syncable::BaseTransaction* GetWrappedTrans() const;
603 syncable::WriteTransaction* GetWrappedWriteTrans() { return transaction_; } 603 syncable::WriteTransaction* GetWrappedWriteTrans() { return transaction_; }
604 604
605 protected: 605 protected:
606 WriteTransaction() {} 606 WriteTransaction() {}
607 607
608 void SetTransaction(syncable::WriteTransaction* trans) { 608 void SetTransaction(syncable::WriteTransaction* trans) {
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
1070 private: 1070 private:
1071 // An opaque pointer to the nested private class. 1071 // An opaque pointer to the nested private class.
1072 SyncInternal* data_; 1072 SyncInternal* data_;
1073 1073
1074 DISALLOW_COPY_AND_ASSIGN(SyncManager); 1074 DISALLOW_COPY_AND_ASSIGN(SyncManager);
1075 }; 1075 };
1076 1076
1077 } // namespace sync_api 1077 } // namespace sync_api
1078 1078
1079 #endif // CHROME_BROWSER_SYNC_ENGINE_SYNCAPI_H_ 1079 #endif // CHROME_BROWSER_SYNC_ENGINE_SYNCAPI_H_
OLDNEW
« no previous file with comments | « chrome/browser/sessions/tab_restore_service.h ('k') | chrome/browser/sync/glue/syncable_service_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698