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

Side by Side Diff: chrome/browser/resources/sync_internals/chrome_sync.js

Issue 9826035: [Sync] Display the client server traffic log in about:sync. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For submitting. Created 8 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/resources/sync_internals/sync_index.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 var chrome = chrome || {}; 5 var chrome = chrome || {};
6 // TODO(akalin): Add mocking code for e.g. chrome.send() so that we 6 // TODO(akalin): Add mocking code for e.g. chrome.send() so that we
7 // can test this without rebuilding chrome. 7 // can test this without rebuilding chrome.
8 chrome.sync = chrome.sync || {}; 8 chrome.sync = chrome.sync || {};
9 (function () { 9 (function () {
10 10
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 129
130 var syncFunctions = [ 130 var syncFunctions = [
131 // Sync service functions. 131 // Sync service functions.
132 'getAboutInfo', 132 'getAboutInfo',
133 133
134 // Notification functions. See chrome/browser/sync/engine/syncapi.h 134 // Notification functions. See chrome/browser/sync/engine/syncapi.h
135 // for docs. 135 // for docs.
136 'getNotificationState', 136 'getNotificationState',
137 'getNotificationInfo', 137 'getNotificationInfo',
138 138
139 // Client server communication logging functions.
140 'getClientServerTraffic',
141
139 // Node lookup functions. See chrome/browser/sync/engine/syncapi.h 142 // Node lookup functions. See chrome/browser/sync/engine/syncapi.h
140 // for docs. 143 // for docs.
141 'getRootNodeDetails', 144 'getRootNodeDetails',
142 'getNodeSummariesById', 145 'getNodeSummariesById',
143 'getNodeDetailsById', 146 'getNodeDetailsById',
144 'getChildNodeIds', 147 'getChildNodeIds',
145 'findNodesContainingString' 148 'findNodesContainingString'
146 ]; 149 ];
147 150
148 for (var i = 0; i < syncFunctions.length; ++i) { 151 for (var i = 0; i < syncFunctions.length; ++i) {
(...skipping 12 matching lines...) Expand all
161 * @return {number} The number of seconds since the timer was 164 * @return {number} The number of seconds since the timer was
162 * created. 165 * created.
163 */ 166 */
164 get elapsedSeconds() { 167 get elapsedSeconds() {
165 return ((new Date()).getTime() - start.getTime()) / 1000.0; 168 return ((new Date()).getTime() - start.getTime()) / 1000.0;
166 } 169 }
167 }; 170 };
168 }; 171 };
169 172
170 })(); 173 })();
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/sync_internals/sync_index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698