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_GALLERIES_MEDIA_GALLERIES_DIALOG_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_DIALOG_CONTROLLER_H_ |
6 #define CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_DIALOG_CONTROLLER_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERIES_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/callback.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
14 #include "chrome/browser/media_galleries/media_galleries_preferences.h" | 14 #include "chrome/browser/media_galleries/media_galleries_preferences.h" |
15 #include "chrome/browser/storage_monitor/removable_storage_observer.h" | 15 #include "chrome/browser/storage_monitor/removable_storage_observer.h" |
16 #include "ui/gfx/native_widget_types.h" | 16 #include "ui/gfx/native_widget_types.h" |
17 #include "ui/shell_dialogs/select_file_dialog.h" | 17 #include "ui/shell_dialogs/select_file_dialog.h" |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 class WebContents; | 20 class WebContents; |
21 } | 21 } |
22 | 22 |
23 namespace extensions { | 23 namespace extensions { |
24 class Extension; | 24 class Extension; |
25 } | 25 } |
26 | 26 |
27 namespace chrome { | |
28 | |
29 class MediaGalleriesDialogController; | 27 class MediaGalleriesDialogController; |
30 | 28 |
31 // The view. | 29 // The view. |
32 class MediaGalleriesDialog { | 30 class MediaGalleriesDialog { |
33 public: | 31 public: |
34 virtual ~MediaGalleriesDialog(); | 32 virtual ~MediaGalleriesDialog(); |
35 | 33 |
36 // Updates the entry for |gallery| with the checkbox set to the value in | 34 // Updates the entry for |gallery| with the checkbox set to the value in |
37 // |permitted|. |gallery| is owned by the controller and is guaranteed to | 35 // |permitted|. |gallery| is owned by the controller and is guaranteed to |
38 // live longer than the dialog. If the entry does not already exist, it | 36 // live longer than the dialog. If the entry does not already exist, it |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 MediaGalleriesPreferences* preferences_; | 181 MediaGalleriesPreferences* preferences_; |
184 | 182 |
185 // The view that's showing. | 183 // The view that's showing. |
186 scoped_ptr<MediaGalleriesDialog> dialog_; | 184 scoped_ptr<MediaGalleriesDialog> dialog_; |
187 | 185 |
188 scoped_refptr<ui::SelectFileDialog> select_folder_dialog_; | 186 scoped_refptr<ui::SelectFileDialog> select_folder_dialog_; |
189 | 187 |
190 DISALLOW_COPY_AND_ASSIGN(MediaGalleriesDialogController); | 188 DISALLOW_COPY_AND_ASSIGN(MediaGalleriesDialogController); |
191 }; | 189 }; |
192 | 190 |
193 } // namespace chrome | |
194 | |
195 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_DIALOG_CONTROLLER_H_ | 191 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_DIALOG_CONTROLLER_H_ |
OLD | NEW |