OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #include "sync/internal_api/public/base/model_type.h" | 5 #include "sync/internal_api/public/base/model_type.h" |
6 | 6 |
7 #include "base/string_split.h" | 7 #include "base/string_split.h" |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 #include "sync/protocol/app_notification_specifics.pb.h" | 9 #include "sync/protocol/app_notification_specifics.pb.h" |
10 #include "sync/protocol/app_setting_specifics.pb.h" | 10 #include "sync/protocol/app_setting_specifics.pb.h" |
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 case TYPED_URLS: | 446 case TYPED_URLS: |
447 *notification_type = kTypedUrlNotificationType; | 447 *notification_type = kTypedUrlNotificationType; |
448 return true; | 448 return true; |
449 case EXTENSIONS: | 449 case EXTENSIONS: |
450 *notification_type = kExtensionNotificationType; | 450 *notification_type = kExtensionNotificationType; |
451 return true; | 451 return true; |
452 case NIGORI: | 452 case NIGORI: |
453 *notification_type = kNigoriNotificationType; | 453 *notification_type = kNigoriNotificationType; |
454 return true; | 454 return true; |
455 case APP_SETTINGS: | 455 case APP_SETTINGS: |
456 *notification_type = kAppNotificationType; | 456 *notification_type = kAppSettingNotificationType; |
457 return true; | 457 return true; |
458 case APPS: | 458 case APPS: |
459 *notification_type = kAppNotificationType; | 459 *notification_type = kAppNotificationType; |
460 return true; | 460 return true; |
461 case SEARCH_ENGINES: | 461 case SEARCH_ENGINES: |
462 *notification_type = kSearchEngineNotificationType; | 462 *notification_type = kSearchEngineNotificationType; |
463 return true; | 463 return true; |
464 case SESSIONS: | 464 case SESSIONS: |
465 *notification_type = kSessionNotificationType; | 465 *notification_type = kSessionNotificationType; |
466 return true; | 466 return true; |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
531 *model_type = UNSPECIFIED; | 531 *model_type = UNSPECIFIED; |
532 return false; | 532 return false; |
533 } | 533 } |
534 } | 534 } |
535 | 535 |
536 bool IsRealDataType(ModelType model_type) { | 536 bool IsRealDataType(ModelType model_type) { |
537 return model_type >= FIRST_REAL_MODEL_TYPE && model_type < MODEL_TYPE_COUNT; | 537 return model_type >= FIRST_REAL_MODEL_TYPE && model_type < MODEL_TYPE_COUNT; |
538 } | 538 } |
539 | 539 |
540 } // namespace syncer | 540 } // namespace syncer |
OLD | NEW |