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_UI_EXTENSIONS_HOSTED_APP_BROWSER_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_EXTENSIONS_HOSTED_APP_BROWSER_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_EXTENSIONS_HOSTED_APP_BROWSER_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_EXTENSIONS_HOSTED_APP_BROWSER_CONTROLLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 | 11 |
12 class Browser; | 12 class Browser; |
13 class Profile; | |
14 | 13 |
15 namespace extensions { | 14 namespace extensions { |
16 | 15 |
17 // Class to encapsulate logic to control the browser UI for hosted apps. | 16 // Class to encapsulate logic to control the browser UI for hosted apps. |
18 class HostedAppBrowserController { | 17 class HostedAppBrowserController { |
19 public: | 18 public: |
20 // Indicates whether |browser| is a hosted app browser. | 19 // Indicates whether |browser| is a hosted app browser. |
21 static bool IsForHostedApp(Browser* browser); | 20 static bool IsForHostedApp(Browser* browser); |
22 | 21 |
23 explicit HostedAppBrowserController(Browser* browser); | 22 explicit HostedAppBrowserController(Browser* browser); |
(...skipping 18 matching lines...) Expand all Loading... |
42 Browser* browser_; | 41 Browser* browser_; |
43 const std::string extension_id_; | 42 const std::string extension_id_; |
44 bool should_use_web_app_frame_; | 43 bool should_use_web_app_frame_; |
45 | 44 |
46 DISALLOW_COPY_AND_ASSIGN(HostedAppBrowserController); | 45 DISALLOW_COPY_AND_ASSIGN(HostedAppBrowserController); |
47 }; | 46 }; |
48 | 47 |
49 } // namespace extensions | 48 } // namespace extensions |
50 | 49 |
51 #endif // CHROME_BROWSER_UI_EXTENSIONS_HOSTED_APP_BROWSER_CONTROLLER_H_ | 50 #endif // CHROME_BROWSER_UI_EXTENSIONS_HOSTED_APP_BROWSER_CONTROLLER_H_ |
OLD | NEW |