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

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

Issue 2166563003: Split //blimp/client/core to relevant parts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move-assignment-source
Patch Set: 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
(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_BLIMP_CONTENTS_IMPL_H_
6 #define BLIMP_CLIENT_CORE_BLIMP_CONTENTS_IMPL_H_
7
8 #include "base/macros.h"
9 #include "base/observer_list.h"
10 #include "blimp/client/core/blimp_navigation_controller_delegate.h"
11 #include "blimp/client/core/blimp_navigation_controller_impl.h"
12 #include "blimp/client/public/blimp_contents.h"
13 #include "url/gurl.h"
14
15 #if defined(OS_ANDROID)
16 #include "base/android/scoped_java_ref.h"
17 #endif // defined(OS_ANDROID)
18
19 namespace blimp {
20 namespace client {
21
22 #if defined(OS_ANDROID)
23 class BlimpContentsImplAndroid;
24 #endif // defined(OS_ANDROID)
25
26 class BlimpContentsObserver;
27 class BlimpNavigationController;
28
29 // BlimpContentsImpl is the implementation of the core class in
30 // //blimp/client/core, the BlimpContents.
31 class BlimpContentsImpl : public BlimpContents,
32 public BlimpNavigationControllerDelegate {
33 public:
34 BlimpContentsImpl();
35 ~BlimpContentsImpl() override;
36
37 #if defined(OS_ANDROID)
38 base::android::ScopedJavaLocalRef<jobject> GetJavaBlimpContentsImpl();
39 BlimpContentsImplAndroid* GetBlimpContentsImplAndroid();
40 #endif // defined(OS_ANDROID)
41
42 // BlimpContents implementation.
43 BlimpNavigationControllerImpl& GetNavigationController() override;
44 void AddObserver(BlimpContentsObserver* observer) override;
45 void RemoveObserver(BlimpContentsObserver* observer) override;
46
47 // BlimpNavigationControllerDelegate implementation.
48 void NotifyURLLoaded(const GURL& url) override;
49
50 private:
51 // Handles the back/forward list and loading URLs.
52 BlimpNavigationControllerImpl navigation_controller_;
53
54 // A list of all the observers of this BlimpContentsImpl.
55 base::ObserverList<BlimpContentsObserver> observers_;
56
57 DISALLOW_COPY_AND_ASSIGN(BlimpContentsImpl);
58 };
59
60 } // namespace client
61 } // namespace blimp
62
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/blimp_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698