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

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

Issue 2545323002: Implemented stub ShareService mojo service, for navigator.share. (Closed)
Patch Set: Rebase and sync again 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
« no previous file with comments | « chrome/browser/webshare/OWNERS ('k') | chrome/browser/webshare/share_service_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "mojo/public/cpp/bindings/interface_request.h"
11 #include "third_party/WebKit/public/platform/modules/webshare/webshare.mojom.h"
12
13 class GURL;
14
15 // Desktop implementation of the ShareService Mojo service.
16 class ShareServiceImpl : public blink::mojom::ShareService {
17 public:
18 ShareServiceImpl() = default;
19 ~ShareServiceImpl() override = default;
20
21 static void Create(mojo::InterfaceRequest<ShareService> request);
22
23 void Share(const std::string& title,
24 const std::string& text,
25 const GURL& url,
26 const ShareCallback& callback) override;
27
28 private:
29 DISALLOW_COPY_AND_ASSIGN(ShareServiceImpl);
30 };
31
32 #endif // CHROME_BROWSER_WEBSHARE_SHARE_SERVICE_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/webshare/OWNERS ('k') | chrome/browser/webshare/share_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698