- add third_party src.
[platform/framework/web/crosswalk.git] / src / xwalk / runtime / browser / application_component.cc
1 // Copyright (c) 2013 Intel Corporation. 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 "xwalk/runtime/browser/application_component.h"
6
7 #include "xwalk/application/browser/application_system.h"
8
9 namespace xwalk {
10
11 ApplicationComponent::ApplicationComponent(
12     RuntimeContext* runtime_context)
13     : app_system_(application::ApplicationSystem::Create(runtime_context)),
14       extensions_enabled_(true) {}
15
16 ApplicationComponent::~ApplicationComponent() {}
17
18 void ApplicationComponent::CreateUIThreadExtensions(
19     content::RenderProcessHost* host,
20     extensions::XWalkExtensionVector* extensions) {
21   if (!extensions_enabled_)
22     return;
23   app_system_->CreateExtensions(host, extensions);
24 }
25
26 void ApplicationComponent::CreateExtensionThreadExtensions(
27     content::RenderProcessHost* host,
28     extensions::XWalkExtensionVector* extensions) {}
29
30 }  // namespace xwalk