summaryrefslogtreecommitdiffstats
path: root/athena/content/content_activity_factory.cc
blob: 3a086410f63f533a3bf5ca59661d09bd4b572766 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright 2014 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.

#include "athena/content/public/content_activity_factory.h"

#include "athena/content/app_activity.h"
#include "athena/content/web_activity.h"
#include "base/logging.h"

namespace athena {

ContentActivityFactory::ContentActivityFactory() {
}

ContentActivityFactory::~ContentActivityFactory() {}

Activity* ContentActivityFactory::CreateWebActivity(
    content::BrowserContext* browser_context,
    const GURL& url) {
  return new WebActivity(browser_context, url);
}

Activity* ContentActivityFactory::CreateAppActivity(
    apps::ShellAppWindow* app_window) {
  return new AppActivity(app_window);
}

}  // namespace athena