| OLD | NEW |
| 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_DRIVER_ABOUT_SYNC_UTIL_H_ | 5 #ifndef COMPONENTS_SYNC_DRIVER_ABOUT_SYNC_UTIL_H_ |
| 6 #define COMPONENTS_SYNC_DRIVER_ABOUT_SYNC_UTIL_H_ | 6 #define COMPONENTS_SYNC_DRIVER_ABOUT_SYNC_UTIL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "components/version_info/version_info.h" | 10 #include "components/version_info/version_info.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 extern const char kAboutJS[]; | 29 extern const char kAboutJS[]; |
| 30 extern const char kChromeSyncJS[]; | 30 extern const char kChromeSyncJS[]; |
| 31 extern const char kDataJS[]; | 31 extern const char kDataJS[]; |
| 32 extern const char kEventsJS[]; | 32 extern const char kEventsJS[]; |
| 33 extern const char kSearchJS[]; | 33 extern const char kSearchJS[]; |
| 34 extern const char kSyncIndexJS[]; | 34 extern const char kSyncIndexJS[]; |
| 35 extern const char kSyncLogJS[]; | 35 extern const char kSyncLogJS[]; |
| 36 extern const char kSyncNodeBrowserJS[]; | 36 extern const char kSyncNodeBrowserJS[]; |
| 37 extern const char kSyncSearchJS[]; | 37 extern const char kSyncSearchJS[]; |
| 38 extern const char kTypesJS[]; | 38 extern const char kTypesJS[]; |
| 39 extern const char kUserEventsJS[]; |
| 39 | 40 |
| 40 // Message handlers. | 41 // Message handlers. |
| 41 // Must match the constants used in the resource files. | 42 // Must match the constants used in the resource files. |
| 42 extern const char kDispatchEvent[]; | 43 extern const char kDispatchEvent[]; |
| 43 extern const char kGetAllNodes[]; | 44 extern const char kGetAllNodes[]; |
| 44 extern const char kGetAllNodesCallback[]; | 45 extern const char kGetAllNodesCallback[]; |
| 45 extern const char kRegisterForEvents[]; | 46 extern const char kRegisterForEvents[]; |
| 46 extern const char kRegisterForPerTypeCounters[]; | 47 extern const char kRegisterForPerTypeCounters[]; |
| 47 extern const char kRequestListOfTypes[]; | 48 extern const char kRequestListOfTypes[]; |
| 48 extern const char kRequestUpdatedAboutInfo[]; | 49 extern const char kRequestUpdatedAboutInfo[]; |
| 50 extern const char kRequestUserEventsVisibility[]; |
| 51 extern const char kUserEventsVisibilityCallback[]; |
| 52 extern const char kWriteUserEvent[]; |
| 49 | 53 |
| 50 // Other strings. | 54 // Other strings. |
| 51 // Must match the constants used in the resource files. | 55 // Must match the constants used in the resource files. |
| 52 extern const char kCommit[]; | 56 extern const char kCommit[]; |
| 53 extern const char kCounters[]; | 57 extern const char kCounters[]; |
| 54 extern const char kCounterType[]; | 58 extern const char kCounterType[]; |
| 55 extern const char kModelType[]; | 59 extern const char kModelType[]; |
| 56 extern const char kOnAboutInfoUpdated[]; | 60 extern const char kOnAboutInfoUpdated[]; |
| 57 extern const char kOnCountersUpdated[]; | 61 extern const char kOnCountersUpdated[]; |
| 58 extern const char kOnProtocolEvent[]; | 62 extern const char kOnProtocolEvent[]; |
| 59 extern const char kOnReceivedListOfTypes[]; | 63 extern const char kOnReceivedListOfTypes[]; |
| 60 extern const char kStatus[]; | 64 extern const char kStatus[]; |
| 61 extern const char kTypes[]; | 65 extern const char kTypes[]; |
| 62 extern const char kUpdate[]; | 66 extern const char kUpdate[]; |
| 63 | 67 |
| 64 // This function returns a DictionaryValue which contains all the information | 68 // This function returns a DictionaryValue which contains all the information |
| 65 // required to populate the 'About' tab of about:sync. | 69 // required to populate the 'About' tab of about:sync. |
| 66 // Note that |service| may be null. | 70 // Note that |service| may be null. |
| 67 std::unique_ptr<base::DictionaryValue> ConstructAboutInformation( | 71 std::unique_ptr<base::DictionaryValue> ConstructAboutInformation( |
| 68 SyncService* service, | 72 SyncService* service, |
| 69 version_info::Channel channel); | 73 version_info::Channel channel); |
| 70 | 74 |
| 71 } // namespace sync_ui_util | 75 } // namespace sync_ui_util |
| 72 | 76 |
| 73 } // namespace syncer | 77 } // namespace syncer |
| 74 | 78 |
| 75 #endif // COMPONENTS_SYNC_DRIVER_ABOUT_SYNC_UTIL_H_ | 79 #endif // COMPONENTS_SYNC_DRIVER_ABOUT_SYNC_UTIL_H_ |
| OLD | NEW |