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

Side by Side Diff: blimp/client/core/dummy_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_CORE_DUMMY_BLIMP_CLIENT_CONTEXT_H_ 5 #ifndef BLIMP_CLIENT_CORE_DUMMY_BLIMP_CLIENT_CONTEXT_H_
6 #define BLIMP_CLIENT_CORE_DUMMY_BLIMP_CLIENT_CONTEXT_H_ 6 #define BLIMP_CLIENT_CORE_DUMMY_BLIMP_CLIENT_CONTEXT_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "blimp/client/public/blimp_client_context.h" 9 #include "blimp/client/public/blimp_client_context.h"
10 #include "blimp/client/public/contents/blimp_contents.h" 10 #include "blimp/client/public/contents/blimp_contents.h"
11 11
12 namespace blimp { 12 namespace blimp {
13 namespace client { 13 namespace client {
14 14
15 // A dummy implementation of the BlimpClientContext which is in use by 15 // A dummy implementation of the BlimpClientContext which is in use by
16 // embedders that do not set the GN argument |enable_blimp_client| to true. 16 // embedders that do not set the GN argument |enable_blimp_client| to true.
17 // It exists so that it is possible for an embedder to still have code depending 17 // It exists so that it is possible for an embedder to still have code depending
18 // on the public APIs of blimp, without in fact linking in all the core code. 18 // on the public APIs of blimp, without in fact linking in all the core code.
19 class DummyBlimpClientContext : public BlimpClientContext { 19 class DummyBlimpClientContext : public BlimpClientContext {
20 public: 20 public:
21 DummyBlimpClientContext(); 21 DummyBlimpClientContext();
22 ~DummyBlimpClientContext() override; 22 ~DummyBlimpClientContext() override;
23 23
24 // BlimpClientContext implementation. 24 // BlimpClientContext implementation.
25 void SetDelegate(BlimpClientContextDelegate* delegate) override; 25 void SetDelegate(BlimpClientContextDelegate* delegate) override;
26 std::unique_ptr<BlimpContents> CreateBlimpContents() override; 26 std::unique_ptr<BlimpContents> CreateBlimpContents() override;
27 void Connect(const std::string& client_auth_token) override; 27 void Connect(const std::string& client_auth_token) override;
28 void Connect() override;
28 29
29 private: 30 private:
30 DISALLOW_COPY_AND_ASSIGN(DummyBlimpClientContext); 31 DISALLOW_COPY_AND_ASSIGN(DummyBlimpClientContext);
31 }; 32 };
32 33
33 } // namespace client 34 } // namespace client
34 } // namespace blimp 35 } // namespace blimp
35 36
36 #endif // BLIMP_CLIENT_CORE_DUMMY_BLIMP_CLIENT_CONTEXT_H_ 37 #endif // BLIMP_CLIENT_CORE_DUMMY_BLIMP_CLIENT_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698