Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(248)

Side by Side Diff: third_party/WebKit/Source/modules/webusb/USBDevice.cpp

Issue 1910373002: Create platform/mojo and move MojoHelper.h there (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and add mojo/DEPS Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "modules/webusb/USBDevice.h" 5 #include "modules/webusb/USBDevice.h"
6 6
7 #include "bindings/core/v8/ScriptPromise.h" 7 #include "bindings/core/v8/ScriptPromise.h"
8 #include "bindings/core/v8/ScriptPromiseResolver.h" 8 #include "bindings/core/v8/ScriptPromiseResolver.h"
9 #include "bindings/core/v8/ToV8.h" 9 #include "bindings/core/v8/ToV8.h"
10 #include "core/dom/DOMArrayBuffer.h" 10 #include "core/dom/DOMArrayBuffer.h"
11 #include "core/dom/DOMArrayBufferView.h" 11 #include "core/dom/DOMArrayBufferView.h"
12 #include "core/dom/DOMException.h" 12 #include "core/dom/DOMException.h"
13 #include "core/dom/ExceptionCode.h" 13 #include "core/dom/ExceptionCode.h"
14 #include "modules/webusb/USBConfiguration.h" 14 #include "modules/webusb/USBConfiguration.h"
15 #include "modules/webusb/USBControlTransferParameters.h" 15 #include "modules/webusb/USBControlTransferParameters.h"
16 #include "modules/webusb/USBInTransferResult.h" 16 #include "modules/webusb/USBInTransferResult.h"
17 #include "modules/webusb/USBIsochronousInTransferResult.h" 17 #include "modules/webusb/USBIsochronousInTransferResult.h"
18 #include "modules/webusb/USBIsochronousOutTransferResult.h" 18 #include "modules/webusb/USBIsochronousOutTransferResult.h"
19 #include "modules/webusb/USBOutTransferResult.h" 19 #include "modules/webusb/USBOutTransferResult.h"
20 #include "platform/MojoHelper.h" 20 #include "platform/mojo/MojoHelper.h"
21 #include "wtf/Assertions.h" 21 #include "wtf/Assertions.h"
22 22
23 namespace usb = device::usb::wtf; 23 namespace usb = device::usb::wtf;
24 24
25 namespace blink { 25 namespace blink {
26 26
27 namespace { 27 namespace {
28 28
29 const char kDeviceStateChangeInProgress[] = "An operation that changes the devic e state is in progress."; 29 const char kDeviceStateChangeInProgress[] = "An operation that changes the devic e state is in progress.";
30 const char kDeviceUnavailable[] = "Device unavailable."; 30 const char kDeviceUnavailable[] = "Device unavailable.";
(...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after
791 if (!isActive(resolver)) 791 if (!isActive(resolver))
792 return; 792 return;
793 793
794 if (success) 794 if (success)
795 resolver->resolve(); 795 resolver->resolve();
796 else 796 else
797 resolver->reject(DOMException::create(NetworkError, "Unable to reset the device.")); 797 resolver->reject(DOMException::create(NetworkError, "Unable to reset the device."));
798 } 798 }
799 799
800 } // namespace blink 800 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webusb/USB.cpp ('k') | third_party/WebKit/Source/platform/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698