blob: 33426ca4c9c8c471106ed76bb48a5b1f01dda3e3 [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_PUBLIC_BROWSER_SMS_SERVICE_H_
#define CONTENT_PUBLIC_BROWSER_SMS_SERVICE_H_
#include "content/common/content_export.h"
#include "third_party/blink/public/mojom/sms/sms_manager.mojom.h"
namespace url {
class Origin;
}
namespace content {
// The interface to be implemented by the browser to mediate between SMS
// Receiver calls and the underlying operating system.
// https://github.com/samuelgoto/sms-receiver
class CONTENT_EXPORT SmsService {
public:
virtual ~SmsService() {}
static std::unique_ptr<SmsService> Create();
virtual void CreateService(blink::mojom::SmsManagerRequest request,
const url::Origin& origin) = 0;
};
} // namespace content
#endif // CONTENT_PUBLIC_BROWSER_SMS_SERVICE_H_