| OLD | NEW |
| 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 // This class gathers state related to a single user profile. | 5 // This class gathers state related to a single user profile. |
| 6 | 6 |
| 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_H_ | 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_H_ |
| 8 #define CHROME_BROWSER_PROFILES_PROFILE_H_ | 8 #define CHROME_BROWSER_PROFILES_PROFILE_H_ |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 } | 310 } |
| 311 | 311 |
| 312 // Returns whether the profile is new. A profile is new if the browser has | 312 // Returns whether the profile is new. A profile is new if the browser has |
| 313 // not been shut down since the profile was created. | 313 // not been shut down since the profile was created. |
| 314 bool IsNewProfile(); | 314 bool IsNewProfile(); |
| 315 | 315 |
| 316 // Checks whether sync is configurable by the user. Returns false if sync is | 316 // Checks whether sync is configurable by the user. Returns false if sync is |
| 317 // disallowed by the command line or controlled by configuration management. | 317 // disallowed by the command line or controlled by configuration management. |
| 318 bool IsSyncAllowed(); | 318 bool IsSyncAllowed(); |
| 319 | 319 |
| 320 // Checks whether sync has been enabled in local backend mode. |
| 321 bool IsLocalSyncEnabled(); |
| 322 |
| 320 // Send NOTIFICATION_PROFILE_DESTROYED for this Profile, if it has not | 323 // Send NOTIFICATION_PROFILE_DESTROYED for this Profile, if it has not |
| 321 // already been sent. It is necessary because most Profiles are destroyed by | 324 // already been sent. It is necessary because most Profiles are destroyed by |
| 322 // ProfileDestroyer, but in tests, some are not. | 325 // ProfileDestroyer, but in tests, some are not. |
| 323 void MaybeSendDestroyedNotification(); | 326 void MaybeSendDestroyedNotification(); |
| 324 | 327 |
| 325 // Creates an OffTheRecordProfile which points to this Profile. | 328 // Creates an OffTheRecordProfile which points to this Profile. |
| 326 Profile* CreateOffTheRecordProfile(); | 329 Profile* CreateOffTheRecordProfile(); |
| 327 | 330 |
| 328 // Convenience method to retrieve the default zoom level for the default | 331 // Convenience method to retrieve the default zoom level for the default |
| 329 // storage partition. | 332 // storage partition. |
| (...skipping 28 matching lines...) Expand all Loading... |
| 358 | 361 |
| 359 DISALLOW_COPY_AND_ASSIGN(Profile); | 362 DISALLOW_COPY_AND_ASSIGN(Profile); |
| 360 }; | 363 }; |
| 361 | 364 |
| 362 // The comparator for profile pointers as key in a map. | 365 // The comparator for profile pointers as key in a map. |
| 363 struct ProfileCompare { | 366 struct ProfileCompare { |
| 364 bool operator()(Profile* a, Profile* b) const; | 367 bool operator()(Profile* a, Profile* b) const; |
| 365 }; | 368 }; |
| 366 | 369 |
| 367 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 370 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
| OLD | NEW |