OLD | NEW |
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_CONTENTS_IMPL_H_ | 5 #ifndef BLIMP_CLIENT_CORE_BLIMP_CONTENTS_IMPL_H_ |
6 #define BLIMP_CLIENT_CORE_BLIMP_CONTENTS_IMPL_H_ | 6 #define BLIMP_CLIENT_CORE_BLIMP_CONTENTS_IMPL_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
10 #include "base/supports_user_data.h" | |
11 #include "blimp/client/core/blimp_navigation_controller_delegate.h" | 10 #include "blimp/client/core/blimp_navigation_controller_delegate.h" |
12 #include "blimp/client/core/blimp_navigation_controller_impl.h" | 11 #include "blimp/client/core/blimp_navigation_controller_impl.h" |
13 #include "blimp/client/public/blimp_contents.h" | 12 #include "blimp/client/public/blimp_contents.h" |
14 #include "url/gurl.h" | 13 #include "url/gurl.h" |
15 | 14 |
16 #if defined(OS_ANDROID) | 15 #if defined(OS_ANDROID) |
17 #include "base/android/jni_android.h" | 16 #include "base/android/scoped_java_ref.h" |
18 #endif // defined(OS_ANDROID) | 17 #endif // defined(OS_ANDROID) |
19 | 18 |
20 namespace blimp { | 19 namespace blimp { |
21 namespace client { | 20 namespace client { |
22 | 21 |
23 #if defined(OS_ANDROID) | 22 #if defined(OS_ANDROID) |
24 class BlimpContentsImplAndroid; | 23 class BlimpContentsImplAndroid; |
25 #endif // defined(OS_ANDROID) | 24 #endif // defined(OS_ANDROID) |
26 | 25 |
27 class BlimpContentsObserver; | 26 class BlimpContentsObserver; |
28 class BlimpNavigationController; | 27 class BlimpNavigationController; |
29 | 28 |
30 // BlimpContentsImpl is the implementation of the core class in | 29 // BlimpContentsImpl is the implementation of the core class in |
31 // //blimp/client/core, the BlimpContents. | 30 // //blimp/client/core, the BlimpContents. |
32 class BlimpContentsImpl : public BlimpContents, | 31 class BlimpContentsImpl : public BlimpContents, |
33 public BlimpNavigationControllerDelegate, | 32 public BlimpNavigationControllerDelegate { |
34 base::SupportsUserData { | |
35 public: | 33 public: |
36 BlimpContentsImpl(); | 34 BlimpContentsImpl(); |
37 ~BlimpContentsImpl() override; | 35 ~BlimpContentsImpl() override; |
38 | 36 |
39 #if defined(OS_ANDROID) | 37 #if defined(OS_ANDROID) |
40 base::android::ScopedJavaLocalRef<jobject> GetJavaBlimpContentsImpl(); | 38 base::android::ScopedJavaLocalRef<jobject> GetJavaBlimpContentsImpl(); |
41 BlimpContentsImplAndroid* GetBlimpContentsImplAndroid(); | 39 BlimpContentsImplAndroid* GetBlimpContentsImplAndroid(); |
42 #endif // defined(OS_ANDROID) | 40 #endif // defined(OS_ANDROID) |
43 | 41 |
44 // BlimpContents implementation. | 42 // BlimpContents implementation. |
(...skipping 11 matching lines...) Expand all Loading... |
56 // A list of all the observers of this BlimpContentsImpl. | 54 // A list of all the observers of this BlimpContentsImpl. |
57 base::ObserverList<BlimpContentsObserver> observers_; | 55 base::ObserverList<BlimpContentsObserver> observers_; |
58 | 56 |
59 DISALLOW_COPY_AND_ASSIGN(BlimpContentsImpl); | 57 DISALLOW_COPY_AND_ASSIGN(BlimpContentsImpl); |
60 }; | 58 }; |
61 | 59 |
62 } // namespace client | 60 } // namespace client |
63 } // namespace blimp | 61 } // namespace blimp |
64 | 62 |
65 #endif // BLIMP_CLIENT_CORE_BLIMP_CONTENTS_IMPL_H_ | 63 #endif // BLIMP_CLIENT_CORE_BLIMP_CONTENTS_IMPL_H_ |
OLD | NEW |