OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "extensions/browser/api/webcam_private/visca_webcam.h" | 5 #include "extensions/browser/api/webcam_private/visca_webcam.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
7 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/macros.h" |
8 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
9 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
10 | 14 |
11 using content::BrowserThread; | 15 using content::BrowserThread; |
12 | 16 |
13 namespace { | 17 namespace { |
14 | 18 |
15 // Message terminator: | 19 // Message terminator: |
16 const char kViscaTerminator = 0xFF; | 20 const char kViscaTerminator = 0xFF; |
17 | 21 |
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 void ViscaWebcam::OpenForTesting( | 490 void ViscaWebcam::OpenForTesting( |
487 scoped_ptr<SerialConnection> serial_connection) { | 491 scoped_ptr<SerialConnection> serial_connection) { |
488 serial_connection_ = serial_connection.Pass(); | 492 serial_connection_ = serial_connection.Pass(); |
489 } | 493 } |
490 | 494 |
491 SerialConnection* ViscaWebcam::GetSerialConnectionForTesting() { | 495 SerialConnection* ViscaWebcam::GetSerialConnectionForTesting() { |
492 return serial_connection_.get(); | 496 return serial_connection_.get(); |
493 } | 497 } |
494 | 498 |
495 } // namespace extensions | 499 } // namespace extensions |
OLD | NEW |