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

Side by Side Diff: chrome/common/persistent_pref_store.h

Issue 5915004: Introduce incognito preference settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed whitespaces in mac files Created 9 years, 11 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_COMMON_PERSISTENT_PREF_STORE_H_ 5 #ifndef CHROME_COMMON_PERSISTENT_PREF_STORE_H_
6 #define CHROME_COMMON_PERSISTENT_PREF_STORE_H_ 6 #define CHROME_COMMON_PERSISTENT_PREF_STORE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include <chrome/common/pref_store.h> 11 #include <chrome/common/pref_store.h>
12 12
13 // This interface is complementary to the PrefStore interface, declaring 13 // This interface is complementary to the PrefStore interface, declaring
14 // additional functionatliy that adds support for setting values and persisting 14 // additional functionality that adds support for setting values and persisting
15 // the data to some backing store. 15 // the data to some backing store.
16 class PersistentPrefStore : public PrefStore { 16 class PersistentPrefStore : public PrefStore {
17 public: 17 public:
18 virtual ~PersistentPrefStore() {} 18 virtual ~PersistentPrefStore() {}
19 19
20 // Unique integer code for each type of error so we can report them 20 // Unique integer code for each type of error so we can report them
21 // distinctly in a histogram. 21 // distinctly in a histogram.
22 // NOTE: Don't change the order here as it will change the server's meaning 22 // NOTE: Don't change the order here as it will change the server's meaning
23 // of the histogram. 23 // of the histogram.
24 enum PrefReadError { 24 enum PrefReadError {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 virtual PrefReadError ReadPrefs() = 0; 60 virtual PrefReadError ReadPrefs() = 0;
61 61
62 // Writes the preferences to disk immediately. 62 // Writes the preferences to disk immediately.
63 virtual bool WritePrefs() = 0; 63 virtual bool WritePrefs() = 0;
64 64
65 // Schedules an asynchronous write operation. 65 // Schedules an asynchronous write operation.
66 virtual void ScheduleWritePrefs() = 0; 66 virtual void ScheduleWritePrefs() = 0;
67 }; 67 };
68 68
69 #endif // CHROME_COMMON_PERSISTENT_PREF_STORE_H_ 69 #endif // CHROME_COMMON_PERSISTENT_PREF_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698