Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(243)

Side by Side Diff: blimp/client/core/session/identity_source.h

Issue 2391263005: Propagate error messages to UI for blimp. (Closed)
Patch Set: Minor polish. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 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 BLIMP_CLIENT_CORE_SESSION_IDENTITY_SOURCE_H_ 5 #ifndef BLIMP_CLIENT_CORE_SESSION_IDENTITY_SOURCE_H_
6 #define BLIMP_CLIENT_CORE_SESSION_IDENTITY_SOURCE_H_ 6 #define BLIMP_CLIENT_CORE_SESSION_IDENTITY_SOURCE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "blimp/client/public/blimp_client_context_delegate.h" 13 #include "blimp/client/public/blimp_client_context_delegate.h"
14 #include "google_apis/gaia/google_service_auth_error.h"
David Trainor- moved to gerrit 2016/10/07 06:58:53 Do you still need this?
xingliu 2016/10/10 17:09:50 Done.
14 #include "google_apis/gaia/identity_provider.h" 15 #include "google_apis/gaia/identity_provider.h"
15 #include "google_apis/gaia/oauth2_token_service.h" 16 #include "google_apis/gaia/oauth2_token_service.h"
16 17
17 namespace blimp { 18 namespace blimp {
18 namespace client { 19 namespace client {
19 20
20 // IdentitySource handles OAuth2 token request and forward user sign in state 21 // IdentitySource handles OAuth2 token request and forward user sign in state
21 // change to Blimp with ProfileIdentityProvider. 22 // change to Blimp with ProfileIdentityProvider.
22 class IdentitySource : public OAuth2TokenService::Consumer, 23 class IdentitySource : public OAuth2TokenService::Consumer,
23 public OAuth2TokenService::Observer, 24 public OAuth2TokenService::Observer,
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 79
79 BlimpClientContextDelegate* delegate_; 80 BlimpClientContextDelegate* delegate_;
80 81
81 DISALLOW_COPY_AND_ASSIGN(IdentitySource); 82 DISALLOW_COPY_AND_ASSIGN(IdentitySource);
82 }; 83 };
83 84
84 } // namespace client 85 } // namespace client
85 } // namespace blimp 86 } // namespace blimp
86 87
87 #endif // BLIMP_CLIENT_CORE_SESSION_IDENTITY_SOURCE_H_ 88 #endif // BLIMP_CLIENT_CORE_SESSION_IDENTITY_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698