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

Side by Side Diff: third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp

Issue 2554253002: bluetooth: web: Rename Blacklist to Blocklist (Closed)
Patch Set: Created 4 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 #include "modules/bluetooth/BluetoothError.h" 5 #include "modules/bluetooth/BluetoothError.h"
6 6
7 #include "core/dom/DOMException.h" 7 #include "core/dom/DOMException.h"
8 #include "core/dom/ExceptionCode.h" 8 #include "core/dom/ExceptionCode.h"
9 #include "third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.moj om-blink.h" 9 #include "third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.moj om-blink.h"
10 10
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 MAP_ERROR(GATT_NOT_PERMITTED, NotSupportedError, 105 MAP_ERROR(GATT_NOT_PERMITTED, NotSupportedError,
106 "GATT operation not permitted."); 106 "GATT operation not permitted.");
107 MAP_ERROR(GATT_NOT_SUPPORTED, NotSupportedError, 107 MAP_ERROR(GATT_NOT_SUPPORTED, NotSupportedError,
108 "GATT Error: Not supported."); 108 "GATT Error: Not supported.");
109 MAP_ERROR(GATT_UNTRANSLATED_ERROR_CODE, NotSupportedError, 109 MAP_ERROR(GATT_UNTRANSLATED_ERROR_CODE, NotSupportedError,
110 "GATT Error: Unknown GattErrorCode."); 110 "GATT Error: Unknown GattErrorCode.");
111 111
112 // SecurityErrors: 112 // SecurityErrors:
113 MAP_ERROR(GATT_NOT_AUTHORIZED, SecurityError, 113 MAP_ERROR(GATT_NOT_AUTHORIZED, SecurityError,
114 "GATT operation not authorized."); 114 "GATT operation not authorized.");
115 MAP_ERROR(BLACKLISTED_CHARACTERISTIC_UUID, SecurityError, 115 MAP_ERROR(BLOCKLISTED_CHARACTERISTIC_UUID, SecurityError,
116 "getCharacteristic(s) called with blacklisted UUID. " 116 "getCharacteristic(s) called with blocklisted UUID. "
117 "https://goo.gl/4NeimX"); 117 "https://goo.gl/4NeimX");
118 MAP_ERROR(BLACKLISTED_READ, SecurityError, 118 MAP_ERROR(BLOCKLISTED_READ, SecurityError,
119 "readValue() called on blacklisted object marked " 119 "readValue() called on blocklisted object marked "
120 "exclude-reads. https://goo.gl/4NeimX"); 120 "exclude-reads. https://goo.gl/4NeimX");
121 MAP_ERROR(BLACKLISTED_WRITE, SecurityError, 121 MAP_ERROR(BLOCKLISTED_WRITE, SecurityError,
122 "writeValue() called on blacklisted object marked " 122 "writeValue() called on blocklisted object marked "
123 "exclude-writes. https://goo.gl/4NeimX"); 123 "exclude-writes. https://goo.gl/4NeimX");
124 MAP_ERROR(NOT_ALLOWED_TO_ACCESS_ANY_SERVICE, SecurityError, 124 MAP_ERROR(NOT_ALLOWED_TO_ACCESS_ANY_SERVICE, SecurityError,
125 "Origin is not allowed to access any service. Tip: Add the " 125 "Origin is not allowed to access any service. Tip: Add the "
126 "service UUID to 'optionalServices' in requestDevice() " 126 "service UUID to 'optionalServices' in requestDevice() "
127 "options. https://goo.gl/HxfxSQ"); 127 "options. https://goo.gl/HxfxSQ");
128 MAP_ERROR(NOT_ALLOWED_TO_ACCESS_SERVICE, SecurityError, 128 MAP_ERROR(NOT_ALLOWED_TO_ACCESS_SERVICE, SecurityError,
129 "Origin is not allowed to access the service. Tip: Add the " 129 "Origin is not allowed to access the service. Tip: Add the "
130 "service UUID to 'optionalServices' in requestDevice() " 130 "service UUID to 'optionalServices' in requestDevice() "
131 "options. https://goo.gl/HxfxSQ"); 131 "options. https://goo.gl/HxfxSQ");
132 MAP_ERROR(REQUEST_DEVICE_WITH_BLACKLISTED_UUID, SecurityError, 132 MAP_ERROR(REQUEST_DEVICE_WITH_BLOCKLISTED_UUID, SecurityError,
133 "requestDevice() called with a filter containing a blacklisted " 133 "requestDevice() called with a filter containing a blocklisted "
134 "UUID. https://goo.gl/4NeimX"); 134 "UUID. https://goo.gl/4NeimX");
135 MAP_ERROR(REQUEST_DEVICE_FROM_CROSS_ORIGIN_IFRAME, SecurityError, 135 MAP_ERROR(REQUEST_DEVICE_FROM_CROSS_ORIGIN_IFRAME, SecurityError,
136 "requestDevice() called from cross-origin iframe."); 136 "requestDevice() called from cross-origin iframe.");
137 MAP_ERROR(REQUEST_DEVICE_WITHOUT_FRAME, SecurityError, 137 MAP_ERROR(REQUEST_DEVICE_WITHOUT_FRAME, SecurityError,
138 "No window to show the requestDevice() dialog."); 138 "No window to show the requestDevice() dialog.");
139 139
140 #undef MAP_ERROR 140 #undef MAP_ERROR
141 } 141 }
142 142
143 ASSERT_NOT_REACHED(); 143 ASSERT_NOT_REACHED();
144 return DOMException::create(UnknownError); 144 return DOMException::create(UnknownError);
145 } 145 }
146 146
147 } // namespace blink 147 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698