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