OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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/api/serial/serial_connection.h" | 10 #include "chrome/browser/extensions/api/serial/serial_connection.h" |
11 #include "chrome/browser/extensions/api/serial/serial_event_dispatcher.h" | 11 #include "chrome/browser/extensions/api/serial/serial_event_dispatcher.h" |
| 12 #include "chrome/browser/profiles/profile.h" |
12 #include "chrome/common/extensions/api/serial.h" | 13 #include "chrome/common/extensions/api/serial.h" |
13 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
14 #include "device/serial/serial_device_enumerator.h" | 15 #include "device/serial/serial_device_enumerator.h" |
15 #include "extensions/browser/extension_system.h" | 16 #include "extensions/browser/extension_system.h" |
16 | 17 |
17 using content::BrowserThread; | 18 using content::BrowserThread; |
18 | 19 |
19 namespace extensions { | 20 namespace extensions { |
20 | 21 |
21 namespace api { | 22 namespace api { |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 return; | 418 return; |
418 } | 419 } |
419 | 420 |
420 bool success = connection->SetControlSignals(params_->signals); | 421 bool success = connection->SetControlSignals(params_->signals); |
421 results_ = serial::SetControlSignals::Results::Create(success); | 422 results_ = serial::SetControlSignals::Results::Create(success); |
422 } | 423 } |
423 | 424 |
424 } // namespace api | 425 } // namespace api |
425 | 426 |
426 } // namespace extensions | 427 } // namespace extensions |
OLD | NEW |