Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3455)

Unified Diff: chrome/browser/chromeos/app_mode/kiosk_app_external_loader.h

Issue 300843013: Install and launch kiosk app from cached crx file at start up. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove the useless offline_enabled_app_profile testing data. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/app/chromeos_strings.grdp ('k') | chrome/browser/chromeos/app_mode/kiosk_app_external_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/app_mode/kiosk_app_external_loader.h
diff --git a/chrome/browser/chromeos/app_mode/kiosk_app_external_loader.h b/chrome/browser/chromeos/app_mode/kiosk_app_external_loader.h
new file mode 100644
index 0000000000000000000000000000000000000000..93c859637bbce1ee249eb34e602a3c63ec4c20aa
--- /dev/null
+++ b/chrome/browser/chromeos/app_mode/kiosk_app_external_loader.h
@@ -0,0 +1,39 @@
+// 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 CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_EXTERNAL_LOADER_H_
+#define CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_EXTERNAL_LOADER_H_
+
+#include "base/memory/scoped_ptr.h"
+#include "base/memory/weak_ptr.h"
+#include "base/values.h"
+#include "chrome/browser/extensions/external_loader.h"
+
+namespace chromeos {
+
+// A custom extensions::ExternalLoader that is created by KioskAppManager and
+// used for install kiosk app extensions.
+class KioskAppExternalLoader
+ : public extensions::ExternalLoader,
+ public base::SupportsWeakPtr<KioskAppExternalLoader> {
+ public:
+ KioskAppExternalLoader();
+
+ // Sets current kiosk app extensions to be loaded.
+ void SetCurrentAppExtensions(scoped_ptr<base::DictionaryValue> prefs);
+
+ // extensions::ExternalLoader overrides:
+ virtual void StartLoading() OVERRIDE;
+
+ private:
+ virtual ~KioskAppExternalLoader();
+
+ base::DictionaryValue kiosk_apps_;
+
+ DISALLOW_COPY_AND_ASSIGN(KioskAppExternalLoader);
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_EXTERNAL_LOADER_H_
« no previous file with comments | « chrome/app/chromeos_strings.grdp ('k') | chrome/browser/chromeos/app_mode/kiosk_app_external_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698