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

Unified Diff: components/sync_driver/about_sync_util.cc

Issue 1334173006: Move sync_internals resources and constants to //components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gcmInternals
Patch Set: Rebase Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/sync_driver/about_sync_util.h ('k') | components/sync_driver/about_sync_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync_driver/about_sync_util.cc
diff --git a/components/sync_driver/about_sync_util.cc b/components/sync_driver/about_sync_util.cc
index 010d627ea49bb2338e39a2aae640f473298c7555..7842091ed881cdd3b5fd4daf16ff16b24d2e58a5 100644
--- a/components/sync_driver/about_sync_util.cc
+++ b/components/sync_driver/about_sync_util.cc
@@ -22,9 +22,47 @@
using base::DictionaryValue;
using base::ListValue;
+namespace sync_driver {
+
+namespace sync_ui_util {
+
const char kIdentityTitle[] = "Identity";
const char kDetailsKey[] = "details";
+// Resource paths.
+const char kAboutJS[] = "about.js";
+const char kChromeSyncJS[] = "chrome_sync.js";
+const char kDataJS[] = "data.js";
+const char kEventsJS[] = "events.js";
+const char kSearchJS[] = "search.js";
+const char kSyncIndexJS[] = "sync_index.js";
+const char kSyncLogJS[] = "sync_log.js";
+const char kSyncNodeBrowserJS[] = "sync_node_browser.js";
+const char kSyncSearchJS[] = "sync_search.js";
+const char kTypesJS[] = "types.js";
+
+// Message handlers.
+const char kDispatchEvent[] = "chrome.sync.dispatchEvent";
+const char kGetAllNodes[] = "getAllNodes";
+const char kGetAllNodesCallback[] = "chrome.sync.getAllNodesCallback";
+const char kRegisterForEvents[] = "registerForEvents";
+const char kRegisterForPerTypeCounters[] = "registerForPerTypeCounters";
+const char kRequestListOfTypes[] = "requestListOfTypes";
+const char kRequestUpdatedAboutInfo[] = "requestUpdatedAboutInfo";
+
+// Other strings.
+const char kCommit[] = "commit";
+const char kCounters[] = "counters";
+const char kCounterType[] = "counterType";
+const char kModelType[] = "modelType";
+const char kOnAboutInfoUpdated[] = "onAboutInfoUpdated";
+const char kOnCountersUpdated[] = "onCountersUpdated";
+const char kOnProtocolEvent[] = "onProtocolEvent";
+const char kOnReceivedListOfTypes[] = "onReceivedListOfTypes";
+const char kStatus[] = "status";
+const char kTypes[] = "types";
+const char kUpdate[] = "update";
+
namespace {
// Creates a 'section' for display on about:sync, consisting of a title and a
@@ -200,8 +238,6 @@ std::string GetConnectionStatus(
} // namespace
-namespace sync_ui_util {
-
// This function both defines the structure of the message to be returned and
// its contents. Most of the message consists of simple fields in about:sync
// which are grouped into sections and populated with the help of the SyncStat
@@ -493,3 +529,5 @@ scoped_ptr<base::DictionaryValue> ConstructAboutInformation(
}
} // namespace sync_ui_util
+
+} // namespace sync_driver
« no previous file with comments | « components/sync_driver/about_sync_util.h ('k') | components/sync_driver/about_sync_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698