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

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

Issue 2040813004: Add BlimpContents[,Observer] and BlimpNavigationController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git merge origin/master Created 4 years, 6 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
« no previous file with comments | « blimp/client/core/BUILD.gn ('k') | blimp/client/core/blimp_contents_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/core/public/blimp_contents.h"
13 #include "url/gurl.h"
14
15 namespace blimp {
16 namespace client {
17
18 class BlimpContentsObserver;
19 class BlimpNavigationController;
20
21 // BlimpContentsImpl is the implementation of the core class in
22 // //blimp/client/core, the BlimpContents.
23 class BlimpContentsImpl : public BlimpContents,
24 public BlimpNavigationControllerDelegate {
25 public:
26 BlimpContentsImpl();
27 ~BlimpContentsImpl() override;
28
29 // BlimpContents implementation.
30 BlimpNavigationControllerImpl& GetNavigationController() override;
31 void AddObserver(BlimpContentsObserver* observer) override;
32 void RemoveObserver(BlimpContentsObserver* observer) override;
33
34 // BlimpNavigationControllerDelegate implementation.
35 void NotifyURLLoaded(const GURL& url) override;
36
37 private:
38 // Handles the back/forward list and loading URLs.
39 BlimpNavigationControllerImpl navigation_controller_;
40
41 // A list of all the observers of this BlimpContentsImpl.
42 base::ObserverList<BlimpContentsObserver> observers_;
43
44 DISALLOW_COPY_AND_ASSIGN(BlimpContentsImpl);
45 };
46
47 } // namespace client
48 } // namespace blimp
49
50 #endif // BLIMP_CLIENT_CORE_BLIMP_CONTENTS_IMPL_H_
OLDNEW
« no previous file with comments | « blimp/client/core/BUILD.gn ('k') | blimp/client/core/blimp_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698