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

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

Issue 2545323002: Implemented stub ShareService mojo service, for navigator.share. (Closed)
Patch Set: Nits 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 #ifndef CHROME_BROWSER_WEBSHARE_SHARE_SERVICE_IMPL_H_
6 #define CHROME_BROWSER_WEBSHARE_SHARE_SERVICE_IMPL_H_
7
8 #include <string>
9
10 #include "content/common/content_export.h"
11 #include "mojo/public/cpp/bindings/interface_request.h"
12 #include "third_party/WebKit/public/platform/modules/webshare/webshare.mojom.h"
13
14 class GURL;
15
16 // Desktop implementation of the ShareService Mojo service.
17 class CONTENT_EXPORT ShareServiceImpl : public blink::mojom::ShareService {
18 public:
19 ShareServiceImpl() = default;
20 ~ShareServiceImpl() override = default;
21
22 static void Create(mojo::InterfaceRequest<ShareService> request);
23
24 void Share(const std::string& title,
25 const std::string& text,
26 const GURL& url,
27 const ShareCallback& callback) override;
28
29 private:
30 DISALLOW_COPY_AND_ASSIGN(ShareServiceImpl);
31 };
32
33 #endif // CHROME_BROWSER_WEBSHARE_SHARE_SERVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698