diff options
author | Zakor Gyula <zakorgy@inf.u-szeged.hu> | 2016-11-14 11:39:30 +0100 |
---|---|---|
committer | Zakor Gyula <zakorgy@inf.u-szeged.hu> | 2016-11-17 15:23:14 +0100 |
commit | f98fbecfda503946717cb1391a531d9e3059b467 (patch) | |
tree | 03b9b4a2c470e5ddebd1a4b119661eef0b3382b3 /components/script | |
parent | 870841099a5306e75766e6364296cf6d495467a0 (diff) | |
download | servo-f98fbecfda503946717cb1391a531d9e3059b467.tar.gz servo-f98fbecfda503946717cb1391a531d9e3059b467.zip |
Rename blacklist to blocklist
Diffstat (limited to 'components/script')
-rw-r--r-- | components/script/dom/bluetooth.rs | 12 | ||||
-rw-r--r-- | components/script/dom/bluetoothremotegattcharacteristic.rs | 10 | ||||
-rw-r--r-- | components/script/dom/bluetoothremotegattdescriptor.rs | 6 | ||||
-rw-r--r-- | components/script/dom/bluetoothremotegattserver.rs | 6 | ||||
-rw-r--r-- | components/script/dom/bluetoothremotegattservice.rs | 10 |
5 files changed, 22 insertions, 22 deletions
diff --git a/components/script/dom/bluetooth.rs b/components/script/dom/bluetooth.rs index 6125680d637..4bf6a9d3337 100644 --- a/components/script/dom/bluetooth.rs +++ b/components/script/dom/bluetooth.rs @@ -4,7 +4,7 @@ use bluetooth_traits::{BluetoothError, BluetoothRequest}; use bluetooth_traits::{BluetoothResponse, BluetoothResponseListener, BluetoothResponseResult}; -use bluetooth_traits::blacklist::{Blacklist, uuid_is_blacklisted}; +use bluetooth_traits::blocklist::{Blocklist, uuid_is_blocklisted}; use bluetooth_traits::scanfilter::{BluetoothScanfilter, BluetoothScanfilterSequence}; use bluetooth_traits::scanfilter::{RequestDeviceoptions, ServiceUUIDSequence}; use core::clone::Clone; @@ -193,9 +193,9 @@ fn convert_request_device_options(filters: &Option<Vec<BluetoothRequestDeviceFil let uuid = try!(BluetoothUUID::service(opt_service.clone())).to_string(); // Step 2.7. - // Note: What we are doing here is adding the not blacklisted UUIDs to the result vector, - // instead of removing them from an already filled vector. - if !uuid_is_blacklisted(uuid.as_ref(), Blacklist::All) { + // Note: What we are doing here is adding the not blocklisted UUIDs to the result vector, + // insted of removing them from an already filled vector. + if !uuid_is_blocklisted(uuid.as_ref(), Blocklist::All) { optional_services_uuids.push(uuid); } } @@ -234,7 +234,7 @@ fn canonicalize_filter(filter: &BluetoothRequestDeviceFilter) -> Fallible<Blueto let uuid = try!(BluetoothUUID::service(service.clone())).to_string(); // Step 2.4.3.4. - if uuid_is_blacklisted(uuid.as_ref(), Blacklist::All) { + if uuid_is_blocklisted(uuid.as_ref(), Blocklist::All) { return Err(Security) } @@ -295,7 +295,7 @@ fn canonicalize_filter(filter: &BluetoothRequestDeviceFilter) -> Fallible<Blueto let uuid = try!(BluetoothUUID::service(service_data_uuid.clone())).to_string(); // Step 2.4.7.3. - if uuid_is_blacklisted(uuid.as_ref(), Blacklist::All) { + if uuid_is_blocklisted(uuid.as_ref(), Blocklist::All) { return Err(Security) } diff --git a/components/script/dom/bluetoothremotegattcharacteristic.rs b/components/script/dom/bluetoothremotegattcharacteristic.rs index d5ff56853ce..dae5fd3e558 100644 --- a/components/script/dom/bluetoothremotegattcharacteristic.rs +++ b/components/script/dom/bluetoothremotegattcharacteristic.rs @@ -3,7 +3,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ use bluetooth_traits::{BluetoothRequest, BluetoothResponse}; -use bluetooth_traits::blacklist::{Blacklist, uuid_is_blacklisted}; +use bluetooth_traits::blocklist::{Blocklist, uuid_is_blocklisted}; use dom::bindings::cell::DOMRefCell; use dom::bindings::codegen::Bindings::BluetoothCharacteristicPropertiesBinding:: BluetoothCharacteristicPropertiesMethods; @@ -110,7 +110,7 @@ impl BluetoothRemoteGATTCharacteristicMethods for BluetoothRemoteGATTCharacteris return p; } }; - if uuid_is_blacklisted(uuid.as_ref(), Blacklist::All) { + if uuid_is_blocklisted(uuid.as_ref(), Blocklist::All) { p.reject_error(p_cx, Security); return p; } @@ -141,7 +141,7 @@ impl BluetoothRemoteGATTCharacteristicMethods for BluetoothRemoteGATTCharacteris } }; if let Some(ref uuid) = uuid { - if uuid_is_blacklisted(uuid.as_ref(), Blacklist::All) { + if uuid_is_blocklisted(uuid.as_ref(), Blocklist::All) { p.reject_error(p_cx, Security); return p; } @@ -167,7 +167,7 @@ impl BluetoothRemoteGATTCharacteristicMethods for BluetoothRemoteGATTCharacteris fn ReadValue(&self) -> Rc<Promise> { let p = Promise::new(&self.global()); let p_cx = p.global().get_cx(); - if uuid_is_blacklisted(self.uuid.as_ref(), Blacklist::Reads) { + if uuid_is_blocklisted(self.uuid.as_ref(), Blocklist::Reads) { p.reject_error(p_cx, Security); return p; } @@ -190,7 +190,7 @@ impl BluetoothRemoteGATTCharacteristicMethods for BluetoothRemoteGATTCharacteris fn WriteValue(&self, value: Vec<u8>) -> Rc<Promise> { let p = Promise::new(&self.global()); let p_cx = p.global().get_cx(); - if uuid_is_blacklisted(self.uuid.as_ref(), Blacklist::Writes) { + if uuid_is_blocklisted(self.uuid.as_ref(), Blocklist::Writes) { p.reject_error(p_cx, Security); return p; } diff --git a/components/script/dom/bluetoothremotegattdescriptor.rs b/components/script/dom/bluetoothremotegattdescriptor.rs index 4305b98c3a7..ffe66c23bec 100644 --- a/components/script/dom/bluetoothremotegattdescriptor.rs +++ b/components/script/dom/bluetoothremotegattdescriptor.rs @@ -3,7 +3,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ use bluetooth_traits::{BluetoothRequest, BluetoothResponse}; -use bluetooth_traits::blacklist::{Blacklist, uuid_is_blacklisted}; +use bluetooth_traits::blocklist::{Blocklist, uuid_is_blocklisted}; use dom::bindings::cell::DOMRefCell; use dom::bindings::codegen::Bindings::BluetoothDeviceBinding::BluetoothDeviceMethods; use dom::bindings::codegen::Bindings::BluetoothRemoteGATTCharacteristicBinding:: @@ -90,7 +90,7 @@ impl BluetoothRemoteGATTDescriptorMethods for BluetoothRemoteGATTDescriptor { fn ReadValue(&self) -> Rc<Promise> { let p = Promise::new(&self.global()); let p_cx = p.global().get_cx(); - if uuid_is_blacklisted(self.uuid.as_ref(), Blacklist::Reads) { + if uuid_is_blocklisted(self.uuid.as_ref(), Blocklist::Reads) { p.reject_error(p_cx, Security); return p; } @@ -109,7 +109,7 @@ impl BluetoothRemoteGATTDescriptorMethods for BluetoothRemoteGATTDescriptor { fn WriteValue(&self, value: Vec<u8>) -> Rc<Promise> { let p = Promise::new(&self.global()); let p_cx = p.global().get_cx(); - if uuid_is_blacklisted(self.uuid.as_ref(), Blacklist::Writes) { + if uuid_is_blocklisted(self.uuid.as_ref(), Blocklist::Writes) { p.reject_error(p_cx, Security); return p; } diff --git a/components/script/dom/bluetoothremotegattserver.rs b/components/script/dom/bluetoothremotegattserver.rs index 327062d063e..f8424ad6241 100644 --- a/components/script/dom/bluetoothremotegattserver.rs +++ b/components/script/dom/bluetoothremotegattserver.rs @@ -3,7 +3,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ use bluetooth_traits::{BluetoothRequest, BluetoothResponse}; -use bluetooth_traits::blacklist::{Blacklist, uuid_is_blacklisted}; +use bluetooth_traits::blocklist::{Blocklist, uuid_is_blocklisted}; use dom::bindings::codegen::Bindings::BluetoothDeviceBinding::BluetoothDeviceMethods; use dom::bindings::codegen::Bindings::BluetoothRemoteGATTServerBinding; use dom::bindings::codegen::Bindings::BluetoothRemoteGATTServerBinding::BluetoothRemoteGATTServerMethods; @@ -101,7 +101,7 @@ impl BluetoothRemoteGATTServerMethods for BluetoothRemoteGATTServer { return p; } }; - if uuid_is_blacklisted(uuid.as_ref(), Blacklist::All) { + if uuid_is_blocklisted(uuid.as_ref(), Blocklist::All) { p.reject_error(p_cx, Security); return p; } @@ -130,7 +130,7 @@ impl BluetoothRemoteGATTServerMethods for BluetoothRemoteGATTServer { } }; if let Some(ref uuid) = uuid { - if uuid_is_blacklisted(uuid.as_ref(), Blacklist::All) { + if uuid_is_blocklisted(uuid.as_ref(), Blocklist::All) { p.reject_error(p_cx, Security); return p; } diff --git a/components/script/dom/bluetoothremotegattservice.rs b/components/script/dom/bluetoothremotegattservice.rs index d979b9959c5..69593e2c390 100644 --- a/components/script/dom/bluetoothremotegattservice.rs +++ b/components/script/dom/bluetoothremotegattservice.rs @@ -3,7 +3,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ use bluetooth_traits::{BluetoothRequest, BluetoothResponse}; -use bluetooth_traits::blacklist::{Blacklist, uuid_is_blacklisted}; +use bluetooth_traits::blocklist::{Blocklist, uuid_is_blocklisted}; use dom::bindings::codegen::Bindings::BluetoothDeviceBinding::BluetoothDeviceMethods; use dom::bindings::codegen::Bindings::BluetoothRemoteGATTServerBinding::BluetoothRemoteGATTServerMethods; use dom::bindings::codegen::Bindings::BluetoothRemoteGATTServiceBinding; @@ -105,7 +105,7 @@ impl BluetoothRemoteGATTServiceMethods for BluetoothRemoteGATTService { return p; } }; - if uuid_is_blacklisted(uuid.as_ref(), Blacklist::All) { + if uuid_is_blocklisted(uuid.as_ref(), Blocklist::All) { p.reject_error(p_cx, Security); return p; } @@ -136,7 +136,7 @@ impl BluetoothRemoteGATTServiceMethods for BluetoothRemoteGATTService { } }; if let Some(ref uuid) = uuid { - if uuid_is_blacklisted(uuid.as_ref(), Blacklist::All) { + if uuid_is_blocklisted(uuid.as_ref(), Blocklist::All) { p.reject_error(p_cx, Security); return p; } @@ -166,7 +166,7 @@ impl BluetoothRemoteGATTServiceMethods for BluetoothRemoteGATTService { return p; } }; - if uuid_is_blacklisted(uuid.as_ref(), Blacklist::All) { + if uuid_is_blocklisted(uuid.as_ref(), Blocklist::All) { p.reject_error(p_cx, Security); return p; } @@ -200,7 +200,7 @@ impl BluetoothRemoteGATTServiceMethods for BluetoothRemoteGATTService { } }; if let Some(ref uuid) = uuid { - if uuid_is_blacklisted(uuid.as_ref(), Blacklist::All) { + if uuid_is_blocklisted(uuid.as_ref(), Blocklist::All) { p.reject_error(p_cx, Security); return p; } |