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

Side by Side Diff: chrome/browser/sync/profile_sync_service_observer.h

Issue 10689154: Remove #pragma once from chrome/browser/sync (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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_PROFILE_SYNC_SERVICE_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_OBSERVER_H_
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_OBSERVER_H_ 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_OBSERVER_H_
7 #pragma once
8 7
9 // Various UI components such as the New Tab page can be driven by observing 8 // Various UI components such as the New Tab page can be driven by observing
10 // the ProfileSyncService through this interface. 9 // the ProfileSyncService through this interface.
11 class ProfileSyncServiceObserver { 10 class ProfileSyncServiceObserver {
12 public: 11 public:
13 // When one of the following events occurs, OnStateChanged() is called. 12 // When one of the following events occurs, OnStateChanged() is called.
14 // Observers should query the service to determine what happened. 13 // Observers should query the service to determine what happened.
15 // - We initialized successfully. 14 // - We initialized successfully.
16 // - There was an authentication error and the user needs to reauthenticate. 15 // - There was an authentication error and the user needs to reauthenticate.
17 // - The sync servers are unavailable at this time. 16 // - The sync servers are unavailable at this time.
18 // - Credentials are now in flight for authentication. 17 // - Credentials are now in flight for authentication.
19 virtual void OnStateChanged() = 0; 18 virtual void OnStateChanged() = 0;
20 protected: 19 protected:
21 virtual ~ProfileSyncServiceObserver() { } 20 virtual ~ProfileSyncServiceObserver() { }
22 }; 21 };
23 22
24 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_OBSERVER_H_ 23 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_service_mock.h ('k') | chrome/browser/sync/profile_sync_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698