| // 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. |
| |
| #ifndef ATHENA_CONTENT_CONTENT_ACTIVITY_FACTORY_H_ |
| #define ATHENA_CONTENT_CONTENT_ACTIVITY_FACTORY_H_ |
| |
| #include "athena/activity/public/activity_factory.h" |
| #include "base/macros.h" |
| |
| namespace athena { |
| |
| class ContentActivityFactory : public ActivityFactory { |
| public: |
| ContentActivityFactory(); |
| ~ContentActivityFactory() override; |
| |
| // Overridden from ActivityFactory: |
| Activity* CreateWebActivity(content::BrowserContext* browser_context, |
| const base::string16& title, |
| const GURL& url) override; |
| Activity* CreateWebActivity(content::WebContents* contents) override; |
| Activity* CreateAppActivity(const std::string& app_id, |
| views::WebView* web_view) override; |
| |
| private: |
| DISALLOW_COPY_AND_ASSIGN(ContentActivityFactory); |
| }; |
| |
| } // namespace athena |
| |
| #endif // ATHENA_CONTENT_CONTENT_ACTIVITY_FACTORY_H_ |