OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_APPS_APP_SHIM_EXTENSION_APP_SHIM_HANDLER_MAC_H_ | 5 #ifndef CHROME_BROWSER_APPS_APP_SHIM_EXTENSION_APP_SHIM_HANDLER_MAC_H_ |
6 #define CHROME_BROWSER_APPS_APP_SHIM_EXTENSION_APP_SHIM_HANDLER_MAC_H_ | 6 #define CHROME_BROWSER_APPS_APP_SHIM_EXTENSION_APP_SHIM_HANDLER_MAC_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <set> | 10 #include <set> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "apps/app_lifetime_monitor.h" | 14 #include "apps/app_lifetime_monitor.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
17 #include "chrome/browser/apps/app_shim/app_shim_handler_mac.h" | 17 #include "chrome/browser/apps/app_shim/app_shim_handler_mac.h" |
18 #include "chrome/browser/ui/browser.h" | 18 #include "chrome/browser/ui/browser.h" |
19 #include "chrome/browser/ui/browser_list_observer.h" | 19 #include "chrome/browser/ui/browser_list_observer.h" |
20 #include "content/public/browser/notification_observer.h" | 20 #include "content/public/browser/notification_observer.h" |
21 #include "content/public/browser/notification_registrar.h" | 21 #include "content/public/browser/notification_registrar.h" |
22 #include "extensions/browser/app_window/app_window_registry.h" | 22 #include "extensions/browser/app_window/app_window_registry.h" |
23 | 23 |
24 class Profile; | 24 class Profile; |
25 | 25 |
26 namespace base { | 26 namespace base { |
27 class FilePath; | 27 class FilePath; |
28 } | 28 } |
29 | 29 |
30 namespace content { | |
31 class WebContents; | |
32 } | |
33 | |
34 namespace extensions { | 30 namespace extensions { |
35 class AppWindow; | 31 class AppWindow; |
36 class Extension; | 32 class Extension; |
37 } | 33 } |
38 | 34 |
39 namespace apps { | 35 namespace apps { |
40 | 36 |
41 // This app shim handler that handles events for app shims that correspond to an | 37 // This app shim handler that handles events for app shims that correspond to an |
42 // extension. | 38 // extension. |
43 class ExtensionAppShimHandler : public AppShimHandler, | 39 class ExtensionAppShimHandler : public AppShimHandler, |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 content::NotificationRegistrar registrar_; | 189 content::NotificationRegistrar registrar_; |
194 | 190 |
195 base::WeakPtrFactory<ExtensionAppShimHandler> weak_factory_; | 191 base::WeakPtrFactory<ExtensionAppShimHandler> weak_factory_; |
196 | 192 |
197 DISALLOW_COPY_AND_ASSIGN(ExtensionAppShimHandler); | 193 DISALLOW_COPY_AND_ASSIGN(ExtensionAppShimHandler); |
198 }; | 194 }; |
199 | 195 |
200 } // namespace apps | 196 } // namespace apps |
201 | 197 |
202 #endif // CHROME_BROWSER_APPS_APP_SHIM_EXTENSION_APP_SHIM_HANDLER_MAC_H_ | 198 #endif // CHROME_BROWSER_APPS_APP_SHIM_EXTENSION_APP_SHIM_HANDLER_MAC_H_ |
OLD | NEW |