Chromium Code Reviews| 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 "use strict"; | 5 "use strict"; |
| 6 | 6 |
| 7 function PrivateScriptController() | 7 function PrivateScriptController() |
| 8 { | 8 { |
| 9 this._installedClasses = {}; | 9 this._installedClasses = {}; |
| 10 this._DOMException = {}; | 10 this._DOMException = {}; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 53 // File system | 53 // File system |
| 54 "NotReadableError", | 54 "NotReadableError", |
| 55 "EncodingError", | 55 "EncodingError", |
| 56 "PathExistsError", | 56 "PathExistsError", |
| 57 | 57 |
| 58 // SQL | 58 // SQL |
| 59 "SQLDatabaseError", // Naming conflict with DatabaseError class. | 59 "SQLDatabaseError", // Naming conflict with DatabaseError class. |
| 60 | 60 |
| 61 // Web Crypto | 61 // Web Crypto |
| 62 "OperationError", | 62 "OperationError", |
| 63 | |
| 64 // Push API | |
|
johnme
2015/08/27 16:09:08
Nit: Shouldn't this be a more generic section? "Pe
Peter Beverloo
2015/08/27 16:24:31
So far this is Push API specific (though media str
| |
| 65 "PermissionDeniedError", | |
| 63 ]; | 66 ]; |
| 64 | 67 |
| 65 // This list must be in sync with the enum in ExceptionCode.h. The order mat ters. | 68 // This list must be in sync with the enum in ExceptionCode.h. The order mat ters. |
| 66 var jsErrors = [ | 69 var jsErrors = [ |
| 67 "Error", | 70 "Error", |
| 68 "TypeError", | 71 "TypeError", |
| 69 "RangeError", | 72 "RangeError", |
| 70 "SyntaxError", | 73 "SyntaxError", |
| 71 "ReferenceError", | 74 "ReferenceError", |
| 72 ]; | 75 ]; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 133 }, | 136 }, |
| 134 } | 137 } |
| 135 | 138 |
| 136 if (typeof window.privateScriptController === 'undefined') | 139 if (typeof window.privateScriptController === 'undefined') |
| 137 window.privateScriptController = new PrivateScriptController(); | 140 window.privateScriptController = new PrivateScriptController(); |
| 138 | 141 |
| 139 // This line must be the last statement of this JS file. | 142 // This line must be the last statement of this JS file. |
| 140 // A parenthesis is needed, because the caller of this script (PrivateScriptRunn er.cpp) | 143 // A parenthesis is needed, because the caller of this script (PrivateScriptRunn er.cpp) |
| 141 // is depending on the completion value of this script. | 144 // is depending on the completion value of this script. |
| 142 (privateScriptController.installedClasses); | 145 (privateScriptController.installedClasses); |
| OLD | NEW |