OLD | NEW |
| (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 ATHENA_TEST_BASE_SAMPLE_ACTIVITY_FACTORY_H_ | |
6 #define ATHENA_TEST_BASE_SAMPLE_ACTIVITY_FACTORY_H_ | |
7 | |
8 #include "athena/activity/public/activity_factory.h" | |
9 #include "base/macros.h" | |
10 | |
11 namespace athena { | |
12 namespace test { | |
13 | |
14 class SampleActivityFactory : public ActivityFactory { | |
15 public: | |
16 SampleActivityFactory(); | |
17 ~SampleActivityFactory() override; | |
18 | |
19 // Overridden from ActivityFactory: | |
20 Activity* CreateWebActivity(content::BrowserContext* browser_context, | |
21 const base::string16& title, | |
22 const GURL& url) override; | |
23 Activity* CreateWebActivity(content::WebContents* contents) override; | |
24 Activity* CreateAppActivity(const std::string& app_id, | |
25 views::WebView* web_view) override; | |
26 | |
27 private: | |
28 DISALLOW_COPY_AND_ASSIGN(SampleActivityFactory); | |
29 }; | |
30 | |
31 } // namespace test | |
32 } // namespace athena | |
33 | |
34 #endif // ATHENA_TEST_BASE_SAMPLE_ACTIVITY_FACTORY_H_ | |
OLD | NEW |