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

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: Windows compile tweaks 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 bool allowed; 65 bool allowed;
66 }; 66 };
67 67
68 typedef std::vector<GalleryPermission> GalleryPermissionsVector; 68 typedef std::vector<GalleryPermission> GalleryPermissionsVector;
69 69
70 // The constructor creates a dialog controller which owns itself. 70 // The constructor creates a dialog controller which owns itself.
71 MediaGalleriesDialogController(content::WebContents* web_contents, 71 MediaGalleriesDialogController(content::WebContents* web_contents,
72 const extensions::Extension& extension, 72 const extensions::Extension& extension,
73 const base::Closure& on_finish); 73 const base::Closure& on_finish);
74 74
75 // Bottom half of constructor -- called when the storage monitor
76 // is initialized and we have a preferences object hooked up.
77 void Init(MediaGalleriesPreferences* preferences);
Lei Zhang 2013/05/10 05:24:43 This can be private since nobody outside reference
Greg Billock 2013/05/10 16:20:27 Done.
78
75 // Called by the view to provide details for a particular gallery 79 // Called by the view to provide details for a particular gallery
76 // permission entry. 80 // permission entry.
77 static string16 GetGalleryDisplayName( 81 static string16 GetGalleryDisplayName(
78 const MediaGalleryPrefInfo& gallery); 82 const MediaGalleryPrefInfo& gallery);
79 static string16 GetGalleryDisplayNameNoAttachment( 83 static string16 GetGalleryDisplayNameNoAttachment(
80 const MediaGalleryPrefInfo& gallery); 84 const MediaGalleryPrefInfo& gallery);
81 static string16 GetGalleryTooltip(const MediaGalleryPrefInfo& gallery); 85 static string16 GetGalleryTooltip(const MediaGalleryPrefInfo& gallery);
82 static bool GetGalleryAttached(const MediaGalleryPrefInfo& gallery); 86 static bool GetGalleryAttached(const MediaGalleryPrefInfo& gallery);
83 static string16 GetGalleryAdditionalDetails( 87 static string16 GetGalleryAdditionalDetails(
84 const MediaGalleryPrefInfo& gallery); 88 const MediaGalleryPrefInfo& gallery);
(...skipping 105 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