Chromium Code Reviews| 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 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 namespace content { | |
|
Matt Giuca
2016/12/05 05:57:45
This should be moved to chrome (note that the Andr
| |
| 14 | |
| 15 class ShareServiceImpl : public blink::mojom::ShareService { | |
| 16 public: | |
| 17 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 } // namespace content | |
| 32 | |
| 33 #endif // CONTENT_BROWSER_WEBSHARE_SHARE_SERVICE_IMPL_H_ | |
| OLD | NEW |