Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(776)

Side by Side Diff: components/sync_driver/about_sync_util.h

Issue 2203673002: [Sync] Move //components/sync_driver to //components/sync/driver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sd-a
Patch Set: Full change rebased on static lib. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/sync_driver/PRESUBMIT.py ('k') | components/sync_driver/about_sync_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_SYNC_DRIVER_ABOUT_SYNC_UTIL_H_
6 #define COMPONENTS_SYNC_DRIVER_ABOUT_SYNC_UTIL_H_
7
8 #include <memory>
9
10 #include "components/version_info/version_info.h"
11
12 class SigninManagerBase;
13
14 namespace base {
15 class DictionaryValue;
16 }
17
18 namespace sync_driver {
19
20 class SyncService;
21
22 namespace sync_ui_util {
23
24 // These strings are used from logs to pull out specific data from sync; we
25 // don't want these to ever go out of sync between the logs and sync util.
26 extern const char kIdentityTitle[];
27 extern const char kDetailsKey[];
28
29 // Resource paths.
30 // Must match the resource file names.
31 extern const char kAboutJS[];
32 extern const char kChromeSyncJS[];
33 extern const char kDataJS[];
34 extern const char kEventsJS[];
35 extern const char kSearchJS[];
36 extern const char kSyncIndexJS[];
37 extern const char kSyncLogJS[];
38 extern const char kSyncNodeBrowserJS[];
39 extern const char kSyncSearchJS[];
40 extern const char kTypesJS[];
41
42 // Message handlers.
43 // Must match the constants used in the resource files.
44 extern const char kDispatchEvent[];
45 extern const char kGetAllNodes[];
46 extern const char kGetAllNodesCallback[];
47 extern const char kRegisterForEvents[];
48 extern const char kRegisterForPerTypeCounters[];
49 extern const char kRequestListOfTypes[];
50 extern const char kRequestUpdatedAboutInfo[];
51
52 // Other strings.
53 // Must match the constants used in the resource files.
54 extern const char kCommit[];
55 extern const char kCounters[];
56 extern const char kCounterType[];
57 extern const char kModelType[];
58 extern const char kOnAboutInfoUpdated[];
59 extern const char kOnCountersUpdated[];
60 extern const char kOnProtocolEvent[];
61 extern const char kOnReceivedListOfTypes[];
62 extern const char kStatus[];
63 extern const char kTypes[];
64 extern const char kUpdate[];
65
66 // This function returns a DictionaryValue which contains all the information
67 // required to populate the 'About' tab of about:sync.
68 // Note that |service| may be NULL.
69 std::unique_ptr<base::DictionaryValue> ConstructAboutInformation(
70 sync_driver::SyncService* service,
71 SigninManagerBase* signin,
72 version_info::Channel channel);
73
74 } // namespace sync_ui_util
75
76 } // namespace sync_driver
77
78 #endif // COMPONENTS_SYNC_DRIVER_ABOUT_SYNC_UTIL_H_
OLDNEW
« no previous file with comments | « components/sync_driver/PRESUBMIT.py ('k') | components/sync_driver/about_sync_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698