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 #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/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "chrome/browser/ui/global_error/global_error.h" | 10 #include "chrome/browser/ui/global_error/global_error.h" |
11 #include "components/keyed_service/core/keyed_service.h" | 11 #include "components/keyed_service/core/keyed_service.h" |
12 #include "components/sync_driver/sync_error_controller.h" | 12 #include "components/sync/driver/sync_error_controller.h" |
13 | 13 |
14 class GlobalErrorService; | 14 class GlobalErrorService; |
15 class LoginUIService; | 15 class LoginUIService; |
16 class ProfileSyncService; | 16 class ProfileSyncService; |
17 | 17 |
18 // Shows sync errors on the wrench menu using a bubble view and a menu item. | 18 // Shows sync errors on the wrench menu using a bubble view and a menu item. |
19 class SyncGlobalError : public GlobalErrorWithStandardBubble, | 19 class SyncGlobalError : public GlobalErrorWithStandardBubble, |
20 public SyncErrorController::Observer, | 20 public SyncErrorController::Observer, |
21 public KeyedService { | 21 public KeyedService { |
22 public: | 22 public: |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 // The error controller to query for error details. Owned by the | 58 // The error controller to query for error details. Owned by the |
59 // ProfileSyncService this SyncGlobalError depends on. | 59 // ProfileSyncService this SyncGlobalError depends on. |
60 SyncErrorController* error_controller_; | 60 SyncErrorController* error_controller_; |
61 | 61 |
62 const ProfileSyncService* sync_service_; | 62 const ProfileSyncService* sync_service_; |
63 | 63 |
64 DISALLOW_COPY_AND_ASSIGN(SyncGlobalError); | 64 DISALLOW_COPY_AND_ASSIGN(SyncGlobalError); |
65 }; | 65 }; |
66 | 66 |
67 #endif // CHROME_BROWSER_SYNC_SYNC_GLOBAL_ERROR_H_ | 67 #endif // CHROME_BROWSER_SYNC_SYNC_GLOBAL_ERROR_H_ |
OLD | NEW |