OLD | NEW |
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 #ifndef CHROME_BROWSER_SYNC_ENGINE_PROCESS_COMMIT_RESPONSE_COMMAND_H_ | 5 #ifndef CHROME_BROWSER_SYNC_ENGINE_PROCESS_COMMIT_RESPONSE_COMMAND_H_ |
6 #define CHROME_BROWSER_SYNC_ENGINE_PROCESS_COMMIT_RESPONSE_COMMAND_H_ | 6 #define CHROME_BROWSER_SYNC_ENGINE_PROCESS_COMMIT_RESPONSE_COMMAND_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 12 matching lines...) Expand all Loading... |
23 namespace browser_sync { | 23 namespace browser_sync { |
24 | 24 |
25 class ProcessCommitResponseCommand : public ModelChangingSyncerCommand { | 25 class ProcessCommitResponseCommand : public ModelChangingSyncerCommand { |
26 public: | 26 public: |
27 | 27 |
28 ProcessCommitResponseCommand(); | 28 ProcessCommitResponseCommand(); |
29 virtual ~ProcessCommitResponseCommand(); | 29 virtual ~ProcessCommitResponseCommand(); |
30 | 30 |
31 protected: | 31 protected: |
32 // ModelChangingSyncerCommand implementation. | 32 // ModelChangingSyncerCommand implementation. |
33 virtual bool HasCustomGroupsToChange() const OVERRIDE; | |
34 virtual std::set<ModelSafeGroup> GetGroupsToChange( | 33 virtual std::set<ModelSafeGroup> GetGroupsToChange( |
35 const sessions::SyncSession& session) const OVERRIDE; | 34 const sessions::SyncSession& session) const OVERRIDE; |
36 virtual bool ModelNeutralExecuteImpl( | 35 virtual bool ModelNeutralExecuteImpl( |
37 sessions::SyncSession* session) OVERRIDE; | 36 sessions::SyncSession* session) OVERRIDE; |
38 virtual void ModelChangingExecuteImpl( | 37 virtual void ModelChangingExecuteImpl( |
39 sessions::SyncSession* session) OVERRIDE; | 38 sessions::SyncSession* session) OVERRIDE; |
40 | 39 |
41 private: | 40 private: |
42 CommitResponse::ResponseType ProcessSingleCommitResponse( | 41 CommitResponse::ResponseType ProcessSingleCommitResponse( |
43 syncable::WriteTransaction* trans, | 42 syncable::WriteTransaction* trans, |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 const std::string& GetResultingPostCommitName( | 92 const std::string& GetResultingPostCommitName( |
94 const sync_pb::SyncEntity& committed_entry, | 93 const sync_pb::SyncEntity& committed_entry, |
95 const CommitResponse_EntryResponse& entry_response); | 94 const CommitResponse_EntryResponse& entry_response); |
96 | 95 |
97 DISALLOW_COPY_AND_ASSIGN(ProcessCommitResponseCommand); | 96 DISALLOW_COPY_AND_ASSIGN(ProcessCommitResponseCommand); |
98 }; | 97 }; |
99 | 98 |
100 } // namespace browser_sync | 99 } // namespace browser_sync |
101 | 100 |
102 #endif // CHROME_BROWSER_SYNC_ENGINE_PROCESS_COMMIT_RESPONSE_COMMAND_H_ | 101 #endif // CHROME_BROWSER_SYNC_ENGINE_PROCESS_COMMIT_RESPONSE_COMMAND_H_ |
OLD | NEW |