| Index: extensions/browser/api/hid/hid_api.h
|
| diff --git a/extensions/browser/api/hid/hid_api.h b/extensions/browser/api/hid/hid_api.h
|
| index 6a8808f97f65a2be8541a31e62d995601bdd9f68..7683a63a55c034c2863df04f0cdd91eaea171ef1 100644
|
| --- a/extensions/browser/api/hid/hid_api.h
|
| +++ b/extensions/browser/api/hid/hid_api.h
|
| @@ -112,10 +112,10 @@ class HidReceiveFunction : public HidAsyncApiFunction {
|
| private:
|
| virtual ~HidReceiveFunction();
|
|
|
| - void OnFinished(bool success, size_t bytes);
|
| + void OnFinished(bool success,
|
| + scoped_refptr<net::IOBuffer> buffer,
|
| + size_t size);
|
|
|
| - bool has_report_id_;
|
| - scoped_refptr<net::IOBufferWithSize> buffer_;
|
| scoped_ptr<core_api::hid::Receive::Params> parameters_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(HidReceiveFunction);
|
| @@ -134,7 +134,7 @@ class HidSendFunction : public HidAsyncApiFunction {
|
| private:
|
| virtual ~HidSendFunction();
|
|
|
| - void OnFinished(bool success, size_t bytes);
|
| + void OnFinished(bool success);
|
|
|
| scoped_ptr<core_api::hid::Send::Params> parameters_;
|
|
|
| @@ -155,9 +155,10 @@ class HidReceiveFeatureReportFunction : public HidAsyncApiFunction {
|
| private:
|
| virtual ~HidReceiveFeatureReportFunction();
|
|
|
| - void OnFinished(bool success, size_t bytes);
|
| + void OnFinished(bool success,
|
| + scoped_refptr<net::IOBuffer> buffer,
|
| + size_t size);
|
|
|
| - scoped_refptr<net::IOBufferWithSize> buffer_;
|
| scoped_ptr<core_api::hid::ReceiveFeatureReport::Params> parameters_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(HidReceiveFeatureReportFunction);
|
| @@ -176,7 +177,7 @@ class HidSendFeatureReportFunction : public HidAsyncApiFunction {
|
| private:
|
| virtual ~HidSendFeatureReportFunction();
|
|
|
| - void OnFinished(bool success, size_t bytes);
|
| + void OnFinished(bool success);
|
|
|
| scoped_ptr<core_api::hid::SendFeatureReport::Params> parameters_;
|
|
|
|
|