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 #ifndef BLIMP_CLIENT_CORE_CONTEXT_DUMMY_BLIMP_CLIENT_CONTEXT_H_ | |
6 #define BLIMP_CLIENT_CORE_CONTEXT_DUMMY_BLIMP_CLIENT_CONTEXT_H_ | |
7 | |
8 #include "base/macros.h" | |
9 #include "blimp/client/public/blimp_client_context.h" | |
10 #include "blimp/client/public/contents/blimp_contents.h" | |
11 | |
12 namespace blimp { | |
13 namespace client { | |
14 | |
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. | |
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. | |
19 class DummyBlimpClientContext : public BlimpClientContext { | |
20 public: | |
21 DummyBlimpClientContext(); | |
22 ~DummyBlimpClientContext() override; | |
23 | |
24 // BlimpClientContext implementation. | |
25 void SetDelegate(BlimpClientContextDelegate* delegate) override; | |
26 std::unique_ptr<BlimpContents> CreateBlimpContents( | |
27 gfx::NativeWindow window) override; | |
28 void Connect() override; | |
29 void ConnectWithAssignment(const Assignment& assignment) override; | |
30 | |
31 private: | |
32 DISALLOW_COPY_AND_ASSIGN(DummyBlimpClientContext); | |
33 }; | |
34 | |
35 } // namespace client | |
36 } // namespace blimp | |
37 | |
38 #endif // BLIMP_CLIENT_CORE_CONTEXT_DUMMY_BLIMP_CLIENT_CONTEXT_H_ | |
OLD | NEW |