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_CONTENTS_BLIMP_CONTENTS_IMPL_H_ | 5 #ifndef BLIMP_CLIENT_CORE_CONTENTS_BLIMP_CONTENTS_IMPL_H_ |
6 #define BLIMP_CLIENT_CORE_CONTENTS_BLIMP_CONTENTS_IMPL_H_ | 6 #define BLIMP_CLIENT_CORE_CONTENTS_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 "blimp/client/core/contents/blimp_navigation_controller_delegate.h" | 10 #include "blimp/client/core/contents/blimp_navigation_controller_delegate.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 class BlimpContentsObserver; | 26 class BlimpContentsObserver; |
27 class BlimpNavigationController; | 27 class BlimpNavigationController; |
28 | 28 |
29 class BlimpContentsImpl : public BlimpContents, | 29 class BlimpContentsImpl : public BlimpContents, |
30 public BlimpNavigationControllerDelegate { | 30 public BlimpNavigationControllerDelegate { |
31 public: | 31 public: |
32 BlimpContentsImpl(); | 32 BlimpContentsImpl(); |
33 ~BlimpContentsImpl() override; | 33 ~BlimpContentsImpl() override; |
34 | 34 |
35 #if defined(OS_ANDROID) | 35 #if defined(OS_ANDROID) |
36 base::android::ScopedJavaLocalRef<jobject> GetJavaBlimpContentsImpl(); | 36 base::android::ScopedJavaLocalRef<jobject> GetJavaObject() override; |
37 BlimpContentsImplAndroid* GetBlimpContentsImplAndroid(); | 37 BlimpContentsImplAndroid* GetBlimpContentsImplAndroid(); |
38 #endif // defined(OS_ANDROID) | 38 #endif // defined(OS_ANDROID) |
39 | 39 |
40 // BlimpContents implementation. | 40 // BlimpContents implementation. |
41 BlimpNavigationControllerImpl& GetNavigationController() override; | 41 BlimpNavigationControllerImpl& GetNavigationController() override; |
42 void AddObserver(BlimpContentsObserver* observer) override; | 42 void AddObserver(BlimpContentsObserver* observer) override; |
43 void RemoveObserver(BlimpContentsObserver* observer) override; | 43 void RemoveObserver(BlimpContentsObserver* observer) override; |
44 | 44 |
45 // BlimpNavigationControllerDelegate implementation. | 45 // BlimpNavigationControllerDelegate implementation. |
46 void OnNavigationStateChanged() override; | 46 void OnNavigationStateChanged() override; |
47 | 47 |
48 private: | 48 private: |
49 // Handles the back/forward list and loading URLs. | 49 // Handles the back/forward list and loading URLs. |
50 BlimpNavigationControllerImpl navigation_controller_; | 50 BlimpNavigationControllerImpl navigation_controller_; |
51 | 51 |
52 // A list of all the observers of this BlimpContentsImpl. | 52 // A list of all the observers of this BlimpContentsImpl. |
53 base::ObserverList<BlimpContentsObserver> observers_; | 53 base::ObserverList<BlimpContentsObserver> observers_; |
54 | 54 |
55 DISALLOW_COPY_AND_ASSIGN(BlimpContentsImpl); | 55 DISALLOW_COPY_AND_ASSIGN(BlimpContentsImpl); |
56 }; | 56 }; |
57 | 57 |
58 } // namespace client | 58 } // namespace client |
59 } // namespace blimp | 59 } // namespace blimp |
60 | 60 |
61 #endif // BLIMP_CLIENT_CORE_CONTENTS_BLIMP_CONTENTS_IMPL_H_ | 61 #endif // BLIMP_CLIENT_CORE_CONTENTS_BLIMP_CONTENTS_IMPL_H_ |
OLD | NEW |