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

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

Issue 12502017: signin: pull basic SigninManager functionality into new SigninManagerBase class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: deal with new enterprise_platform_keys_private_api Created 7 years, 8 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) 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 #ifndef CHROME_BROWSER_SYNC_SYNC_GLOBAL_ERROR_H_ 5 #ifndef CHROME_BROWSER_SYNC_SYNC_GLOBAL_ERROR_H_
6 #define CHROME_BROWSER_SYNC_SYNC_GLOBAL_ERROR_H_ 6 #define CHROME_BROWSER_SYNC_SYNC_GLOBAL_ERROR_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "chrome/browser/sync/profile_sync_service_observer.h" 10 #include "chrome/browser/sync/profile_sync_service_observer.h"
11 #include "chrome/browser/ui/global_error/global_error.h" 11 #include "chrome/browser/ui/global_error/global_error.h"
12 12
13 class ProfileSyncService; 13 class ProfileSyncService;
14 class SigninManager; 14 class SigninManagerBase;
15 15
16 // Shows sync errors on the wrench menu using a bubble view and a 16 // Shows sync errors on the wrench menu using a bubble view and a
17 // menu item. 17 // menu item.
18 class SyncGlobalError : public GlobalError, 18 class SyncGlobalError : public GlobalError,
19 public ProfileSyncServiceObserver { 19 public ProfileSyncServiceObserver {
20 public: 20 public:
21 SyncGlobalError(ProfileSyncService* service, SigninManager* signin); 21 SyncGlobalError(ProfileSyncService* service, SigninManagerBase* signin);
22 virtual ~SyncGlobalError(); 22 virtual ~SyncGlobalError();
23 23
24 virtual bool HasMenuItem() OVERRIDE; 24 virtual bool HasMenuItem() OVERRIDE;
25 virtual int MenuItemCommandID() OVERRIDE; 25 virtual int MenuItemCommandID() OVERRIDE;
26 virtual string16 MenuItemLabel() OVERRIDE; 26 virtual string16 MenuItemLabel() OVERRIDE;
27 virtual void ExecuteMenuItem(Browser* browser) OVERRIDE; 27 virtual void ExecuteMenuItem(Browser* browser) OVERRIDE;
28 28
29 virtual bool HasBubbleView() OVERRIDE; 29 virtual bool HasBubbleView() OVERRIDE;
30 virtual string16 GetBubbleViewTitle() OVERRIDE; 30 virtual string16 GetBubbleViewTitle() OVERRIDE;
31 virtual std::vector<string16> GetBubbleViewMessages() OVERRIDE; 31 virtual std::vector<string16> GetBubbleViewMessages() OVERRIDE;
32 virtual string16 GetBubbleViewAcceptButtonLabel() OVERRIDE; 32 virtual string16 GetBubbleViewAcceptButtonLabel() OVERRIDE;
33 virtual string16 GetBubbleViewCancelButtonLabel() OVERRIDE; 33 virtual string16 GetBubbleViewCancelButtonLabel() OVERRIDE;
34 virtual void OnBubbleViewDidClose(Browser* browser) OVERRIDE; 34 virtual void OnBubbleViewDidClose(Browser* browser) OVERRIDE;
35 virtual void BubbleViewAcceptButtonPressed(Browser* browser) OVERRIDE; 35 virtual void BubbleViewAcceptButtonPressed(Browser* browser) OVERRIDE;
36 virtual void BubbleViewCancelButtonPressed(Browser* browser) OVERRIDE; 36 virtual void BubbleViewCancelButtonPressed(Browser* browser) OVERRIDE;
37 37
38 // ProfileSyncServiceObserver implementation. 38 // ProfileSyncServiceObserver implementation.
39 virtual void OnStateChanged() OVERRIDE; 39 virtual void OnStateChanged() OVERRIDE;
40 40
41 private: 41 private:
42 string16 bubble_accept_label_; 42 string16 bubble_accept_label_;
43 string16 bubble_message_; 43 string16 bubble_message_;
44 string16 menu_label_; 44 string16 menu_label_;
45 ProfileSyncService* service_; 45 ProfileSyncService* service_;
46 SigninManager* signin_; 46 SigninManagerBase* signin_;
47 47
48 DISALLOW_COPY_AND_ASSIGN(SyncGlobalError); 48 DISALLOW_COPY_AND_ASSIGN(SyncGlobalError);
49 }; 49 };
50 50
51 #endif // CHROME_BROWSER_SYNC_SYNC_GLOBAL_ERROR_H_ 51 #endif // CHROME_BROWSER_SYNC_SYNC_GLOBAL_ERROR_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_service_unittest.cc ('k') | chrome/browser/sync/sync_global_error.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698