| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 })(); |
| OLD | NEW |