Move chrome.bluetoothLowEnergy out of //chrome.
This CL moves the Bluetooth Low Energy API out of //chrome and into
//extensions. This will allow us to use this API from AppShell.
This CL also adds the Kiosk Delegate. On Chrome, this delegate will mostly
have stubbed functionality but the delegate does need to exist on all
platforms. This is because AppShell is not restricted only to Chrome OS so
the API will need to be compiled for multiple platforms, whether it is
compiling under a Chrome build or an AppShell build.
Moving the tests will be fairly complicated due to various dependencies
on InProcBrowserTest and ExtensionApiTest. Hence I'll send out a separate
follow on CL to move the tests.
[email protected], [email protected]
BUG=650835
Review-Url: https://codereview.chromium.org/2370373002
Cr-Commit-Position: refs/heads/master@{#421700}
diff --git a/chrome/browser/extensions/chrome_kiosk_delegate.h b/chrome/browser/extensions/chrome_kiosk_delegate.h
new file mode 100644
index 0000000..fa7632de
--- /dev/null
+++ b/chrome/browser/extensions/chrome_kiosk_delegate.h
@@ -0,0 +1,26 @@
+// Copyright 2016 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 CHROME_BROWSER_EXTENSIONS_CHROME_KIOSK_DELEGATE_H_
+#define CHROME_BROWSER_EXTENSIONS_CHROME_KIOSK_DELEGATE_H_
+
+#include "extensions/browser/kiosk/kiosk_delegate.h"
+#include "extensions/common/extension_id.h"
+
+namespace extensions {
+
+// Delegate in Chrome that provides an extension/app API with Kiosk mode
+// functionality.
+class ChromeKioskDelegate : public KioskDelegate {
+ public:
+ ChromeKioskDelegate();
+ ~ChromeKioskDelegate() override;
+
+ // KioskDelegate overrides:
+ bool IsAutoLaunchedKioskApp(const ExtensionId& id) const override;
+};
+
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_CHROME_KIOSK_DELEGATE_H_