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

Side by Side Diff: components/test_runner/app_banner_client.h

Issue 1169493003: Turn test runner library into an actual component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 5 years, 6 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 | « components/test_runner/BUILD.gn ('k') | components/test_runner/gamepad_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_TEST_RUNNER_APP_BANNER_CLIENT_H_ 5 #ifndef COMPONENTS_TEST_RUNNER_APP_BANNER_CLIENT_H_
6 #define COMPONENTS_TEST_RUNNER_APP_BANNER_CLIENT_H_ 6 #define COMPONENTS_TEST_RUNNER_APP_BANNER_CLIENT_H_
7 7
8 #include "base/compiler_specific.h"
8 #include "base/id_map.h" 9 #include "base/id_map.h"
10 #include "components/test_runner/test_runner_export.h"
9 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerClie nt.h" 11 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerClie nt.h"
10 12
11 namespace test_runner { 13 namespace test_runner {
12 14
13 // Test app banner client that holds on to callbacks and allows the test runner 15 // Test app banner client that holds on to callbacks and allows the test runner
14 // to resolve them. 16 // to resolve them.
15 class AppBannerClient : public blink::WebAppBannerClient { 17 class TEST_RUNNER_EXPORT AppBannerClient
18 : public NON_EXPORTED_BASE(blink::WebAppBannerClient) {
16 public: 19 public:
17 AppBannerClient(); 20 AppBannerClient();
18 virtual ~AppBannerClient(); 21 virtual ~AppBannerClient();
19 22
20 // blink::WebAppBannerClient: 23 // blink::WebAppBannerClient:
21 void registerBannerCallbacks( 24 void registerBannerCallbacks(
22 int requestId, 25 int requestId,
23 blink::WebAppBannerCallbacks* callbacks) override; 26 blink::WebAppBannerCallbacks* callbacks) override;
24 27
25 void ResolvePromise(int request_id, const std::string& platform); 28 void ResolvePromise(int request_id, const std::string& platform);
26 29
27 private: 30 private:
28 IDMap<blink::WebAppBannerCallbacks, IDMapOwnPointer> callbacks_map_; 31 IDMap<blink::WebAppBannerCallbacks, IDMapOwnPointer> callbacks_map_;
29 32
30 DISALLOW_COPY_AND_ASSIGN(AppBannerClient); 33 DISALLOW_COPY_AND_ASSIGN(AppBannerClient);
31 }; 34 };
32 35
33 } // namespace test_runner 36 } // namespace test_runner
34 37
35 #endif // COMPONENTS_TEST_RUNNER_APP_BANNER_CLIENT_H_ 38 #endif // COMPONENTS_TEST_RUNNER_APP_BANNER_CLIENT_H_
OLDNEW
« no previous file with comments | « components/test_runner/BUILD.gn ('k') | components/test_runner/gamepad_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698