1 // Copyright (c) 2014 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.
5 #ifndef XWALK_RUNTIME_BROWSER_SYSAPPS_COMPONENT_H_
6 #define XWALK_RUNTIME_BROWSER_SYSAPPS_COMPONENT_H_
8 #include "base/compiler_specific.h"
9 #include "xwalk/runtime/browser/xwalk_component.h"
10 #include "xwalk/sysapps/common/sysapps_manager.h"
14 class SysAppsComponent : public XWalkComponent {
17 virtual ~SysAppsComponent();
19 void DisableDeviceCapabilities() { manager_.DisableDeviceCapabilities(); }
22 // XWalkComponent implementation.
23 void CreateUIThreadExtensions(
24 content::RenderProcessHost* host,
25 extensions::XWalkExtensionVector* extensions) override;
26 void CreateExtensionThreadExtensions(
27 content::RenderProcessHost* host,
28 extensions::XWalkExtensionVector* extensions) override;
30 sysapps::SysAppsManager manager_;
35 #endif // XWALK_RUNTIME_BROWSER_SYSAPPS_COMPONENT_H_