OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/browser/extensions/api/braille_display_private/brlapi_connectio
n.h" | 5 #include "chrome/browser/extensions/api/braille_display_private/brlapi_connectio
n.h" |
6 | 6 |
7 #include <errno.h> | 7 #include <errno.h> |
8 | 8 |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/free_deleter.h" |
10 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
11 #include "base/sys_info.h" | 12 #include "base/sys_info.h" |
12 #include "build/build_config.h" | 13 #include "build/build_config.h" |
13 | 14 |
14 namespace extensions { | 15 namespace extensions { |
15 using base::MessageLoopForIO; | 16 using base::MessageLoopForIO; |
16 namespace api { | 17 namespace api { |
17 namespace braille_display_private { | 18 namespace braille_display_private { |
18 | 19 |
19 namespace { | 20 namespace { |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 if (error->brlerrno == BRLAPI_ERROR_LIBCERR | 210 if (error->brlerrno == BRLAPI_ERROR_LIBCERR |
210 && error->libcerrno == ENOENT) { | 211 && error->libcerrno == ENOENT) { |
211 return CONNECT_ERROR_NO_RETRY; | 212 return CONNECT_ERROR_NO_RETRY; |
212 } | 213 } |
213 return CONNECT_ERROR_RETRY; | 214 return CONNECT_ERROR_RETRY; |
214 } | 215 } |
215 | 216 |
216 } // namespace braille_display_private | 217 } // namespace braille_display_private |
217 } // namespace api | 218 } // namespace api |
218 } // namespace extensions | 219 } // namespace extensions |
OLD | NEW |