| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_APP_MODE_APP_SESSION_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_APP_MODE_APP_SESSION_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_APP_MODE_APP_SESSION_H_ | 6 #define CHROME_BROWSER_CHROMEOS_APP_MODE_APP_SESSION_H_ |
| 7 | 7 |
| 8 #include <memory> |
| 8 #include <string> | 9 #include <string> |
| 9 | 10 |
| 10 #include "base/macros.h" | 11 #include "base/macros.h" |
| 11 #include "base/memory/scoped_ptr.h" | |
| 12 #include "chrome/browser/chromeos/app_mode/kiosk_session_plugin_handler_delegate
.h" | 12 #include "chrome/browser/chromeos/app_mode/kiosk_session_plugin_handler_delegate
.h" |
| 13 | 13 |
| 14 class Profile; | 14 class Profile; |
| 15 | 15 |
| 16 namespace content { | 16 namespace content { |
| 17 class WebContents; | 17 class WebContents; |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace extensions { | 20 namespace extensions { |
| 21 class AppWindow; | 21 class AppWindow; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 50 void OnAppWindowAdded(extensions::AppWindow* app_window); | 50 void OnAppWindowAdded(extensions::AppWindow* app_window); |
| 51 void OnLastAppWindowClosed(); | 51 void OnLastAppWindowClosed(); |
| 52 | 52 |
| 53 // KioskSessionPluginHandlerDelegate | 53 // KioskSessionPluginHandlerDelegate |
| 54 bool ShouldHandlePlugin(const base::FilePath& plugin_path) const override; | 54 bool ShouldHandlePlugin(const base::FilePath& plugin_path) const override; |
| 55 void OnPluginCrashed(const base::FilePath& plugin_path) override; | 55 void OnPluginCrashed(const base::FilePath& plugin_path) override; |
| 56 void OnPluginHung(const std::set<int>& hung_plugins) override; | 56 void OnPluginHung(const std::set<int>& hung_plugins) override; |
| 57 | 57 |
| 58 bool is_shutting_down_ = false; | 58 bool is_shutting_down_ = false; |
| 59 | 59 |
| 60 scoped_ptr<AppWindowHandler> app_window_handler_; | 60 std::unique_ptr<AppWindowHandler> app_window_handler_; |
| 61 scoped_ptr<BrowserWindowHandler> browser_window_handler_; | 61 std::unique_ptr<BrowserWindowHandler> browser_window_handler_; |
| 62 scoped_ptr<KioskSessionPluginHandler> plugin_handler_; | 62 std::unique_ptr<KioskSessionPluginHandler> plugin_handler_; |
| 63 | 63 |
| 64 DISALLOW_COPY_AND_ASSIGN(AppSession); | 64 DISALLOW_COPY_AND_ASSIGN(AppSession); |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 } // namespace chromeos | 67 } // namespace chromeos |
| 68 | 68 |
| 69 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_APP_SESSION_H_ | 69 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_APP_SESSION_H_ |
| OLD | NEW |