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

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

Issue 2488573002: Refactor getInstalledRelatedApps code and add manifest logic and tests. (Closed)
Patch Set: Use SecurityOrigin, not WebSecurityOrigin. Created 3 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
« no previous file with comments | « content/renderer/BUILD.gn ('k') | content/renderer/installedapp/related_apps_fetcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 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_RELATED_APPS_FETCHER_H
6 #define CONTENT_RENDERER_INSTALLEDAPP_RELATED_APPS_FETCHER_H
7
8 #include <string>
9
10 #include "base/compiler_specific.h"
11 #include "content/common/content_export.h"
12 #include "third_party/WebKit/public/platform/modules/installedapp/WebRelatedApps Fetcher.h"
13
14 namespace content {
15
16 struct Manifest;
17 struct ManifestDebugInfo;
18 class ManifestManager;
19
20 class CONTENT_EXPORT RelatedAppsFetcher
21 : public NON_EXPORTED_BASE(blink::WebRelatedAppsFetcher) {
22 public:
23 explicit RelatedAppsFetcher(ManifestManager* manifest_manager);
24 ~RelatedAppsFetcher() override;
25
26 // blink::WebRelatedAppsFetcher overrides:
27 void getManifestRelatedApplications(
28 std::unique_ptr<blink::WebCallbacks<
29 const blink::WebVector<blink::WebRelatedApplication>&,
30 void>> callbacks) override;
31
32 private:
33 // Callback for when the manifest has been fetched, triggered by a call to
34 // getManifestRelatedApplications.
35 void OnGetManifestForRelatedApplications(
36 std::unique_ptr<blink::WebCallbacks<
37 const blink::WebVector<blink::WebRelatedApplication>&,
38 void>> callbacks,
39 const GURL& url,
40 const Manifest& manifest,
41 const ManifestDebugInfo& manifest_debug_info);
42
43 ManifestManager* manifest_manager_;
44
45 DISALLOW_COPY_AND_ASSIGN(RelatedAppsFetcher);
46 };
47
48 } // namespace content
49
50 #endif // CONTENT_RENDERER_INSTALLEDAPP_RELATED_APPS_FETCHER_H
OLDNEW
« no previous file with comments | « content/renderer/BUILD.gn ('k') | content/renderer/installedapp/related_apps_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698