| 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_contents_impl.h" | 5 #include "blimp/client/core/blimp_contents_impl.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "base/supports_user_data.h" | 8 #include "base/supports_user_data.h" |
| 9 #include "blimp/client/core/public/blimp_contents_observer.h" | 9 #include "blimp/client/core/public/blimp_contents_observer.h" |
| 10 | 10 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 } | 51 } |
| 52 | 52 |
| 53 void BlimpContentsImpl::AddObserver(BlimpContentsObserver* observer) { | 53 void BlimpContentsImpl::AddObserver(BlimpContentsObserver* observer) { |
| 54 observers_.AddObserver(observer); | 54 observers_.AddObserver(observer); |
| 55 } | 55 } |
| 56 | 56 |
| 57 void BlimpContentsImpl::RemoveObserver(BlimpContentsObserver* observer) { | 57 void BlimpContentsImpl::RemoveObserver(BlimpContentsObserver* observer) { |
| 58 observers_.RemoveObserver(observer); | 58 observers_.RemoveObserver(observer); |
| 59 } | 59 } |
| 60 | 60 |
| 61 void BlimpContentsImpl::NotifyURLLoaded(const GURL& url) { | 61 void BlimpContentsImpl::OnUrlChanged(const GURL& url) { |
| 62 FOR_EACH_OBSERVER(BlimpContentsObserver, observers_, OnURLUpdated(url)); | 62 FOR_EACH_OBSERVER(BlimpContentsObserver, observers_, OnURLUpdated(url)); |
| 63 } | 63 } |
| 64 | 64 |
| 65 void BlimpContentsImpl::OnFaviconChanged(const SkBitmap& favicon) { |
| 66 // TODO(shaktisahu): Propagate event to observers. |
| 67 } |
| 68 |
| 69 void BlimpContentsImpl::OnTitleChanged(const std::string& title) { |
| 70 // TODO(shaktisahu): Propagate event to observers. |
| 71 } |
| 72 |
| 73 void BlimpContentsImpl::OnLoadingChanged(bool loading) { |
| 74 // TODO(shaktisahu): Propagate event to observers. |
| 75 } |
| 76 |
| 77 void BlimpContentsImpl::OnPageLoadStatusUpdate(bool completed) { |
| 78 // TODO(shaktisahu): Propagate event to observers. |
| 79 } |
| 80 |
| 65 } // namespace client | 81 } // namespace client |
| 66 } // namespace blimp | 82 } // namespace blimp |
| OLD | NEW |