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

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

Issue 1880003002: Added browser-side service for navigator.actions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ballista-share-requester-mojo-blink
Patch Set: Only add ShareService if experimental flag is on. Created 4 years, 5 months 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 CONTENT_BROWSER_WEBSHARE_SHARE_SERVICE_IMPL_H_
6 #define CONTENT_BROWSER_WEBSHARE_SHARE_SERVICE_IMPL_H_
7
8 #include "mojo/public/cpp/bindings/interface_request.h"
9 #include "mojo/public/cpp/bindings/strong_binding.h"
10 #include "third_party/WebKit/public/platform/modules/webshare/webshare.mojom.h"
11
12 namespace content {
13
14 class BrowserContext;
15
16 class ShareServiceImpl : public blink::mojom::ShareService {
17 public:
18 ShareServiceImpl(BrowserContext* context,
19 mojo::InterfaceRequest<ShareService> request);
20
21 ~ShareServiceImpl() override;
22
23 static void Create(BrowserContext* context,
24 mojo::InterfaceRequest<ShareService> request);
25
26 void Share(const mojo::String& title,
27 const mojo::String& text,
28 const ShareCallback& callback) override;
29
30 private:
31 BrowserContext* context_;
32 mojo::StrongBinding<ShareService> binding_;
33 };
34
35 } // namespace content
36
37 #endif // CONTENT_BROWSER_WEBSHARE_SHARE_SERVICE_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/browser/webshare/share_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698