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

Side by Side Diff: chrome/browser/webshare/share_service_impl.h

Issue 2545323002: Implemented stub ShareService mojo service, for navigator.share. (Closed)
Patch Set: Added OWNERS file to webshare directory 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 unified diff | Download patch
OLDNEW
(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 CHROME_BROWSER_WEBSHARE_SHARE_SERVICE_IMPL_H_
6 #define CHROME_BROWSER_WEBSHARE_SHARE_SERVICE_IMPL_H_
7
Sam McNally 2016/12/09 04:23:45 #include <string>
constantina 2016/12/12 02:50:32 Done.
8 #include "mojo/public/cpp/bindings/interface_request.h"
9 #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.
10 #include "third_party/WebKit/public/platform/modules/webshare/webshare.mojom.h"
11 #include "url/gurl.h"
Sam McNally 2016/12/09 04:23:45 Forward declare GURL instead.
constantina 2016/12/12 02:50:32 Done.
12
13 // Desktop implementation of the ShareService Mojo service.
14 class ShareServiceImpl : public blink::mojom::ShareService {
15 public:
16 explicit ShareServiceImpl(blink::mojom::ShareServiceRequest request);
17 ~ShareServiceImpl() override;
18
19 static void Create(mojo::InterfaceRequest<ShareService> request);
20
21 void Share(const std::string& title,
22 const std::string& text,
23 const GURL& url,
24 const ShareCallback& callback) override;
25
26 private:
27 mojo::Binding<blink::mojom::ShareService> binding_;
28 };
jochen (gone - plz use gerrit) 2016/12/09 08:30:19 disallow copy/assign
constantina 2016/12/12 02:50:32 Done.
29
30 #endif // CHROME_BROWSER_WEBSHARE_SHARE_SERVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698