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

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

Issue 11570009: Split PrefService into PrefService, PrefServiceSimple and PrefServiceSyncable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head again, previous had unrelated broken win_rel test. Created 8 years 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 <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/file_path.h" 13 #include "base/file_path.h"
14 #include "base/string16.h" 14 #include "base/string16.h"
15 #include "chrome/browser/profiles/profile_keyed_service.h" 15 #include "chrome/browser/profiles/profile_keyed_service.h"
16 16
17 class PrefService; 17 class PrefServiceSyncable;
18 class Profile; 18 class Profile;
19 19
20 namespace base { 20 namespace base {
21 class DictionaryValue; 21 class DictionaryValue;
22 } 22 }
23 23
24 namespace extensions { 24 namespace extensions {
25 class Extension; 25 class Extension;
26 class ExtensionPrefs; 26 class ExtensionPrefs;
27 } 27 }
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 MediaGalleryPrefId pref_id, 108 MediaGalleryPrefId pref_id,
109 bool has_permission); 109 bool has_permission);
110 110
111 const MediaGalleriesPrefInfoMap& known_galleries() const { 111 const MediaGalleriesPrefInfoMap& known_galleries() const {
112 return known_galleries_; 112 return known_galleries_;
113 } 113 }
114 114
115 // ProfileKeyedService implementation: 115 // ProfileKeyedService implementation:
116 virtual void Shutdown() OVERRIDE; 116 virtual void Shutdown() OVERRIDE;
117 117
118 static void RegisterUserPrefs(PrefService* prefs); 118 static void RegisterUserPrefs(PrefServiceSyncable* prefs);
119 119
120 // Returns true if the media gallery preferences system has ever been used 120 // Returns true if the media gallery preferences system has ever been used
121 // for this profile. To be exact, it checks if a gallery has ever been added 121 // for this profile. To be exact, it checks if a gallery has ever been added
122 // (including defaults). 122 // (including defaults).
123 static bool APIHasBeenUsed(Profile* profile); 123 static bool APIHasBeenUsed(Profile* profile);
124 124
125 private: 125 private:
126 typedef std::map<std::string /*device id*/, MediaGalleryPrefIdSet> 126 typedef std::map<std::string /*device id*/, MediaGalleryPrefIdSet>
127 DeviceIdPrefIdsMap; 127 DeviceIdPrefIdsMap;
128 128
(...skipping 13 matching lines...) Expand all
142 DeviceIdPrefIdsMap device_map_; 142 DeviceIdPrefIdsMap device_map_;
143 143
144 extensions::ExtensionPrefs* GetExtensionPrefs() const; 144 extensions::ExtensionPrefs* GetExtensionPrefs() const;
145 145
146 DISALLOW_COPY_AND_ASSIGN(MediaGalleriesPreferences); 146 DISALLOW_COPY_AND_ASSIGN(MediaGalleriesPreferences);
147 }; 147 };
148 148
149 } // namespace chrome 149 } // namespace chrome
150 150
151 #endif // CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_PREFERENCES_H_ 151 #endif // CHROME_BROWSER_MEDIA_GALLERY_MEDIA_GALLERIES_PREFERENCES_H_
OLDNEW
« no previous file with comments | « chrome/browser/media/media_stream_devices_controller.cc ('k') | chrome/browser/media_gallery/media_galleries_preferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698