| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PRINTING_CLOUD_PRINT_CLOUD_PRINT_PROXY_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_PROXY_SERVICE_H_ |
| 6 #define CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_PROXY_SERVICE_H_ | 6 #define CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_PROXY_SERVICE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 virtual void DisableForUser(); | 46 virtual void DisableForUser(); |
| 47 | 47 |
| 48 // Query the service process for the status of the cloud print proxy and | 48 // Query the service process for the status of the cloud print proxy and |
| 49 // update the browser prefs. | 49 // update the browser prefs. |
| 50 void RefreshStatusFromService(); | 50 void RefreshStatusFromService(); |
| 51 | 51 |
| 52 bool ShowTokenExpiredNotification(); | 52 bool ShowTokenExpiredNotification(); |
| 53 std::string proxy_id() const { return proxy_id_; } | 53 std::string proxy_id() const { return proxy_id_; } |
| 54 | 54 |
| 55 // CloudPrintSetupHandler::Delegate implementation. | 55 // CloudPrintSetupHandler::Delegate implementation. |
| 56 virtual void OnCloudPrintSetupClosed(); | 56 virtual void OnCloudPrintSetupClosed() OVERRIDE; |
| 57 | 57 |
| 58 // content::NotificationObserver implementation. | 58 // content::NotificationObserver implementation. |
| 59 virtual void Observe(int type, | 59 virtual void Observe(int type, |
| 60 const content::NotificationSource& source, | 60 const content::NotificationSource& source, |
| 61 const content::NotificationDetails& details) OVERRIDE; | 61 const content::NotificationDetails& details) OVERRIDE; |
| 62 | 62 |
| 63 private: | 63 private: |
| 64 // NotificationDelegate implementation for the token expired notification. | 64 // NotificationDelegate implementation for the token expired notification. |
| 65 class TokenExpiredNotificationDelegate; | 65 class TokenExpiredNotificationDelegate; |
| 66 friend class TokenExpiredNotificationDelegate; | 66 friend class TokenExpiredNotificationDelegate; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 | 98 |
| 99 base::WeakPtrFactory<CloudPrintProxyService> weak_factory_; | 99 base::WeakPtrFactory<CloudPrintProxyService> weak_factory_; |
| 100 | 100 |
| 101 // For watching for connector enablement policy changes. | 101 // For watching for connector enablement policy changes. |
| 102 PrefChangeRegistrar pref_change_registrar_; | 102 PrefChangeRegistrar pref_change_registrar_; |
| 103 | 103 |
| 104 DISALLOW_COPY_AND_ASSIGN(CloudPrintProxyService); | 104 DISALLOW_COPY_AND_ASSIGN(CloudPrintProxyService); |
| 105 }; | 105 }; |
| 106 | 106 |
| 107 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_PROXY_SERVICE_H_ | 107 #endif // CHROME_BROWSER_PRINTING_CLOUD_PRINT_CLOUD_PRINT_PROXY_SERVICE_H_ |
| OLD | NEW |