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

Side by Side Diff: content/browser/webshare/share_service_impl.cc

Issue 2545323002: Implemented stub ShareService mojo service, for navigator.share. (Closed)
Patch Set: Created 4 years 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
(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(blink::mojom::ShareServiceRequest request)
10 : binding_(this) {
11 binding_.Bind(std::move(request));
12 }
13
14 ShareServiceImpl::~ShareServiceImpl() {}
15
16 // static
17 void ShareServiceImpl::Create(mojo::InterfaceRequest<ShareService> request) {
18 new ShareServiceImpl(std::move(request));
19 }
20
21 void ShareServiceImpl::Share(const std::string& title,
22 const std::string& text,
23 const GURL& url,
24 const ShareCallback& callback) {
25
26 NOTIMPLEMENTED() << "Share called";
27 callback.Run(base::Optional<std::string>("Not implemented: navigator.share"));
28 }
29 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698