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

Side by Side Diff: chrome/browser/prefs/scoped_user_pref_update.h

Issue 10700155: Remove #pragma once from chrome/browser/{printing,safe_browsing,prefs,bookmarks,autocomplete} (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « chrome/browser/prefs/proxy_prefs.h ('k') | chrome/browser/prefs/session_startup_pref.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // A helper class that assists preferences in firing notifications when lists 5 // A helper class that assists preferences in firing notifications when lists
6 // or dictionaries are changed. 6 // or dictionaries are changed.
7 7
8 #ifndef CHROME_BROWSER_PREFS_SCOPED_USER_PREF_UPDATE_H_ 8 #ifndef CHROME_BROWSER_PREFS_SCOPED_USER_PREF_UPDATE_H_
9 #define CHROME_BROWSER_PREFS_SCOPED_USER_PREF_UPDATE_H_ 9 #define CHROME_BROWSER_PREFS_SCOPED_USER_PREF_UPDATE_H_
10 #pragma once
11 10
12 #include <string> 11 #include <string>
13 12
14 #include "base/basictypes.h" 13 #include "base/basictypes.h"
15 #include "base/threading/non_thread_safe.h" 14 #include "base/threading/non_thread_safe.h"
16 #include "base/values.h" 15 #include "base/values.h"
17 #include "chrome/browser/prefs/pref_service.h" 16 #include "chrome/browser/prefs/pref_service.h"
18 17
19 class PrefService; 18 class PrefService;
20 19
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 95
97 private: 96 private:
98 DISALLOW_COPY_AND_ASSIGN(ScopedUserPrefUpdate); 97 DISALLOW_COPY_AND_ASSIGN(ScopedUserPrefUpdate);
99 }; 98 };
100 99
101 typedef ScopedUserPrefUpdate<base::DictionaryValue, Value::TYPE_DICTIONARY> 100 typedef ScopedUserPrefUpdate<base::DictionaryValue, Value::TYPE_DICTIONARY>
102 DictionaryPrefUpdate; 101 DictionaryPrefUpdate;
103 typedef ScopedUserPrefUpdate<base::ListValue, Value::TYPE_LIST> ListPrefUpdate; 102 typedef ScopedUserPrefUpdate<base::ListValue, Value::TYPE_LIST> ListPrefUpdate;
104 103
105 #endif // CHROME_BROWSER_PREFS_SCOPED_USER_PREF_UPDATE_H_ 104 #endif // CHROME_BROWSER_PREFS_SCOPED_USER_PREF_UPDATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/prefs/proxy_prefs.h ('k') | chrome/browser/prefs/session_startup_pref.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698