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 #ifndef CHROME_BROWSER_WEBSHARE_SHARE_SERVICE_IMPL_H_ | |
6 #define CHROME_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 // Desktop implementation of the ShareService service defined in | |
14 // third_party/WebKit/public/platform/modules/webshare/webshare.mojom. | |
Matt Giuca
2016/12/08 06:42:56
Don't think this is necessary (a code search will
constantina
2016/12/09 02:24:14
Done.
| |
15 class ShareServiceImpl : public blink::mojom::ShareService { | |
16 public: | |
17 explicit ShareServiceImpl(blink::mojom::ShareServiceRequest request); | |
18 ~ShareServiceImpl() override; | |
19 | |
20 static void Create(mojo::InterfaceRequest<ShareService> request); | |
21 | |
22 void Share(const std::string& title, | |
23 const std::string& text, | |
24 const GURL& url, | |
25 const ShareCallback& callback) override; | |
26 | |
27 private: | |
28 mojo::Binding<blink::mojom::ShareService> binding_; | |
29 }; | |
30 | |
31 #endif // CHROME_BROWSER_WEBSHARE_SHARE_SERVICE_IMPL_H_ | |
OLD | NEW |