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

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

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
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 #include "blimp/client/core/blimp_contents_impl.h"
6
7 #include "base/memory/ptr_util.h"
8 #include "blimp/client/core/public/blimp_contents_observer.h"
9
10 namespace blimp {
11 namespace client {
12
13 BlimpContentsImpl::BlimpContentsImpl() : navigation_controller_(this) {}
14
15 BlimpContentsImpl::~BlimpContentsImpl() {}
16
17 BlimpNavigationControllerImpl& BlimpContentsImpl::GetNavigationController() {
18 return navigation_controller_;
19 }
20
21 void BlimpContentsImpl::AddObserver(BlimpContentsObserver* observer) {
22 observers_.AddObserver(observer);
23 }
24
25 void BlimpContentsImpl::RemoveObserver(BlimpContentsObserver* observer) {
26 observers_.RemoveObserver(observer);
27 }
28
29 void BlimpContentsImpl::NotifyURLLoaded(const GURL& url) {
30 FOR_EACH_OBSERVER(BlimpContentsObserver, observers_, OnURLUpdated(url));
31 }
32
33 } // namespace client
34 } // namespace blimp
OLDNEW
« no previous file with comments | « blimp/client/core/blimp_contents_impl.h ('k') | blimp/client/core/blimp_contents_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698