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

Side by Side Diff: blimp/client/core/blimp_client_context_impl.h

Issue 2191743002: Setup the delegate in Chrome, so we may put chrome java functions we need in blimp to the delegate … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix issue when moving around code. 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_BLIMP_CLIENT_CONTEXT_IMPL_H_ 5 #ifndef BLIMP_CLIENT_CORE_BLIMP_CLIENT_CONTEXT_IMPL_H_
6 #define BLIMP_CLIENT_CORE_BLIMP_CLIENT_CONTEXT_IMPL_H_ 6 #define BLIMP_CLIENT_CORE_BLIMP_CLIENT_CONTEXT_IMPL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/supports_user_data.h" 9 #include "base/supports_user_data.h"
10 #include "blimp/client/public/blimp_client_context.h" 10 #include "blimp/client/public/blimp_client_context.h"
(...skipping 11 matching lines...) Expand all
22 #endif // defined(OS_ANDROID) 22 #endif // defined(OS_ANDROID)
23 23
24 // BlimpClientContextImpl is the implementation of the main context-class for 24 // BlimpClientContextImpl is the implementation of the main context-class for
25 // the blimp client. 25 // the blimp client.
26 class BlimpClientContextImpl : public BlimpClientContext, 26 class BlimpClientContextImpl : public BlimpClientContext,
27 base::SupportsUserData { 27 base::SupportsUserData {
28 public: 28 public:
29 BlimpClientContextImpl(); 29 BlimpClientContextImpl();
30 ~BlimpClientContextImpl() override; 30 ~BlimpClientContextImpl() override;
31 31
32 // Get BlimpClientContextDelegate which contains embedder callbacks.
33 BlimpClientContextDelegate* GetDelegate();
34
32 #if defined(OS_ANDROID) 35 #if defined(OS_ANDROID)
33 BlimpClientContextImplAndroid* GetBlimpClientContextImplAndroid(); 36 BlimpClientContextImplAndroid* GetBlimpClientContextImplAndroid();
34 #endif // defined(OS_ANDROID) 37 #endif // defined(OS_ANDROID)
35 38
36 // BlimpClientContext implementation. 39 // BlimpClientContext implementation.
37 #if defined(OS_ANDROID) 40 #if defined(OS_ANDROID)
38 base::android::ScopedJavaLocalRef<jobject> GetJavaObject() override; 41 base::android::ScopedJavaLocalRef<jobject> GetJavaObject() override;
39 #endif // defined(OS_ANDROID) 42 #endif // defined(OS_ANDROID)
40 void SetDelegate(BlimpClientContextDelegate* delegate) override; 43 void SetDelegate(BlimpClientContextDelegate* delegate) override;
41 std::unique_ptr<BlimpContents> CreateBlimpContents() override; 44 std::unique_ptr<BlimpContents> CreateBlimpContents() override;
42 45
43 private: 46 private:
44 BlimpClientContextDelegate* delegate_; 47 BlimpClientContextDelegate* delegate_;
45 48
46 DISALLOW_COPY_AND_ASSIGN(BlimpClientContextImpl); 49 DISALLOW_COPY_AND_ASSIGN(BlimpClientContextImpl);
47 }; 50 };
48 51
49 } // namespace client 52 } // namespace client
50 } // namespace blimp 53 } // namespace blimp
51 54
52 #endif // BLIMP_CLIENT_CORE_BLIMP_CLIENT_CONTEXT_IMPL_H_ 55 #endif // BLIMP_CLIENT_CORE_BLIMP_CLIENT_CONTEXT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698