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

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

Issue 2132163002: Add BlimpClientContext and factory with real and dummy implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move-blimp-client-core-public-to-blimp-client
Patch Set: git merge origin/master before CQ for good measure Created 4 years, 5 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_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
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_
OLDNEW
« no previous file with comments | « blimp/client/core/blimp_client_context_impl_unittest.cc ('k') | blimp/client/core/dummy_blimp_client_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698