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

Side by Side Diff: blimp/client/public/blimp_client_context.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 BLIMP_CLIENT_PUBLIC_BLIMP_CLIENT_CONTEXT_H_ 5 #ifndef BLIMP_CLIENT_PUBLIC_BLIMP_CLIENT_CONTEXT_H_
6 #define BLIMP_CLIENT_PUBLIC_BLIMP_CLIENT_CONTEXT_H_ 6 #define BLIMP_CLIENT_PUBLIC_BLIMP_CLIENT_CONTEXT_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 scoped_refptr<base::SingleThreadTaskRunner> io_thread_task_runner, 48 scoped_refptr<base::SingleThreadTaskRunner> io_thread_task_runner,
49 scoped_refptr<base::SingleThreadTaskRunner> file_thread_task_runner); 49 scoped_refptr<base::SingleThreadTaskRunner> file_thread_task_runner);
50 50
51 // The delegate provides all the required functionality from the embedder. 51 // The delegate provides all the required functionality from the embedder.
52 virtual void SetDelegate(BlimpClientContextDelegate* delegate) = 0; 52 virtual void SetDelegate(BlimpClientContextDelegate* delegate) = 0;
53 53
54 // Creates a new BlimpContents. 54 // Creates a new BlimpContents.
55 virtual std::unique_ptr<BlimpContents> CreateBlimpContents() = 0; 55 virtual std::unique_ptr<BlimpContents> CreateBlimpContents() = 0;
56 56
57 // Initiates the process for connecting to the engine. 57 // Initiates the process for connecting to the engine.
58 virtual void Connect(const std::string& client_auth_token) = 0; 58 virtual void Connect(const std::string& client_auth_token) = 0;
nyquist 2016/08/12 05:47:05 Should we remove this method now, and make it only
xingliu 2016/08/12 21:11:18 Done, rename the function, and pass it as base::Ca
59 59
60 // Start authentication flow.
nyquist 2016/08/12 05:47:05 ... "and connection to engine."?
xingliu 2016/08/12 21:11:18 Done.
61 virtual void Connect() = 0;
62
60 protected: 63 protected:
61 BlimpClientContext() = default; 64 BlimpClientContext() = default;
62 65
63 private: 66 private:
64 DISALLOW_COPY_AND_ASSIGN(BlimpClientContext); 67 DISALLOW_COPY_AND_ASSIGN(BlimpClientContext);
65 }; 68 };
66 69
67 } // namespace client 70 } // namespace client
68 } // namespace blimp 71 } // namespace blimp
69 72
70 #endif // BLIMP_CLIENT_PUBLIC_BLIMP_CLIENT_CONTEXT_H_ 73 #endif // BLIMP_CLIENT_PUBLIC_BLIMP_CLIENT_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698