| OLD | NEW | 
|---|
|  | (Empty) | 
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |  | 
| 2 // Use of this source code is governed by a BSD-style license that can be |  | 
| 3 // found in the LICENSE file. |  | 
| 4 |  | 
| 5 #ifndef BLIMP_CLIENT_APP_ANDROID_BLIMP_CLIENT_CONTEXT_DELEGATE_ANDROID_H_ |  | 
| 6 #define BLIMP_CLIENT_APP_ANDROID_BLIMP_CLIENT_CONTEXT_DELEGATE_ANDROID_H_ |  | 
| 7 |  | 
| 8 #include "blimp/client/public/blimp_client_context_delegate.h" |  | 
| 9 #include "google_apis/gaia/identity_provider.h" |  | 
| 10 |  | 
| 11 namespace blimp { |  | 
| 12 namespace client { |  | 
| 13 |  | 
| 14 class BlimpClientContext; |  | 
| 15 class BlimpContents; |  | 
| 16 |  | 
| 17 class BlimpClientContextDelegateAndroid : public BlimpClientContextDelegate { |  | 
| 18  public: |  | 
| 19   explicit BlimpClientContextDelegateAndroid( |  | 
| 20       BlimpClientContext* blimp_client_context); |  | 
| 21   ~BlimpClientContextDelegateAndroid() override; |  | 
| 22 |  | 
| 23   // BlimpClientContextDelegate implementation. |  | 
| 24   void AttachBlimpContentsHelpers(BlimpContents* blimp_contents) override; |  | 
| 25   void OnAssignmentConnectionAttempted(AssignmentRequestResult result, |  | 
| 26                                        const Assignment& assignment) override; |  | 
| 27   std::unique_ptr<IdentityProvider> CreateIdentityProvider() override; |  | 
| 28   void OnAuthenticationError(const GoogleServiceAuthError& error) override; |  | 
| 29   void OnConnected() override; |  | 
| 30   void OnEngineDisconnected(int result) override; |  | 
| 31   void OnNetworkDisconnected(int result) override; |  | 
| 32 |  | 
| 33  private: |  | 
| 34   void OnDisconnected(const base::string16& reason); |  | 
| 35   void ShowMessage(const base::string16& message); |  | 
| 36 |  | 
| 37   // The BlimpClientContext this is the delegate for. |  | 
| 38   BlimpClientContext* blimp_client_context_; |  | 
| 39 |  | 
| 40   DISALLOW_COPY_AND_ASSIGN(BlimpClientContextDelegateAndroid); |  | 
| 41 }; |  | 
| 42 |  | 
| 43 }  // namespace client |  | 
| 44 }  // namespace blimp |  | 
| 45 |  | 
| 46 #endif  // BLIMP_CLIENT_APP_ANDROID_BLIMP_CLIENT_CONTEXT_DELEGATE_ANDROID_H_ |  | 
| OLD | NEW | 
|---|