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 #include "blimp/client/core/blimp_navigation_controller_impl.h" | 5 #include "blimp/client/core/contents/blimp_navigation_controller_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/threading/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" |
11 #include "blimp/client/core/blimp_navigation_controller_delegate.h" | 11 #include "blimp/client/core/contents/blimp_navigation_controller_delegate.h" |
12 | 12 |
13 namespace blimp { | 13 namespace blimp { |
14 namespace client { | 14 namespace client { |
15 | 15 |
16 BlimpNavigationControllerImpl::BlimpNavigationControllerImpl( | 16 BlimpNavigationControllerImpl::BlimpNavigationControllerImpl( |
17 BlimpNavigationControllerDelegate* delegate) | 17 BlimpNavigationControllerDelegate* delegate) |
18 : delegate_(delegate), weak_ptr_factory_(this) {} | 18 : delegate_(delegate), weak_ptr_factory_(this) {} |
19 | 19 |
20 BlimpNavigationControllerImpl::~BlimpNavigationControllerImpl() = default; | 20 BlimpNavigationControllerImpl::~BlimpNavigationControllerImpl() = default; |
21 | 21 |
(...skipping 12 matching lines...) Expand all Loading... |
34 const GURL& BlimpNavigationControllerImpl::GetURL() { | 34 const GURL& BlimpNavigationControllerImpl::GetURL() { |
35 return current_url_; | 35 return current_url_; |
36 } | 36 } |
37 | 37 |
38 void BlimpNavigationControllerImpl::NotifyDelegateURLLoaded(const GURL& url) { | 38 void BlimpNavigationControllerImpl::NotifyDelegateURLLoaded(const GURL& url) { |
39 delegate_->NotifyURLLoaded(url); | 39 delegate_->NotifyURLLoaded(url); |
40 } | 40 } |
41 | 41 |
42 } // namespace client | 42 } // namespace client |
43 } // namespace blimp | 43 } // namespace blimp |
OLD | NEW |