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

Side by Side Diff: chrome/browser/resources/cryptotoken/cryptotokenbackground.js

Issue 799923007: Enable 3rd party support for Security Keys. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove duplicate line from merge Created 6 years 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 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 LOG_SAVER_EXTENSION_ID = 'fjajfjhkeibgmiggdfehjplbhmfkialk'; 15 var LOG_SAVER_EXTENSION_ID = 'fjajfjhkeibgmiggdfehjplbhmfkialk';
16 16
17 // Singleton tracking available devices. 17 // Singleton tracking available devices.
18 var gnubbies = new Gnubbies(); 18 var gnubbies = new Gnubbies();
19 HidGnubbyDevice.register(gnubbies); 19 HidGnubbyDevice.register(gnubbies);
20 UsbGnubbyDevice.register(gnubbies); 20 UsbGnubbyDevice.register(gnubbies);
21 21
22 var TIMER_FACTORY = new CountdownTimerFactory(); 22 var TIMER_FACTORY = new CountdownTimerFactory();
23 23
24 var FACTORY_REGISTRY = new FactoryRegistry( 24 var FACTORY_REGISTRY = new FactoryRegistry(
25 new GoogleApprovedOrigins(), 25 new CryptoTokenApprovedOrigin(),
26 TIMER_FACTORY, 26 TIMER_FACTORY,
27 new GstaticOriginChecker(), 27 new EtldOriginChecker(),
28 new UsbHelper(), 28 new UsbHelper(),
29 new XhrTextFetcher()); 29 new XhrTextFetcher());
30 30
31 var DEVICE_FACTORY_REGISTRY = new DeviceFactoryRegistry( 31 var DEVICE_FACTORY_REGISTRY = new DeviceFactoryRegistry(
32 new UsbGnubbyFactory(gnubbies), 32 new UsbGnubbyFactory(gnubbies),
33 TIMER_FACTORY, 33 TIMER_FACTORY,
34 new GoogleCorpIndividualAttestation()); 34 new GoogleCorpIndividualAttestation());
35 35
36 /** 36 /**
37 * Listen to individual messages sent from (whitelisted) webpages via 37 * Listen to individual messages sent from (whitelisted) webpages via
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 if (originalUtilFmt_) { 97 if (originalUtilFmt_) {
98 UTIL_fmt = originalUtilFmt_; 98 UTIL_fmt = originalUtilFmt_;
99 originalUtilFmt_ = null; 99 originalUtilFmt_ = null;
100 } 100 }
101 } 101 }
102 return false; 102 return false;
103 } 103 }
104 104
105 /** @private */ 105 /** @private */
106 var originalUtilFmt_ = null; 106 var originalUtilFmt_ = null;
OLDNEW
« no previous file with comments | « chrome/browser/resources/cryptotoken/cryptotokenapprovedorigins.js ('k') | chrome/browser/resources/cryptotoken/enroller.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698