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

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

Issue 2545323002: Implemented stub ShareService mojo service, for navigator.share. (Closed)
Patch Set: Rebase and sync again 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
« no previous file with comments | « chrome/browser/webshare/OWNERS ('k') | chrome/browser/webshare/share_service_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..83de10f9511ff36394283b8f200f331ae0dad769
--- /dev/null
+++ b/chrome/browser/webshare/share_service_impl.h
@@ -0,0 +1,32 @@
+// 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 <string>
+
+#include "mojo/public/cpp/bindings/interface_request.h"
+#include "third_party/WebKit/public/platform/modules/webshare/webshare.mojom.h"
+
+class GURL;
+
+// Desktop implementation of the ShareService Mojo service.
+class ShareServiceImpl : public blink::mojom::ShareService {
+ public:
+ ShareServiceImpl() = default;
+ ~ShareServiceImpl() override = default;
+
+ 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:
+ DISALLOW_COPY_AND_ASSIGN(ShareServiceImpl);
+};
+
+#endif // CHROME_BROWSER_WEBSHARE_SHARE_SERVICE_IMPL_H_
« no previous file with comments | « chrome/browser/webshare/OWNERS ('k') | chrome/browser/webshare/share_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698