| 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 #include "base/memory/ptr_util.h" |  | 
|   6 #include "blimp/client/app/linux/blimp_client_context_delegate_linux.h" |  | 
|   7 #include "blimp/client/public/resources/blimp_strings.h" |  | 
|   8 #include "blimp/client/support/session/blimp_default_identity_provider.h" |  | 
|   9 #include "net/base/net_errors.h" |  | 
|  10  |  | 
|  11 namespace blimp { |  | 
|  12 namespace client { |  | 
|  13  |  | 
|  14 BlimpClientContextDelegateLinux::BlimpClientContextDelegateLinux() = default; |  | 
|  15  |  | 
|  16 BlimpClientContextDelegateLinux::~BlimpClientContextDelegateLinux() = default; |  | 
|  17  |  | 
|  18 void BlimpClientContextDelegateLinux::AttachBlimpContentsHelpers( |  | 
|  19     BlimpContents* blimp_contents) {} |  | 
|  20  |  | 
|  21 void BlimpClientContextDelegateLinux::OnAssignmentConnectionAttempted( |  | 
|  22     AssignmentRequestResult result, |  | 
|  23     const Assignment& assignment) { |  | 
|  24   if (result == ASSIGNMENT_REQUEST_RESULT_OK) |  | 
|  25     return; |  | 
|  26  |  | 
|  27   LOG(WARNING) << string::AssignmentResultErrorToString(result); |  | 
|  28 } |  | 
|  29  |  | 
|  30 std::unique_ptr<IdentityProvider> |  | 
|  31 BlimpClientContextDelegateLinux::CreateIdentityProvider() { |  | 
|  32   return base::MakeUnique<BlimpDefaultIdentityProvider>(); |  | 
|  33 } |  | 
|  34  |  | 
|  35 void BlimpClientContextDelegateLinux::OnAuthenticationError( |  | 
|  36     const GoogleServiceAuthError& error) { |  | 
|  37   LOG(WARNING) << "GoogleAuth error : " << error.ToString(); |  | 
|  38 } |  | 
|  39  |  | 
|  40 void BlimpClientContextDelegateLinux::OnConnected() { |  | 
|  41   VLOG(1) << "Connected."; |  | 
|  42 } |  | 
|  43  |  | 
|  44 void BlimpClientContextDelegateLinux::OnEngineDisconnected(int result) { |  | 
|  45   LOG(WARNING) << "Disconnected from the engine, reason: " |  | 
|  46                << string::EndConnectionMessageToString(result); |  | 
|  47 } |  | 
|  48  |  | 
|  49 void BlimpClientContextDelegateLinux::OnNetworkDisconnected(int result) { |  | 
|  50   LOG(WARNING) << "Disconnected, reason: " << net::ErrorToShortString(result); |  | 
|  51 } |  | 
|  52  |  | 
|  53 }  // namespace client |  | 
|  54 }  // namespace blimp |  | 
| OLD | NEW |