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

Side by Side Diff: chrome/browser/media_gallery/media_galleries_preferences.h

Issue 10824116: Store Media gallery permissions in extension prefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
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_GALLERY_MEDIA_GALLERIES_PREFERENCES_H_ 5 #ifndef CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_PREFERENCES_H_
6 #define CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_PREFERENCES_H_ 6 #define CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_PREFERENCES_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/file_path.h" 12 #include "base/file_path.h"
13 #include "base/string16.h" 13 #include "base/string16.h"
14 #include "chrome/browser/profiles/profile_keyed_service.h" 14 #include "chrome/browser/profiles/profile_keyed_service.h"
15 15
16 class PrefService;
17 class Profile;
18
16 namespace base { 19 namespace base {
17 class DictionaryValue; 20 class DictionaryValue;
18 } 21 }
19 22
20 class PrefService; 23 typedef uint64 MediaGalleryPrefId;
21 class Profile; 24
25 struct MediaGalleryPermission {
26 MediaGalleryPrefId pref_id;
Evan Stade 2012/07/31 20:29:47 nit: just 2 spaces of indent.
Evan Stade 2012/07/31 20:29:47 I think this would be more useful as a full-on Med
vandebo (ex-Chrome) 2012/08/01 01:01:10 This is used to return the permissions from the ex
27 bool has_permission;
28 };
22 29
23 struct MediaGallery { 30 struct MediaGallery {
24 MediaGallery(); 31 MediaGallery();
25 ~MediaGallery(); 32 ~MediaGallery();
26 33
27 // The ID that uniquely, persistently identifies the gallery. 34 // The ID that uniquely, persistently identifies the gallery.
28 uint64 id; 35 uint64 id;
29 36
30 // The directory where the gallery is located, relative to the base path 37 // The directory where the gallery is located, relative to the base path
31 // for the device. 38 // for the device.
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 Profile* profile_; 85 Profile* profile_;
79 86
80 // An in-memory cache of known galleries. 87 // An in-memory cache of known galleries.
81 // TODO(estade): either actually use this, or remove it. 88 // TODO(estade): either actually use this, or remove it.
82 MediaGalleries remembered_galleries_; 89 MediaGalleries remembered_galleries_;
83 90
84 DISALLOW_COPY_AND_ASSIGN(MediaGalleriesPreferences); 91 DISALLOW_COPY_AND_ASSIGN(MediaGalleriesPreferences);
85 }; 92 };
86 93
87 #endif // CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_PREFERENCES_H_ 94 #endif // CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_PREFERENCES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698