| Index: chrome/browser/extensions/api/serial/serial_connection.h
|
| ===================================================================
|
| --- chrome/browser/extensions/api/serial/serial_connection.h (revision 218161)
|
| +++ chrome/browser/extensions/api/serial/serial_connection.h (working copy)
|
| @@ -12,11 +12,14 @@
|
| #include "base/platform_file.h"
|
| #include "chrome/browser/extensions/api/api_resource.h"
|
| #include "chrome/browser/extensions/api/api_resource_manager.h"
|
| +#include "chrome/common/extensions/api/serial.h"
|
| #include "content/public/browser/browser_thread.h"
|
| #include "net/base/io_buffer.h"
|
|
|
| using content::BrowserThread;
|
|
|
| +namespace serial = extensions::api::serial;
|
| +
|
| namespace extensions {
|
|
|
| extern const char kSerialConnectionNotFoundError[];
|
| @@ -25,8 +28,9 @@
|
| // _win and _posix versions of the the .cc file.
|
| class SerialConnection : public ApiResource {
|
| public:
|
| - SerialConnection(const std::string& port,
|
| - int bitrate,
|
| + SerialConnection(const std::string& port, int bitrate,
|
| + serial::DataBit databit, serial::ParityBit parity,
|
| + serial::StopBit stopbit,
|
| const std::string& owner_extension_id);
|
| virtual ~SerialConnection();
|
|
|
| @@ -71,6 +75,9 @@
|
| }
|
| std::string port_;
|
| int bitrate_;
|
| + serial::DataBit databit_;
|
| + serial::ParityBit parity_;
|
| + serial::StopBit stopbit_;
|
| base::PlatformFile file_;
|
| };
|
|
|
|
|