OLD | NEW |
(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 |
OLD | NEW |