OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/serial/serial_api.h" | 5 #include "chrome/browser/extensions/api/serial/serial_api.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "chrome/browser/extensions/extension_system.h" | |
11 #include "chrome/browser/extensions/api/serial/serial_connection.h" | 10 #include "chrome/browser/extensions/api/serial/serial_connection.h" |
12 #include "chrome/browser/extensions/api/serial/serial_event_dispatcher.h" | 11 #include "chrome/browser/extensions/api/serial/serial_event_dispatcher.h" |
13 #include "chrome/browser/extensions/api/serial/serial_port_enumerator.h" | 12 #include "chrome/browser/extensions/api/serial/serial_port_enumerator.h" |
14 #include "chrome/common/extensions/api/serial.h" | 13 #include "chrome/common/extensions/api/serial.h" |
15 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
| 15 #include "extensions/browser/extension_system.h" |
16 | 16 |
17 using content::BrowserThread; | 17 using content::BrowserThread; |
18 | 18 |
19 namespace extensions { | 19 namespace extensions { |
20 | 20 |
21 namespace api { | 21 namespace api { |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 // It's a fool's errand to come up with a default bitrate, because we don't get | 25 // It's a fool's errand to come up with a default bitrate, because we don't get |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 return; | 408 return; |
409 } | 409 } |
410 | 410 |
411 bool success = connection->SetControlSignals(params_->signals); | 411 bool success = connection->SetControlSignals(params_->signals); |
412 results_ = serial::SetControlSignals::Results::Create(success); | 412 results_ = serial::SetControlSignals::Results::Create(success); |
413 } | 413 } |
414 | 414 |
415 } // namespace api | 415 } // namespace api |
416 | 416 |
417 } // namespace extensions | 417 } // namespace extensions |
OLD | NEW |