Chromium Code Reviews

Side by Side Diff: chrome/browser/sync/util/user_settings.h

Issue 193103: Build sync engine as part of the browser build (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
« no previous file with comments | « chrome/browser/sync/util/sync_types.h ('k') | chrome/browser/sync/util/user_settings.cc » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_SYNC_UTIL_USER_SETTINGS_H_ 5 #ifndef CHROME_BROWSER_SYNC_UTIL_USER_SETTINGS_H_
6 #define CHROME_BROWSER_SYNC_UTIL_USER_SETTINGS_H_ 6 #define CHROME_BROWSER_SYNC_UTIL_USER_SETTINGS_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 "build/build_config.h"
12 #include "chrome/browser/sync/util/pthread_helpers.h" 13 #include "chrome/browser/sync/util/pthread_helpers.h"
13 #include "chrome/browser/sync/util/signin.h" 14 #include "chrome/browser/sync/util/signin.h"
14 #include "chrome/browser/sync/util/sync_types.h" 15 #include "chrome/browser/sync/util/sync_types.h"
15 16
16 extern "C" struct sqlite3; 17 extern "C" struct sqlite3;
17 18
18 namespace browser_sync { 19 namespace browser_sync {
19 20
20 class URLFactory; 21 class URLFactory;
21 22
(...skipping 71 matching lines...)
93 mutable PThreadMutex mutex_; // protects email_ 94 mutable PThreadMutex mutex_; // protects email_
94 typedef PThreadScopedLock<PThreadMutex> ScopedLock; 95 typedef PThreadScopedLock<PThreadMutex> ScopedLock;
95 96
96 // We keep a single dbhandle. 97 // We keep a single dbhandle.
97 sqlite3* dbhandle_; 98 sqlite3* dbhandle_;
98 PThreadMutex dbhandle_mutex_; 99 PThreadMutex dbhandle_mutex_;
99 100
100 // TODO(sync): Use in-memory cache for service auth tokens on posix. 101 // TODO(sync): Use in-memory cache for service auth tokens on posix.
101 // Have someone competent in Windows switch it over to not use Sqlite in the 102 // Have someone competent in Windows switch it over to not use Sqlite in the
102 // future. 103 // future.
103 #ifndef OS_WINDOWS 104 #ifndef OS_WIN
104 typedef std::map<std::string, std::string> ServiceTokenMap; 105 typedef std::map<std::string, std::string> ServiceTokenMap;
105 ServiceTokenMap service_tokens_; 106 ServiceTokenMap service_tokens_;
106 #endif // OS_WINDOWS 107 #endif // OS_WIN
107 108
108 DISALLOW_COPY_AND_ASSIGN(UserSettings); 109 DISALLOW_COPY_AND_ASSIGN(UserSettings);
109 }; 110 };
110 111
111 } // namespace browser_sync 112 } // namespace browser_sync
112 113
113 #endif // CHROME_BROWSER_SYNC_UTIL_USER_SETTINGS_H_ 114 #endif // CHROME_BROWSER_SYNC_UTIL_USER_SETTINGS_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/util/sync_types.h ('k') | chrome/browser/sync/util/user_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine