3a086410f63f533a3bf5ca59661d09bd4b572766
[platform/framework/web/crosswalk.git] / src / athena / content / content_activity_factory.cc
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 #include "athena/content/public/content_activity_factory.h"
6
7 #include "athena/content/app_activity.h"
8 #include "athena/content/web_activity.h"
9 #include "base/logging.h"
10
11 namespace athena {
12
13 ContentActivityFactory::ContentActivityFactory() {
14 }
15
16 ContentActivityFactory::~ContentActivityFactory() {}
17
18 Activity* ContentActivityFactory::CreateWebActivity(
19     content::BrowserContext* browser_context,
20     const GURL& url) {
21   return new WebActivity(browser_context, url);
22 }
23
24 Activity* ContentActivityFactory::CreateAppActivity(
25     apps::ShellAppWindow* app_window) {
26   return new AppActivity(app_window);
27 }
28
29 }  // namespace athena