OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_INVALIDATION_IMPL_GCM_INVALIDATION_BRIDGE_H_ | 5 #ifndef COMPONENTS_INVALIDATION_IMPL_GCM_INVALIDATION_BRIDGE_H_ |
6 #define COMPONENTS_INVALIDATION_IMPL_GCM_INVALIDATION_BRIDGE_H_ | 6 #define COMPONENTS_INVALIDATION_IMPL_GCM_INVALIDATION_BRIDGE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 // OAuth2TokenService::Consumer implementation. | 49 // OAuth2TokenService::Consumer implementation. |
50 void OnGetTokenSuccess(const OAuth2TokenService::Request* request, | 50 void OnGetTokenSuccess(const OAuth2TokenService::Request* request, |
51 const std::string& access_token, | 51 const std::string& access_token, |
52 const base::Time& expiration_time) override; | 52 const base::Time& expiration_time) override; |
53 void OnGetTokenFailure(const OAuth2TokenService::Request* request, | 53 void OnGetTokenFailure(const OAuth2TokenService::Request* request, |
54 const GoogleServiceAuthError& error) override; | 54 const GoogleServiceAuthError& error) override; |
55 | 55 |
56 // gcm::GCMAppHandler implementation. | 56 // gcm::GCMAppHandler implementation. |
57 void ShutdownHandler() override; | 57 void ShutdownHandler() override; |
| 58 void OnStoreReset() override; |
58 void OnMessage(const std::string& app_id, | 59 void OnMessage(const std::string& app_id, |
59 const gcm::IncomingMessage& message) override; | 60 const gcm::IncomingMessage& message) override; |
60 void OnMessagesDeleted(const std::string& app_id) override; | 61 void OnMessagesDeleted(const std::string& app_id) override; |
61 void OnSendError( | 62 void OnSendError( |
62 const std::string& app_id, | 63 const std::string& app_id, |
63 const gcm::GCMClient::SendErrorDetails& send_error_details) override; | 64 const gcm::GCMClient::SendErrorDetails& send_error_details) override; |
64 void OnSendAcknowledged(const std::string& app_id, | 65 void OnSendAcknowledged(const std::string& app_id, |
65 const std::string& message_id) override; | 66 const std::string& message_id) override; |
66 | 67 |
67 // gcm::GCMConnectionObserver implementation. | 68 // gcm::GCMConnectionObserver implementation. |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 bool subscribed_for_incoming_messages_; | 108 bool subscribed_for_incoming_messages_; |
108 | 109 |
109 base::WeakPtrFactory<GCMInvalidationBridge> weak_factory_; | 110 base::WeakPtrFactory<GCMInvalidationBridge> weak_factory_; |
110 | 111 |
111 DISALLOW_COPY_AND_ASSIGN(GCMInvalidationBridge); | 112 DISALLOW_COPY_AND_ASSIGN(GCMInvalidationBridge); |
112 }; | 113 }; |
113 | 114 |
114 } // namespace invalidation | 115 } // namespace invalidation |
115 | 116 |
116 #endif // COMPONENTS_INVALIDATION_IMPL_GCM_INVALIDATION_BRIDGE_H_ | 117 #endif // COMPONENTS_INVALIDATION_IMPL_GCM_INVALIDATION_BRIDGE_H_ |
OLD | NEW |