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

Side by Side Diff: components/sync/driver/about_sync_util.cc

Issue 2872023002: [Sync] Add a simple UI to sync-internals to create UserEvents. (Closed)
Patch Set: Rebase Created 3 years, 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #include "components/sync/driver/about_sync_util.h" 5 #include "components/sync/driver/about_sync_util.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 24 matching lines...) Expand all
35 const char kAboutJS[] = "about.js"; 35 const char kAboutJS[] = "about.js";
36 const char kChromeSyncJS[] = "chrome_sync.js"; 36 const char kChromeSyncJS[] = "chrome_sync.js";
37 const char kDataJS[] = "data.js"; 37 const char kDataJS[] = "data.js";
38 const char kEventsJS[] = "events.js"; 38 const char kEventsJS[] = "events.js";
39 const char kSearchJS[] = "search.js"; 39 const char kSearchJS[] = "search.js";
40 const char kSyncIndexJS[] = "sync_index.js"; 40 const char kSyncIndexJS[] = "sync_index.js";
41 const char kSyncLogJS[] = "sync_log.js"; 41 const char kSyncLogJS[] = "sync_log.js";
42 const char kSyncNodeBrowserJS[] = "sync_node_browser.js"; 42 const char kSyncNodeBrowserJS[] = "sync_node_browser.js";
43 const char kSyncSearchJS[] = "sync_search.js"; 43 const char kSyncSearchJS[] = "sync_search.js";
44 const char kTypesJS[] = "types.js"; 44 const char kTypesJS[] = "types.js";
45 const char kUserEventsJS[] = "user_events.js";
45 46
46 // Message handlers. 47 // Message handlers.
47 const char kDispatchEvent[] = "chrome.sync.dispatchEvent"; 48 const char kDispatchEvent[] = "chrome.sync.dispatchEvent";
48 const char kGetAllNodes[] = "getAllNodes"; 49 const char kGetAllNodes[] = "getAllNodes";
49 const char kGetAllNodesCallback[] = "chrome.sync.getAllNodesCallback"; 50 const char kGetAllNodesCallback[] = "chrome.sync.getAllNodesCallback";
50 const char kRegisterForEvents[] = "registerForEvents"; 51 const char kRegisterForEvents[] = "registerForEvents";
51 const char kRegisterForPerTypeCounters[] = "registerForPerTypeCounters"; 52 const char kRegisterForPerTypeCounters[] = "registerForPerTypeCounters";
52 const char kRequestListOfTypes[] = "requestListOfTypes"; 53 const char kRequestListOfTypes[] = "requestListOfTypes";
53 const char kRequestUpdatedAboutInfo[] = "requestUpdatedAboutInfo"; 54 const char kRequestUpdatedAboutInfo[] = "requestUpdatedAboutInfo";
55 const char kRequestUserEventsVisibility[] = "requestUserEventsVisibility";
56 const char kUserEventsVisibilityCallback[] =
57 "chrome.sync.userEventsVisibilityCallback";
58 const char kWriteUserEvent[] = "writeUserEvent";
54 59
55 // Other strings. 60 // Other strings.
56 const char kCommit[] = "commit"; 61 const char kCommit[] = "commit";
57 const char kCounters[] = "counters"; 62 const char kCounters[] = "counters";
58 const char kCounterType[] = "counterType"; 63 const char kCounterType[] = "counterType";
59 const char kModelType[] = "modelType"; 64 const char kModelType[] = "modelType";
60 const char kOnAboutInfoUpdated[] = "onAboutInfoUpdated"; 65 const char kOnAboutInfoUpdated[] = "onAboutInfoUpdated";
61 const char kOnCountersUpdated[] = "onCountersUpdated"; 66 const char kOnCountersUpdated[] = "onCountersUpdated";
62 const char kOnProtocolEvent[] = "onProtocolEvent"; 67 const char kOnProtocolEvent[] = "onProtocolEvent";
63 const char kOnReceivedListOfTypes[] = "onReceivedListOfTypes"; 68 const char kOnReceivedListOfTypes[] = "onReceivedListOfTypes";
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 } 588 }
584 589
585 about_info->Set("type_status", service->GetTypeStatusMap()); 590 about_info->Set("type_status", service->GetTypeStatusMap());
586 591
587 return about_info; 592 return about_info;
588 } 593 }
589 594
590 } // namespace sync_ui_util 595 } // namespace sync_ui_util
591 596
592 } // namespace syncer 597 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/driver/about_sync_util.h ('k') | components/sync/driver/resources/chrome_sync.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698