Index: chrome/browser/webshare/share_service_impl.h |
diff --git a/chrome/browser/webshare/share_service_impl.h b/chrome/browser/webshare/share_service_impl.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5540dc0b53bfd5f5fde215289055ea99918538d4 |
--- /dev/null |
+++ b/chrome/browser/webshare/share_service_impl.h |
@@ -0,0 +1,30 @@ |
+// 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 CHROME_BROWSER_WEBSHARE_SHARE_SERVICE_IMPL_H_ |
+#define CHROME_BROWSER_WEBSHARE_SHARE_SERVICE_IMPL_H_ |
+ |
Sam McNally
2016/12/09 04:23:45
#include <string>
constantina
2016/12/12 02:50:32
Done.
|
+#include "mojo/public/cpp/bindings/interface_request.h" |
+#include "mojo/public/cpp/bindings/strong_binding.h" |
Sam McNally
2016/12/09 04:23:45
Move this into the .cc file.
constantina
2016/12/12 02:50:32
Done.
|
+#include "third_party/WebKit/public/platform/modules/webshare/webshare.mojom.h" |
+#include "url/gurl.h" |
Sam McNally
2016/12/09 04:23:45
Forward declare GURL instead.
constantina
2016/12/12 02:50:32
Done.
|
+ |
+// Desktop implementation of the ShareService Mojo service. |
+class ShareServiceImpl : public blink::mojom::ShareService { |
+ public: |
+ explicit ShareServiceImpl(blink::mojom::ShareServiceRequest request); |
+ ~ShareServiceImpl() override; |
+ |
+ static void Create(mojo::InterfaceRequest<ShareService> request); |
+ |
+ void Share(const std::string& title, |
+ const std::string& text, |
+ const GURL& url, |
+ const ShareCallback& callback) override; |
+ |
+ private: |
+ mojo::Binding<blink::mojom::ShareService> binding_; |
+}; |
jochen (gone - plz use gerrit)
2016/12/09 08:30:19
disallow copy/assign
constantina
2016/12/12 02:50:32
Done.
|
+ |
+#endif // CHROME_BROWSER_WEBSHARE_SHARE_SERVICE_IMPL_H_ |