Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / extensions / browser / api / serial / serial_service_factory.h
blobdf74c9ba531d90014322bdc22035d8533dea91e7
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
3 // found in the LICENSE file.
5 #ifndef EXTENSIONS_BROWSER_API_SERIAL_SERIAL_SERVICE_FACTORY_H_
6 #define EXTENSIONS_BROWSER_API_SERIAL_SERIAL_SERVICE_FACTORY_H_
8 #include "base/callback.h"
9 #include "device/serial/serial.mojom.h"
10 #include "extensions/browser/mojo/service_registration.h"
12 namespace extensions {
14 void BindToSerialServiceRequest(
15 mojo::InterfaceRequest<device::serial::SerialService> request);
17 void SetSerialServiceFactoryForTest(const base::Callback<void(
18 mojo::InterfaceRequest<device::serial::SerialService> request)>* callback);
20 } // namespace extensions
22 #endif // EXTENSIONS_BROWSER_API_SERIAL_SERIAL_SERVICE_FACTORY_H_