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

Side by Side Diff: chrome/browser/ui/app_list/app_list_shower_views.h

Issue 219383006: Never create an app list for an incognito profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 CHROME_BROWSER_UI_APP_LIST_APP_LIST_SHOWER_VIEWS_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_SHOWER_VIEWS_H_
6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SHOWER_VIEWS_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SHOWER_VIEWS_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "ui/gfx/native_widget_types.h" 9 #include "ui/gfx/native_widget_types.h"
10 10
11 namespace app_list { 11 namespace app_list {
12 class AppListView; 12 class AppListView;
13 } 13 }
14 14
15 class AppListShowerDelegate; 15 class AppListShowerDelegate;
16 class AppListShowerUnitTest; 16 class AppListShowerUnitTest;
17 class Profile; 17 class Profile;
18 class ScopedKeepAlive; 18 class ScopedKeepAlive;
19 19
20 // Creates and shows an AppList as needed for non-Ash desktops. It is owned by 20 // Creates and shows an AppList as needed for non-Ash desktops. It is owned by
21 // AppListServiceViews. 21 // AppListServiceViews.
22 class AppListShower { 22 class AppListShower {
23 public: 23 public:
24 explicit AppListShower(AppListShowerDelegate* delegate); 24 explicit AppListShower(AppListShowerDelegate* delegate);
25 virtual ~AppListShower(); 25 virtual ~AppListShower();
26 26
27 void ShowForProfile(Profile* requested_profile); 27 void ShowForCurrentProfile();
28 gfx::NativeWindow GetWindow(); 28 gfx::NativeWindow GetWindow();
29 29
30 app_list::AppListView* app_list() { return app_list_; } 30 app_list::AppListView* app_list() { return app_list_; }
31 Profile* profile() const { return profile_; } 31 Profile* profile() const { return profile_; }
32 32
33 // Create or recreate, and initialize |app_list_| from |requested_profile|. 33 // Create or recreate, and initialize |app_list_| from |requested_profile|.
34 void CreateViewForProfile(Profile* requested_profile); 34 void CreateViewForProfile(Profile* requested_profile);
35 35
36 void DismissAppList(); 36 void DismissAppList();
37 37
(...skipping 27 matching lines...) Expand all
65 65
66 // Used to keep the browser process alive while the app list is visible. 66 // Used to keep the browser process alive while the app list is visible.
67 scoped_ptr<ScopedKeepAlive> keep_alive_; 67 scoped_ptr<ScopedKeepAlive> keep_alive_;
68 68
69 bool window_icon_updated_; 69 bool window_icon_updated_;
70 70
71 DISALLOW_COPY_AND_ASSIGN(AppListShower); 71 DISALLOW_COPY_AND_ASSIGN(AppListShower);
72 }; 72 };
73 73
74 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SHOWER_VIEWS_H_ 74 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SHOWER_VIEWS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/app_list_service_views.cc ('k') | chrome/browser/ui/app_list/app_list_shower_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698