OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 ATHENA_ACTIVITY_PUBLIC_ACTIVITY_FACTORY_H_ | 5 #ifndef ATHENA_ACTIVITY_PUBLIC_ACTIVITY_FACTORY_H_ |
6 #define ATHENA_ACTIVITY_PUBLIC_ACTIVITY_FACTORY_H_ | 6 #define ATHENA_ACTIVITY_PUBLIC_ACTIVITY_FACTORY_H_ |
7 | 7 |
8 #include "athena/athena_export.h" | 8 #include "athena/athena_export.h" |
9 #include "url/gurl.h" | 9 #include "url/gurl.h" |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 static ActivityFactory* Get(); | 24 static ActivityFactory* Get(); |
25 | 25 |
26 // Shutdowns the factory. | 26 // Shutdowns the factory. |
27 static void Shutdown(); | 27 static void Shutdown(); |
28 | 28 |
29 virtual ~ActivityFactory() {} | 29 virtual ~ActivityFactory() {} |
30 | 30 |
31 // Create an activity of a web page. | 31 // Create an activity of a web page. |
32 virtual Activity* CreateWebActivity(content::BrowserContext* browser_context, | 32 virtual Activity* CreateWebActivity(content::BrowserContext* browser_context, |
33 const GURL& url) = 0; | 33 const GURL& url) = 0; |
| 34 |
| 35 // Create an activity of an app. |
| 36 virtual Activity* CreateAppActivity(content::BrowserContext* browser_context, |
| 37 const std::string& app_id) = 0; |
34 }; | 38 }; |
35 | 39 |
36 } // namespace athena | 40 } // namespace athena |
37 | 41 |
38 #endif // ATHENA_ACTIVITY_PUBLIC_ACTIVITY_FACTORY_H_ | 42 #endif // ATHENA_ACTIVITY_PUBLIC_ACTIVITY_FACTORY_H_ |
OLD | NEW |