Index: content/browser/webshare/share_service_impl.h |
diff --git a/content/browser/webshare/share_service_impl.h b/content/browser/webshare/share_service_impl.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ee8ca72925db2e20541b897d65a787a6026b191c |
--- /dev/null |
+++ b/content/browser/webshare/share_service_impl.h |
@@ -0,0 +1,35 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CONTENT_BROWSER_WEBSHARE_SHARE_SERVICE_IMPL_H_ |
+#define CONTENT_BROWSER_WEBSHARE_SHARE_SERVICE_IMPL_H_ |
+ |
+#include "mojo/public/cpp/bindings/interface_request.h" |
+#include "mojo/public/cpp/bindings/strong_binding.h" |
+#include "third_party/WebKit/public/platform/modules/webshare/webshare.mojom.h" |
+#include "url/gurl.h" |
+ |
+class BrowserContext; |
+ |
+namespace content { |
+ |
+class ShareServiceImpl : public blink::mojom::ShareService { |
+ public: |
+ ShareServiceImpl(blink::mojom::ShareServiceRequest request); |
+ ~ShareServiceImpl() override; |
+ |
+ static void Create(mojo::InterfaceRequest<ShareService> request); |
+ |
+ void Share(const mojo::String& title, |
+ const mojo::String& text, |
+ const GURL& url, |
+ const ShareCallback& callback) override; |
+ |
+ private: |
+ mojo::Binding<blink::mojom::ShareService> binding_; |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_BROWSER_WEBSHARE_SHARE_SERVICE_IMPL_H_ |