OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 ATHENA_CONTENT_APP_ACTIVITY_PROXY_H_ | 5 #ifndef ATHENA_CONTENT_APP_ACTIVITY_PROXY_H_ |
6 #define ATHENA_CONTENT_APP_ACTIVITY_PROXY_H_ | 6 #define ATHENA_CONTENT_APP_ACTIVITY_PROXY_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "athena/activity/public/activity.h" | 10 #include "athena/activity/public/activity.h" |
11 #include "athena/activity/public/activity_view_model.h" | 11 #include "athena/activity/public/activity_view_model.h" |
12 #include "athena/content/content_proxy.h" | 12 #include "athena/content/content_proxy.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "ui/gfx/image/image_skia.h" | |
15 | 14 |
16 namespace athena { | 15 namespace athena { |
17 | 16 |
18 class AppActivity; | 17 class AppActivity; |
19 class AppActivityRegistry; | 18 class AppActivityRegistry; |
20 | 19 |
21 // This activity object is a proxy placeholder for the application while it is | 20 // This activity object is a proxy placeholder for the application while it is |
22 // unloaded. When selected it will launch the applciation again and destroy | 21 // unloaded. When selected it will launch the application again and destroy |
23 // itself indirectly. | 22 // itself indirectly. |
24 class AppActivityProxy : public Activity, | 23 class AppActivityProxy : public Activity, |
25 public ActivityViewModel { | 24 public ActivityViewModel { |
26 public: | 25 public: |
27 // The |replaced_activity| is the activity which this proxy replaces. Note | 26 // The |replaced_activity| is the activity which this proxy replaces. Note |
28 // that after the Init() call got called, this object will become invalid. | 27 // that after the Init() call got called, this object will become invalid. |
29 // The |creator| should be informed when the object goes away. | 28 // The |creator| should be informed when the object goes away. |
30 AppActivityProxy(AppActivity* replaced_activity, | 29 AppActivityProxy(AppActivity* replaced_activity, |
31 AppActivityRegistry* creator); | 30 AppActivityRegistry* creator); |
32 | 31 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 | 72 |
74 // The content proxy. | 73 // The content proxy. |
75 scoped_ptr<ContentProxy> content_proxy_; | 74 scoped_ptr<ContentProxy> content_proxy_; |
76 | 75 |
77 DISALLOW_COPY_AND_ASSIGN(AppActivityProxy); | 76 DISALLOW_COPY_AND_ASSIGN(AppActivityProxy); |
78 }; | 77 }; |
79 | 78 |
80 } // namespace athena | 79 } // namespace athena |
81 | 80 |
82 #endif // ATHENA_CONTENT_APP_ACTIVITY_PROXY_H_ | 81 #endif // ATHENA_CONTENT_APP_ACTIVITY_PROXY_H_ |
OLD | NEW |