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

Side by Side Diff: content/renderer/installedapp/web_installed_app_impl.h

Issue 1586563009: IsNativeAppInstalled Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 2014 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_RENDERER_INSTALLEDAPP_WEB_INSTALLED_APP_IMPL
6 #define CONTENT_RENDERER_INSTALLEDAPP_WEB_INSTALLED_APP_IMPL
7
8 #include <string>
9
10 #include "base/compiler_specific.h"
11 #include "content/common/content_export.h"
12 #include "components/installedapp/installed_app_provider.mojom.h"
13 #include "third_party/WebKit/public/platform/modules/installedapp/WebInstalledAp p.h"
14 #include "third_party/WebKit/public/web/WebInstalledAppVerificationManager.h"
15
16 namespace content {
17
18 class CONTENT_EXPORT WebInstalledAppImpl
19 : NON_EXPORTED_BASE(public blink::WebInstalledApp) {
20 public:
21 explicit WebInstalledAppImpl();
22 ~WebInstalledAppImpl();
23
24 // blink::WebInstalledApp interface:
25 void isAppInstalled(const blink::WebString&,
26 const blink::WebString&,
27 const blink::WebString&,
28 blink::AppInstalledCallbacks*);
29
30 void isNativeAppInstalled(const blink::WebInstalledAppVerificationManager&,
31 const blink::WebString&,
32 blink::AppInstalledCallbacks*);
33
34 private:
35 components::InstalledAppProviderPtr& GetProvider();
36 void OnIsAppInstalled(scoped_ptr<blink::AppInstalledCallbacks> callbacks,
37 bool result);
38 void OnIsNativeAppInstalled(
39 scoped_ptr<blink::AppInstalledCallbacks> callbacks,
40 bool result);
41 // Handle to the InstalledApp mojo service.
42 components::InstalledAppProviderPtr provider_;
43
44 DISALLOW_COPY_AND_ASSIGN(WebInstalledAppImpl);
45 };
46
47 } // namespace content
48
49 #endif // CONTENT_RENDERER_INSTALLEDAPP_WEB_INSTALLED_APP_IMPL
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698