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

Unified Diff: components/test_runner/app_banner_client.h

Issue 2393513004: Convert app banners to use Mojo. (Closed)
Patch Set: Add TODO Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/test_runner/DEPS ('k') | components/test_runner/app_banner_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/app_banner_client.h
diff --git a/components/test_runner/app_banner_client.h b/components/test_runner/app_banner_client.h
deleted file mode 100644
index dfd7798726669a58c97b25563bc418dced849e2e..0000000000000000000000000000000000000000
--- a/components/test_runner/app_banner_client.h
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_TEST_RUNNER_APP_BANNER_CLIENT_H_
-#define COMPONENTS_TEST_RUNNER_APP_BANNER_CLIENT_H_
-
-#include "base/compiler_specific.h"
-#include "base/id_map.h"
-#include "base/macros.h"
-#include "components/test_runner/test_runner_export.h"
-#include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerClient.h"
-
-namespace test_runner {
-
-// Test app banner client that holds on to callbacks and allows the test runner
-// to resolve them.
-class TEST_RUNNER_EXPORT AppBannerClient
- : public NON_EXPORTED_BASE(blink::WebAppBannerClient) {
- public:
- AppBannerClient();
- ~AppBannerClient() override;
-
- // blink::WebAppBannerClient:
- void registerBannerCallbacks(
- int requestId,
- blink::WebAppBannerCallbacks* callbacks) override;
-
- // Resolve the promise associated with the beforeinstallprompt event with the
- // given |request_id|. The promise is resolved with a result.platform set to
- // |platform|. If |platform| is not empty, result.outcome will be 'accepted',
- // otherwise it will be 'dismissed'.
- void ResolvePromise(int request_id, const std::string& platform);
-
- private:
- IDMap<blink::WebAppBannerCallbacks, IDMapOwnPointer> callbacks_map_;
-
- DISALLOW_COPY_AND_ASSIGN(AppBannerClient);
-};
-
-} // namespace test_runner
-
-#endif // COMPONENTS_TEST_RUNNER_APP_BANNER_CLIENT_H_
« no previous file with comments | « components/test_runner/DEPS ('k') | components/test_runner/app_banner_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698