Searched refs:model_type (Results 1 - 25 of 56) sorted by relevance

123

/external/chromium/chrome/browser/sync/notifier/
H A Dregistration_manager.cc13 #include "chrome/browser/sync/syncable/model_type.h"
20 : model_type(syncable::UNSPECIFIED),
27 DCHECK_NE(model_type, syncable::UNSPECIFIED);
33 registration_manager->DoRegisterType(model_type);
51 syncable::ModelType model_type = syncable::ModelTypeFromInt(i); local
52 RegistrationStatus* status = &registration_statuses_[model_type];
53 status->model_type = model_type;
68 syncable::ModelType model_type = syncable::ModelTypeFromInt(i); local
69 if (types.count(model_type) >
81 MarkRegistrationLost( syncable::ModelType model_type) argument
93 syncable::ModelType model_type = syncable::ModelTypeFromInt(i); local
105 syncable::ModelType model_type = syncable::ModelTypeFromInt(i); local
119 syncable::ModelType model_type = syncable::ModelTypeFromInt(i); local
138 syncable::ModelType model_type = syncable::ModelTypeFromInt(i); local
173 TryRegisterType(syncable::ModelType model_type, bool is_retry) argument
217 DoRegisterType(syncable::ModelType model_type) argument
230 UnregisterType(syncable::ModelType model_type) argument
[all...]
H A Dregistration_manager.h18 #include "chrome/browser/sync/syncable/model_type.h"
70 // Marks the registration for the |model_type| lost and re-registers
72 void MarkRegistrationLost(syncable::ModelType model_type);
107 // Calls registration_manager->DoRegister(model_type). (needed by
112 syncable::ModelType model_type; member in struct:sync_notifier::RegistrationManager::RegistrationStatus
136 void TryRegisterType(syncable::ModelType model_type,
143 void DoRegisterType(syncable::ModelType model_type);
146 void UnregisterType(syncable::ModelType model_type);
149 bool IsTypeRegistered(syncable::ModelType model_type) const;
H A Dinvalidation_util.h13 #include "chrome/browser/sync/syncable/model_type.h"
20 bool RealModelTypeToObjectId(syncable::ModelType model_type,
24 syncable::ModelType* model_type);
H A Dinvalidation_util.cc16 bool RealModelTypeToObjectId(syncable::ModelType model_type, argument
20 model_type, &notification_type)) {
28 syncable::ModelType* model_type) {
31 object_id.name(), model_type);
27 ObjectIdToRealModelType(const invalidation::ObjectId& object_id, syncable::ModelType* model_type) argument
H A Dregistration_manager_unittest.cc16 #include "chrome/browser/sync/syncable/model_type.h"
25 syncable::ModelType model_type = syncable::UNSPECIFIED; local
26 EXPECT_TRUE(ObjectIdToRealModelType(object_id, &model_type));
27 return model_type;
63 void LoseRegistration(syncable::ModelType model_type) { argument
64 EXPECT_GT(registered_types_.count(model_type), 0u);
65 registered_types_.erase(model_type);
77 syncable::ModelType model_type = ObjectIdToModelType(oid); local
78 EXPECT_EQ(0u, registered_types_.count(model_type));
79 registered_types_.insert(model_type);
83 syncable::ModelType model_type = ObjectIdToModelType(oid); local
[all...]
H A Dchrome_invalidation_client.cc15 #include "chrome/browser/sync/syncable/model_type.h"
122 syncable::ModelType model_type; local
123 if (!ObjectIdToRealModelType(invalidation.object_id(), &model_type)) {
142 max_invalidation_versions_.find(model_type);
149 max_invalidation_versions_[model_type] = invalidation.version();
158 types.insert(model_type);
201 syncable::ModelType model_type; local
202 if (!ObjectIdToRealModelType(object_id, &model_type)) {
210 registration_manager_->MarkRegistrationLost(model_type);
/external/chromium/chrome/browser/sync/engine/
H A Dcleanup_disabled_types_command.cc10 #include "chrome/browser/sync/syncable/model_type.h"
22 syncable::ModelType model_type = syncable::ModelTypeFromInt(i); local
24 if (session->routing_info().count(model_type))
45 if (previous_routing.empty() || previous_routing.count(model_type))
46 to_cleanup.insert(model_type);
H A Dread_node_mock.h20 bool(syncable::ModelType model_type, const std::string& tag));
H A Dapply_updates_command.cc53 syncable::ModelType model_type = syncable::ModelTypeFromInt(i); local
56 dir->set_initial_sync_ended_for_type(model_type, true);
H A Dsyncapi.h53 #include "chrome/browser/sync/syncable/model_type.h"
150 virtual bool InitByClientTagLookup(syncable::ModelType model_type,
269 static std::string GenerateSyncableHash(syncable::ModelType model_type,
315 virtual bool InitByClientTagLookup(syncable::ModelType model_type,
318 // Create a new node with the specified parent and predecessor. |model_type|
324 bool InitByCreation(syncable::ModelType model_type,
334 bool InitUniqueByCreation(syncable::ModelType model_type,
421 void PutModelType(syncable::ModelType model_type);
486 virtual bool InitByClientTagLookup(syncable::ModelType model_type,
734 // is restricted to items of the ModelType indicated by |model_type|
[all...]
H A Ddownload_updates_command.cc50 syncable::ModelType model_type = syncable::ModelTypeFromInt(i->first); local
54 dir->GetDownloadProgress(model_type, progress_marker);
H A Dprocess_updates_command.cc80 const syncable::ModelType model_type = entry.GetModelType(); local
87 model_type);
H A Dverify_updates_command.cc85 const syncable::ModelType model_type = entry.GetModelType(); local
119 deleted, is_directory, model_type);
/external/chromium/chrome/browser/sync/syncable/
H A Dmodel_type.cc5 #include "chrome/browser/sync/syncable/model_type.h"
67 ModelType model_type = ModelTypeFromInt(i); local
68 if (GetExtensionFieldNumberFromModelType(model_type) == field_number)
69 return model_type;
75 int GetExtensionFieldNumberFromModelType(ModelType model_type) { argument
76 switch (model_type) {
187 std::string ModelTypeToString(ModelType model_type) { argument
188 switch (model_type) {
218 StringValue* ModelTypeToValue(ModelType model_type) { argument
219 if (model_type >
350 PostTimeToTypeHistogram(ModelType model_type, base::TimeDelta time) argument
419 RealModelTypeToNotificationType(ModelType model_type, std::string* notification_type) argument
462 NotificationTypeToRealModelType(const std::string& notification_type, ModelType* model_type) argument
[all...]
H A Dmodel_type.h105 int GetExtensionFieldNumberFromModelType(ModelType model_type);
107 // Returns a string that represents the name of |model_type|.
108 std::string ModelTypeToString(ModelType model_type);
113 StringValue* ModelTypeToValue(ModelType model_type);
140 void PostTimeToTypeHistogram(ModelType model_type, base::TimeDelta time);
144 // |model_type| was a real model type and |notification_type| was
146 bool RealModelTypeToNotificationType(ModelType model_type,
151 // type and |model_type| was filled in.
153 ModelType* model_type);
H A Dmodel_type_unittest.cc5 #include "chrome/browser/sync/syncable/model_type.h"
32 ModelType model_type = ModelTypeFromInt(i); local
33 ExpectStringValue(ModelTypeToString(model_type),
34 ModelTypeToValue(model_type));
/external/chromium/chrome/browser/sync/
H A Dabstract_profile_sync_service_test.cc42 ModelType model_type) {
43 switch (model_type) {
67 ModelType model_type, UserShare* user_share,
75 std::string tag_name = GetTagForType(model_type);
92 syncable::AddDefaultExtensionValue(model_type, &specifics);
103 bool AbstractProfileSyncServiceTest::CreateRoot(ModelType model_type) { argument
105 model_type,
111 AbstractProfileSyncServiceTest* test, ModelType model_type)
112 : test_(test), model_type_(model_type), success_(false) {
41 GetTagForType( ModelType model_type) argument
66 CreateRoot( ModelType model_type, UserShare* user_share, TestIdFactory* ids) argument
110 CreateRootTask( AbstractProfileSyncServiceTest* test, ModelType model_type) argument
H A Dabstract_profile_sync_service_test.h16 #include "chrome/browser/sync/syncable/model_type.h"
33 static const std::string GetTagForType(syncable::ModelType model_type);
35 static bool CreateRoot(syncable::ModelType model_type,
45 bool CreateRoot(syncable::ModelType model_type);
58 syncable::ModelType model_type);
H A Djs_sync_manager_observer.cc14 #include "chrome/browser/sync/syncable/model_type.h"
26 syncable::ModelType model_type,
32 syncable::ModelTypeToString(model_type)));
43 syncable::ModelType model_type) {
46 syncable::ModelTypeToString(model_type)));
25 OnChangesApplied( syncable::ModelType model_type, const sync_api::BaseTransaction* trans, const sync_api::SyncManager::ChangeRecord* changes, int change_count) argument
42 OnChangesComplete( syncable::ModelType model_type) argument
H A Djs_sync_manager_observer.h28 syncable::ModelType model_type,
32 virtual void OnChangesComplete(syncable::ModelType model_type);
/external/chromium/chrome/browser/sync/glue/
H A Dextension_sync_traits.h9 #include "chrome/browser/sync/syncable/model_type.h"
50 syncable::ModelType model_type,
61 const syncable::ModelType model_type; member in struct:browser_sync::ExtensionSyncTraits
H A Dtheme_model_associator.h11 #include "chrome/browser/sync/syncable/model_type.h"
27 static syncable::ModelType model_type() { return syncable::THEMES; } function in class:browser_sync::ThemeModelAssociator
H A Dextension_model_associator.h12 #include "chrome/browser/sync/syncable/model_type.h"
33 static syncable::ModelType model_type() { return syncable::EXTENSIONS; } function in class:browser_sync::ExtensionModelAssociator
H A Dextension_sync_traits.cc18 syncable::ModelType model_type,
26 : model_type(model_type),
17 ExtensionSyncTraits( syncable::ModelType model_type, IsValidAndSyncablePredicate is_valid_and_syncable, ShouldHandleExtensionUninstallPredicate should_handle_extension_uninstall, const char* root_node_tag, ExtensionSpecificsGetter extension_specifics_getter, ExtensionSpecificsSetter extension_specifics_setter, ExtensionSpecificsEntityGetter extension_specifics_entity_getter) argument
H A Dextension_model_associator.cc65 return encrypted_types.count(traits_.model_type) == 0 ||

Completed in 785 milliseconds

123