diff options
author | ortuno <ortuno@chromium.org> | 2015-05-12 15:25:07 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-12 22:25:20 +0000 |
commit | 71fd6178f81b1a40d201da5f8144354e5e92bd71 (patch) | |
tree | c53ffcbe2c0f7e88d4efd97e073dadcf374f3fc3 /content/common | |
parent | 0182b37ea7e3e88ebfb976ae3cfa121427335eec (diff) | |
download | chromium_src-71fd6178f81b1a40d201da5f8144354e5e92bd71.zip chromium_src-71fd6178f81b1a40d201da5f8144354e5e92bd71.tar.gz chromium_src-71fd6178f81b1a40d201da5f8144354e5e92bd71.tar.bz2 |
bluetooth: Add NetworkError for Bluetooth on browser side
Return the NetworkError if the connectGATT fails.
This is the second of two patches to implement NetworkError:
[1] https://codereview.chromium.org/1124973003
[2] This patch.
BUG=484779
Review URL: https://codereview.chromium.org/1118053003
Cr-Commit-Position: refs/heads/master@{#329512}
Diffstat (limited to 'content/common')
-rw-r--r-- | content/common/bluetooth/bluetooth_error.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/content/common/bluetooth/bluetooth_error.h b/content/common/bluetooth/bluetooth_error.h index 7e936c9..7ebf7ae 100644 --- a/content/common/bluetooth/bluetooth_error.h +++ b/content/common/bluetooth/bluetooth_error.h @@ -9,7 +9,12 @@ namespace content { // Error enumerations corresponding to blink::WebBluetoothError::ErrorType // used to create DOMExceptions. -enum class BluetoothError { NOT_FOUND, SECURITY, ENUM_MAX_VALUE = SECURITY }; +enum class BluetoothError { + NOT_FOUND, + NETWORK_ERROR, + SECURITY, + ENUM_MAX_VALUE = SECURITY +}; } // namespace content |