OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_MEDIA_GALLERY_MEDIA_GALLERIES_DIALOG_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_DIALOG_CONTROLLER_H_ |
6 #define CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_DIALOG_CONTROLLER_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_DIALOG_CONTROLLER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 | 10 |
| 11 #include "base/callback.h" |
11 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
12 #include "base/string16.h" | 13 #include "base/string16.h" |
13 #include "chrome/browser/media_gallery/media_galleries_preferences.h" | 14 #include "chrome/browser/media_gallery/media_galleries_preferences.h" |
14 #include "ui/base/dialogs/select_file_dialog.h" | 15 #include "ui/base/dialogs/select_file_dialog.h" |
15 #include "ui/gfx/native_widget_types.h" | 16 #include "ui/gfx/native_widget_types.h" |
16 | 17 |
17 namespace extensions { | 18 namespace extensions { |
18 class Extension; | 19 class Extension; |
19 } | 20 } |
20 | 21 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 // This is just a reference, but it's assumed that it won't become invalid | 105 // This is just a reference, but it's assumed that it won't become invalid |
105 // while the dialog is showing. | 106 // while the dialog is showing. |
106 const extensions::Extension& extension_; | 107 const extensions::Extension& extension_; |
107 | 108 |
108 // This map excludes those galleries which have been blacklisted; it only | 109 // This map excludes those galleries which have been blacklisted; it only |
109 // counts active known galleries. | 110 // counts active known galleries. |
110 KnownGalleryPermissions known_galleries_; | 111 KnownGalleryPermissions known_galleries_; |
111 NewGalleryPermissions new_galleries_; | 112 NewGalleryPermissions new_galleries_; |
112 | 113 |
113 // We run this callback when done. | 114 // We run this callback when done. |
114 const base::Callback<void(void)>& on_finish_; | 115 const base::Callback<void(void)> on_finish_; |
115 | 116 |
116 // The model that tracks galleries and extensions' permissions. | 117 // The model that tracks galleries and extensions' permissions. |
117 MediaGalleriesPreferences* preferences_; | 118 MediaGalleriesPreferences* preferences_; |
118 | 119 |
119 // The view that's showing. | 120 // The view that's showing. |
120 scoped_ptr<MediaGalleriesDialog> dialog_; | 121 scoped_ptr<MediaGalleriesDialog> dialog_; |
121 | 122 |
122 scoped_refptr<ui::SelectFileDialog> select_folder_dialog_; | 123 scoped_refptr<ui::SelectFileDialog> select_folder_dialog_; |
123 | 124 |
124 DISALLOW_COPY_AND_ASSIGN(MediaGalleriesDialogController); | 125 DISALLOW_COPY_AND_ASSIGN(MediaGalleriesDialogController); |
125 }; | 126 }; |
126 | 127 |
127 } // namespace chrome | 128 } // namespace chrome |
128 | 129 |
129 #endif // CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_DIALOG_CONTROLLER_H_ | 130 #endif // CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_DIALOG_CONTROLLER_H_ |
OLD | NEW |