OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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. |
| 4 |
| 5 #include "content/browser/webshare/share_service_impl.h" |
| 6 |
| 7 namespace content { |
| 8 |
| 9 ShareServiceImpl::ShareServiceImpl(BrowserContext* context, |
| 10 mojo::InterfaceRequest<ShareService> request) |
| 11 : context_(context), binding_(this, std::move(request)) {} |
| 12 |
| 13 ShareServiceImpl::~ShareServiceImpl() = default; |
| 14 |
| 15 // static |
| 16 void ShareServiceImpl::Create(BrowserContext* context, |
| 17 mojo::InterfaceRequest<ShareService> request) { |
| 18 new ShareServiceImpl(context, std::move(request)); |
| 19 } |
| 20 |
| 21 void ShareServiceImpl::Share(const mojo::String& title, |
| 22 const mojo::String& text, |
| 23 const ShareCallback& callback) { |
| 24 NOTIMPLEMENTED() << ": \"" << title << "\", \"" << text << "\""; |
| 25 |
| 26 callback.Run("Not implemented: navigator.share"); |
| 27 |
| 28 static_cast<void>(context_); |
| 29 } |
| 30 |
| 31 } // namespace content |
OLD | NEW |