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

Side by Side Diff: chrome/browser/speech/chrome_speech_recognition_preferences.h

Issue 18199003: Allow Chrome OS login profile to have different default pref values (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 5 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_SPEECH_CHROME_SPEECH_RECOGNITION_PREFERENCES_H_ 5 #ifndef CHROME_BROWSER_SPEECH_CHROME_SPEECH_RECOGNITION_PREFERENCES_H_
6 #define CHROME_BROWSER_SPEECH_CHROME_SPEECH_RECOGNITION_PREFERENCES_H_ 6 #define CHROME_BROWSER_SPEECH_CHROME_SPEECH_RECOGNITION_PREFERENCES_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 private: 66 private:
67 friend struct DefaultSingletonTraits<Factory>; 67 friend struct DefaultSingletonTraits<Factory>;
68 68
69 Factory(); 69 Factory();
70 virtual ~Factory(); 70 virtual ~Factory();
71 71
72 // BrowserContextKeyedServiceFactory methods: 72 // BrowserContextKeyedServiceFactory methods:
73 virtual BrowserContextKeyedService* BuildServiceInstanceFor( 73 virtual BrowserContextKeyedService* BuildServiceInstanceFor(
74 content::BrowserContext* profile) const OVERRIDE; 74 content::BrowserContext* profile) const OVERRIDE;
75 virtual void RegisterUserPrefs( 75 virtual void RegisterProfilePrefs(
76 user_prefs::PrefRegistrySyncable* registry) OVERRIDE; 76 user_prefs::PrefRegistrySyncable* registry) OVERRIDE;
77 virtual bool ServiceIsNULLWhileTesting() const OVERRIDE; 77 virtual bool ServiceIsNULLWhileTesting() const OVERRIDE;
78 virtual bool ServiceIsCreatedWithBrowserContext() const OVERRIDE; 78 virtual bool ServiceIsCreatedWithBrowserContext() const OVERRIDE;
79 79
80 DISALLOW_COPY_AND_ASSIGN(Factory); 80 DISALLOW_COPY_AND_ASSIGN(Factory);
81 }; 81 };
82 82
83 // This wrapper handles the binding between ChromeSpeechRecognitionPreferences 83 // This wrapper handles the binding between ChromeSpeechRecognitionPreferences
84 // instances (which can have a longer lifetime, since they are refcounted) and 84 // instances (which can have a longer lifetime, since they are refcounted) and
85 // BrowserContextKeyedService (which lifetime depends on the Profile service). 85 // BrowserContextKeyedService (which lifetime depends on the Profile service).
(...skipping 29 matching lines...) Expand all
115 scoped_ptr<base::ListValue> notifications_shown_; 115 scoped_ptr<base::ListValue> notifications_shown_;
116 116
117 // Lock used to ensure exclusive access to preference variables that are 117 // Lock used to ensure exclusive access to preference variables that are
118 // accessed by both threads (note: mutable is required to keep getters const). 118 // accessed by both threads (note: mutable is required to keep getters const).
119 mutable base::Lock preferences_lock_; 119 mutable base::Lock preferences_lock_;
120 120
121 DISALLOW_COPY_AND_ASSIGN(ChromeSpeechRecognitionPreferences); 121 DISALLOW_COPY_AND_ASSIGN(ChromeSpeechRecognitionPreferences);
122 }; 122 };
123 123
124 #endif // CHROME_BROWSER_SPEECH_CHROME_SPEECH_RECOGNITION_PREFERENCES_H_ 124 #endif // CHROME_BROWSER_SPEECH_CHROME_SPEECH_RECOGNITION_PREFERENCES_H_
OLDNEW
« no previous file with comments | « chrome/browser/signin/signin_manager_factory.cc ('k') | chrome/browser/speech/chrome_speech_recognition_preferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698