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

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

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 #ifndef CONTENT_BROWSER_WEBSHARE_SHARE_SERVICE_IMPL_H_
6 #define CONTENT_BROWSER_WEBSHARE_SHARE_SERVICE_IMPL_H_
7
8 #include "mojo/public/cpp/bindings/interface_request.h"
9 #include "mojo/public/cpp/bindings/strong_binding.h"
10 #include "third_party/WebKit/public/platform/modules/webshare/webshare.mojom.h"
11 #include "url/gurl.h"
12
13 class BrowserContext;
14
15 namespace content {
16
17 class ShareServiceImpl : public blink::mojom::ShareService {
18 public:
19 ShareServiceImpl(blink::mojom::ShareServiceRequest request);
20 ~ShareServiceImpl() override;
21
22 static void Create(mojo::InterfaceRequest<ShareService> request);
23
24 void Share(const mojo::String& title,
25 const mojo::String& text,
26 const GURL& url,
27 const ShareCallback& callback) override;
28
29 private:
30 mojo::Binding<blink::mojom::ShareService> binding_;
31 };
32
33 } // namespace content
34
35 #endif // CONTENT_BROWSER_WEBSHARE_SHARE_SERVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698