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

Unified Diff: chrome/browser/webshare/share_service_impl.h

Issue 2545323002: Implemented stub ShareService mojo service, for navigator.share. (Closed)
Patch Set: Comment and log cleanup. 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 side-by-side diff with in-line comments
Download patch
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..75e62848f0c6dbedce5e67e5b409d9a739e31b66
--- /dev/null
+++ b/chrome/browser/webshare/share_service_impl.h
@@ -0,0 +1,31 @@
+// 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_
+
+#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"
+
+// Desktop implementation of the ShareService service defined in
+// 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.
+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_;
+};
+
+#endif // CHROME_BROWSER_WEBSHARE_SHARE_SERVICE_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698