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

Side by Side Diff: chrome/browser/android/blimp/chrome_blimp_client_context_delegate.h

Issue 2204223005: Blimp OAuth2 token retreival on application start up. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add some deps only for gn deps check script. Created 4 years, 4 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 CHROME_BROWSER_ANDROID_BLIMP_CHROME_BLIMP_CLIENT_CONTEXT_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_ANDROID_BLIMP_CHROME_BLIMP_CLIENT_CONTEXT_DELEGATE_H_
6 #define CHROME_BROWSER_ANDROID_BLIMP_CHROME_BLIMP_CLIENT_CONTEXT_DELEGATE_H_ 6 #define CHROME_BROWSER_ANDROID_BLIMP_CHROME_BLIMP_CLIENT_CONTEXT_DELEGATE_H_
7 7
8 #include <memory>
9
8 #include "base/macros.h" 10 #include "base/macros.h"
9 #include "blimp/client/public/blimp_client_context_delegate.h" 11 #include "blimp/client/public/blimp_client_context_delegate.h"
10 12
13 class IdentityProvider;
11 class Profile; 14 class Profile;
12 15
13 namespace blimp { 16 namespace blimp {
14 namespace client { 17 namespace client {
15 class BlimpClientContext; 18 class BlimpClientContext;
16 class BlimpContents; 19 class BlimpContents;
17 } // namespace client 20 } // namespace client
18 } // namespace blimp 21 } // namespace blimp
19 22
20 // The BlimpClientContextDelegate for //chrome which provides the necessary 23 // The BlimpClientContextDelegate for //chrome which provides the necessary
21 // functionality required to run Blimp. 24 // functionality required to run Blimp.
22 class ChromeBlimpClientContextDelegate 25 class ChromeBlimpClientContextDelegate
23 : public blimp::client::BlimpClientContextDelegate { 26 : public blimp::client::BlimpClientContextDelegate {
24 public: 27 public:
25 // Constructs the object and attaches it to the BlimpClientContext that is 28 // Constructs the object and attaches it to the BlimpClientContext that is
26 // used for the given profile. 29 // used for the given profile.
27 explicit ChromeBlimpClientContextDelegate(Profile* profile); 30 explicit ChromeBlimpClientContextDelegate(Profile* profile);
28 // Unattaches itself from the BlimpClientContext before going away. 31 // Unattaches itself from the BlimpClientContext before going away.
29 ~ChromeBlimpClientContextDelegate() override; 32 ~ChromeBlimpClientContextDelegate() override;
30 33
31 // BlimpClientContextDelegate implementation. 34 // BlimpClientContextDelegate implementation.
32 void AttachBlimpContentsHelpers( 35 void AttachBlimpContentsHelpers(
33 blimp::client::BlimpContents* blimp_contents) override; 36 blimp::client::BlimpContents* blimp_contents) override;
34 void OnAssignmentConnectionAttempted( 37 void OnAssignmentConnectionAttempted(
35 blimp::client::AssignmentRequestResult result, 38 blimp::client::AssignmentRequestResult result,
36 const blimp::client::Assignment& assignment) override; 39 const blimp::client::Assignment& assignment) override;
37 40
41 std::unique_ptr<IdentityProvider> CreateIdentityProvider() override;
nyquist 2016/08/12 05:47:05 No empty line before this or the next method, as t
xingliu 2016/08/12 17:58:28 Done.
42
43 void OnError(BlimpClientContextDelegate::BlimpError error) override;
44
38 private: 45 private:
39 // The profile this delegate is used for. 46 // The profile this delegate is used for.
40 Profile* profile_; 47 Profile* profile_;
41 48
42 // The BlimpClientContext this is the delegate for. 49 // The BlimpClientContext this is the delegate for.
43 blimp::client::BlimpClientContext* blimp_client_context_; 50 blimp::client::BlimpClientContext* blimp_client_context_;
44 51
45 DISALLOW_COPY_AND_ASSIGN(ChromeBlimpClientContextDelegate); 52 DISALLOW_COPY_AND_ASSIGN(ChromeBlimpClientContextDelegate);
46 }; 53 };
47 54
48 #endif // CHROME_BROWSER_ANDROID_BLIMP_CHROME_BLIMP_CLIENT_CONTEXT_DELEGATE_H_ 55 #endif // CHROME_BROWSER_ANDROID_BLIMP_CHROME_BLIMP_CLIENT_CONTEXT_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698