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

Side by Side Diff: components/sync/engine_impl/cycle/sync_cycle_context.h

Issue 2641523004: [Sync] Make directory types registration explicit in ModelTypeRegistry (Closed)
Patch Set: Address comments Created 3 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 COMPONENTS_SYNC_ENGINE_IMPL_CYCLE_SYNC_CYCLE_CONTEXT_H_ 5 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_CYCLE_SYNC_CYCLE_CONTEXT_H_
6 #define COMPONENTS_SYNC_ENGINE_IMPL_CYCLE_SYNC_CYCLE_CONTEXT_H_ 6 #define COMPONENTS_SYNC_ENGINE_IMPL_CYCLE_SYNC_CYCLE_CONTEXT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 bool client_enabled_pre_commit_update_avoidance, 49 bool client_enabled_pre_commit_update_avoidance,
50 const std::string& invalidator_client_id); 50 const std::string& invalidator_client_id);
51 51
52 ~SyncCycleContext(); 52 ~SyncCycleContext();
53 53
54 ServerConnectionManager* connection_manager() { return connection_manager_; } 54 ServerConnectionManager* connection_manager() { return connection_manager_; }
55 syncable::Directory* directory() { return directory_; } 55 syncable::Directory* directory() { return directory_; }
56 56
57 ModelTypeSet GetEnabledTypes() const; 57 ModelTypeSet GetEnabledTypes() const;
58 58
59 void SetRoutingInfo(const ModelSafeRoutingInfo& routing_info);
60
61 ExtensionsActivity* extensions_activity() { 59 ExtensionsActivity* extensions_activity() {
62 return extensions_activity_.get(); 60 return extensions_activity_.get();
63 } 61 }
64 62
65 DebugInfoGetter* debug_info_getter() { return debug_info_getter_; } 63 DebugInfoGetter* debug_info_getter() { return debug_info_getter_; }
66 64
67 // Talk notification status. 65 // Talk notification status.
68 void set_notifications_enabled(bool enabled) { 66 void set_notifications_enabled(bool enabled) {
69 notifications_enabled_ = enabled; 67 notifications_enabled_ = enabled;
70 } 68 }
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 172
175 // If there's a cookie jar mismatch, whether the cookie jar was empty or not. 173 // If there's a cookie jar mismatch, whether the cookie jar was empty or not.
176 bool cookie_jar_empty_; 174 bool cookie_jar_empty_;
177 175
178 DISALLOW_COPY_AND_ASSIGN(SyncCycleContext); 176 DISALLOW_COPY_AND_ASSIGN(SyncCycleContext);
179 }; 177 };
180 178
181 } // namespace syncer 179 } // namespace syncer
182 180
183 #endif // COMPONENTS_SYNC_ENGINE_IMPL_CYCLE_SYNC_CYCLE_CONTEXT_H_ 181 #endif // COMPONENTS_SYNC_ENGINE_IMPL_CYCLE_SYNC_CYCLE_CONTEXT_H_
OLDNEW
« no previous file with comments | « components/sync/engine_impl/cycle/sync_cycle.h ('k') | components/sync/engine_impl/cycle/sync_cycle_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698