OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 /** | 5 /** |
6 * @fileoverview CryptoToken background page | 6 * @fileoverview CryptoToken background page |
7 */ | 7 */ |
8 | 8 |
9 'use strict'; | 9 'use strict'; |
10 | 10 |
11 /** @const */ | 11 /** @const */ |
12 var BROWSER_SUPPORTS_TLS_CHANNEL_ID = true; | 12 var BROWSER_SUPPORTS_TLS_CHANNEL_ID = true; |
13 | 13 |
14 /** @const */ | 14 /** @const */ |
| 15 var HTTP_ORIGINS_ALLOWED = false; |
| 16 |
| 17 /** @const */ |
15 var LOG_SAVER_EXTENSION_ID = 'fjajfjhkeibgmiggdfehjplbhmfkialk'; | 18 var LOG_SAVER_EXTENSION_ID = 'fjajfjhkeibgmiggdfehjplbhmfkialk'; |
16 | 19 |
17 // Singleton tracking available devices. | 20 // Singleton tracking available devices. |
18 var gnubbies = new Gnubbies(); | 21 var gnubbies = new Gnubbies(); |
19 HidGnubbyDevice.register(gnubbies); | 22 HidGnubbyDevice.register(gnubbies); |
20 UsbGnubbyDevice.register(gnubbies); | 23 UsbGnubbyDevice.register(gnubbies); |
21 | 24 |
22 var TIMER_FACTORY = new CountdownTimerFactory(); | 25 var TIMER_FACTORY = new CountdownTimerFactory(); |
23 | 26 |
24 var FACTORY_REGISTRY = new FactoryRegistry( | 27 var FACTORY_REGISTRY = new FactoryRegistry( |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 if (originalUtilFmt_) { | 100 if (originalUtilFmt_) { |
98 UTIL_fmt = originalUtilFmt_; | 101 UTIL_fmt = originalUtilFmt_; |
99 originalUtilFmt_ = null; | 102 originalUtilFmt_ = null; |
100 } | 103 } |
101 } | 104 } |
102 return false; | 105 return false; |
103 } | 106 } |
104 | 107 |
105 /** @private */ | 108 /** @private */ |
106 var originalUtilFmt_ = null; | 109 var originalUtilFmt_ = null; |
OLD | NEW |