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_UI_WEBUI_OPTIONS2_MEDIA_GALLERY_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_MEDIA_GALLERY_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_MEDIA_GALLERY_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_MEDIA_GALLERY_HANDLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/prefs/pref_change_registrar.h" | 9 #include "chrome/browser/prefs/pref_change_registrar.h" |
10 #include "chrome/browser/ui/select_file_dialog.h" | 10 #include "chrome/browser/ui/select_file_dialog.h" |
11 #include "chrome/browser/ui/webui/options2/options_ui2.h" | 11 #include "chrome/browser/ui/webui/options2/options_ui.h" |
12 #include "content/public/browser/notification_observer.h" | 12 #include "content/public/browser/notification_observer.h" |
13 | 13 |
14 namespace options2 { | 14 namespace options2 { |
15 | 15 |
16 // Handles messages related to adding or removing media galleries. | 16 // Handles messages related to adding or removing media galleries. |
17 class MediaGalleryHandler : public OptionsPageUIHandler, | 17 class MediaGalleryHandler : public OptionsPageUIHandler, |
18 public SelectFileDialog::Listener { | 18 public SelectFileDialog::Listener { |
19 public: | 19 public: |
20 MediaGalleryHandler(); | 20 MediaGalleryHandler(); |
21 virtual ~MediaGalleryHandler(); | 21 virtual ~MediaGalleryHandler(); |
(...skipping 24 matching lines...) Expand all Loading... |
46 void OnGalleriesChanged(); | 46 void OnGalleriesChanged(); |
47 | 47 |
48 PrefChangeRegistrar pref_change_registrar_; | 48 PrefChangeRegistrar pref_change_registrar_; |
49 | 49 |
50 DISALLOW_COPY_AND_ASSIGN(MediaGalleryHandler); | 50 DISALLOW_COPY_AND_ASSIGN(MediaGalleryHandler); |
51 }; | 51 }; |
52 | 52 |
53 } // namespace options2 | 53 } // namespace options2 |
54 | 54 |
55 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_MEDIA_GALLERY_HANDLER_H_ | 55 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_MEDIA_GALLERY_HANDLER_H_ |
OLD | NEW |