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 "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "components/version_info/version_info.h" | 9 #include "components/version_info/version_info.h" |
10 | 10 |
11 class SigninManagerBase; | 11 class SigninManagerBase; |
12 | 12 |
13 namespace base { | 13 namespace base { |
14 class DictionaryValue; | 14 class DictionaryValue; |
15 } | 15 } |
16 | 16 |
17 namespace sync_driver { | 17 namespace sync_driver { |
18 | |
18 class SyncService; | 19 class SyncService; |
19 } | |
20 | 20 |
21 // These strings are used from logs to pull out specific data from sync; we | 21 // These strings are used from logs to pull out specific data from sync; we |
22 // don't want these to ever go out of sync between the logs and sync util. | 22 // don't want these to ever go out of sync between the logs and sync util. |
23 extern const char kIdentityTitle[]; | 23 extern const char kIdentityTitle[]; |
24 extern const char kDetailsKey[]; | 24 extern const char kDetailsKey[]; |
25 | 25 |
26 namespace sync_ui_util { | 26 // Resource paths. |
27 // Must match the resource file names. | |
28 extern const char kAboutJS[]; | |
29 extern const char kChromeSyncJS[]; | |
30 extern const char kDataJS[]; | |
31 extern const char kEventsJS[]; | |
32 extern const char kSearchJS[]; | |
33 extern const char kSyncIndexJS[]; | |
34 extern const char kSyncLogJS[]; | |
35 extern const char kSyncNodeBrowserJS[]; | |
36 extern const char kSyncSearchJS[]; | |
37 extern const char kTypesJS[]; | |
38 | |
39 // Message handlers. | |
40 // Must match the constants used in the resource files. | |
41 extern const char kDispatchEvent[]; | |
42 extern const char kGetAllNodes[]; | |
43 extern const char kGetAllNodesCallback[]; | |
44 extern const char kRegisterForEvents[]; | |
45 extern const char kRegisterForPerTypeCounters[]; | |
46 extern const char kRequestListOfTypes[]; | |
47 extern const char kRequestUpdatedAboutInfo[]; | |
48 | |
49 // Other strings. | |
50 // Must match the constants used in the resource files. | |
51 extern const char kCommit[]; | |
Nicolas Zea
2015/09/15 20:17:47
I'm a bit hesitant about having these names be so
droger
2015/09/16 08:38:31
Sounds good.
Instead of renaming the sync_ui_util
| |
52 extern const char kCounters[]; | |
53 extern const char kCounterType[]; | |
54 extern const char kModelType[]; | |
55 extern const char kOnAboutInfoUpdated[]; | |
56 extern const char kOnCountersUpdated[]; | |
57 extern const char kOnProtocolEvent[]; | |
58 extern const char kOnReceivedListOfTypes[]; | |
59 extern const char kStatus[]; | |
60 extern const char kTypes[]; | |
61 extern const char kUpdate[]; | |
62 | |
27 // This function returns a DictionaryValue which contains all the information | 63 // This function returns a DictionaryValue which contains all the information |
28 // required to populate the 'About' tab of about:sync. | 64 // required to populate the 'About' tab of about:sync. |
29 // Note that |service| may be NULL. | 65 // Note that |service| may be NULL. |
30 scoped_ptr<base::DictionaryValue> ConstructAboutInformation( | 66 scoped_ptr<base::DictionaryValue> ConstructAboutInformation( |
31 sync_driver::SyncService* service, | 67 sync_driver::SyncService* service, |
32 SigninManagerBase* signin, | 68 SigninManagerBase* signin, |
33 version_info::Channel channel); | 69 version_info::Channel channel); |
34 } | 70 |
71 } // sync_driver | |
35 | 72 |
36 #endif // COMPONENTS_SYNC_DRIVER_ABOUT_SYNC_UTIL_H_ | 73 #endif // COMPONENTS_SYNC_DRIVER_ABOUT_SYNC_UTIL_H_ |
OLD | NEW |