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

Side by Side Diff: chrome/browser/media_galleries/media_galleries_dialog_controller.h

Issue 14556015: [Media Galleries] Lazily initialize the storage monitor. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 7 years, 7 months 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
OLDNEW
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
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // For use with tests. 118 // For use with tests.
119 MediaGalleriesDialogController(); 119 MediaGalleriesDialogController();
120 120
121 virtual ~MediaGalleriesDialogController(); 121 virtual ~MediaGalleriesDialogController();
122 122
123 private: 123 private:
124 // This type keeps track of media galleries already known to the prefs system. 124 // This type keeps track of media galleries already known to the prefs system.
125 typedef std::map<MediaGalleryPrefId, GalleryPermission> 125 typedef std::map<MediaGalleryPrefId, GalleryPermission>
126 KnownGalleryPermissions; 126 KnownGalleryPermissions;
127 127
128 // Bottom half of constructor -- called when the storage monitor
129 // is initialized and we have a preferences object hooked up.
130 void Init(MediaGalleriesPreferences* preferences);
vandebo (ex-Chrome) 2013/05/16 18:56:27 Should this be called OnPreferences() ?
Greg Billock 2013/05/16 23:27:55 Done.
131
128 // SelectFileDialog::Listener implementation: 132 // SelectFileDialog::Listener implementation:
129 virtual void FileSelected(const base::FilePath& path, 133 virtual void FileSelected(const base::FilePath& path,
130 int index, 134 int index,
131 void* params) OVERRIDE; 135 void* params) OVERRIDE;
132 136
133 // RemovableStorageObserver implementation. 137 // RemovableStorageObserver implementation.
134 // Used to keep dialog in sync with removable device status. 138 // Used to keep dialog in sync with removable device status.
135 virtual void OnRemovableStorageAttached(const StorageInfo& info) OVERRIDE; 139 virtual void OnRemovableStorageAttached(const StorageInfo& info) OVERRIDE;
136 virtual void OnRemovableStorageDetached(const StorageInfo& info) OVERRIDE; 140 virtual void OnRemovableStorageDetached(const StorageInfo& info) OVERRIDE;
137 141
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 scoped_ptr<MediaGalleriesDialog> dialog_; 194 scoped_ptr<MediaGalleriesDialog> dialog_;
191 195
192 scoped_refptr<ui::SelectFileDialog> select_folder_dialog_; 196 scoped_refptr<ui::SelectFileDialog> select_folder_dialog_;
193 197
194 DISALLOW_COPY_AND_ASSIGN(MediaGalleriesDialogController); 198 DISALLOW_COPY_AND_ASSIGN(MediaGalleriesDialogController);
195 }; 199 };
196 200
197 } // namespace chrome 201 } // namespace chrome
198 202
199 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_DIALOG_CONTROLLER_H_ 203 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERIES_DIALOG_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698