| Index: blimp/client/core/contents/blimp_contents_impl.cc
|
| diff --git a/blimp/client/core/contents/blimp_contents_impl.cc b/blimp/client/core/contents/blimp_contents_impl.cc
|
| index bc4047e3de5111b6e2945861cef87012e3239f81..bfbbca356113bdd5f4e70743840be803cef4daf0 100644
|
| --- a/blimp/client/core/contents/blimp_contents_impl.cc
|
| +++ b/blimp/client/core/contents/blimp_contents_impl.cc
|
| @@ -22,10 +22,12 @@ const char kBlimpContentsImplAndroidKey[] = "blimp_contents_impl_android";
|
| #endif // OS_ANDROID
|
| }
|
|
|
| -BlimpContentsImpl::BlimpContentsImpl()
|
| - : navigation_controller_(this, nullptr) {}
|
| +BlimpContentsImpl::BlimpContentsImpl(int id)
|
| + : navigation_controller_(this, nullptr), id_(id) {}
|
|
|
| -BlimpContentsImpl::~BlimpContentsImpl() {}
|
| +BlimpContentsImpl::~BlimpContentsImpl() {
|
| + FOR_EACH_OBSERVER(BlimpContentsObserver, observers_, BlimpContentsDying());
|
| +}
|
|
|
| #if defined(OS_ANDROID)
|
|
|
| @@ -59,6 +61,10 @@ void BlimpContentsImpl::RemoveObserver(BlimpContentsObserver* observer) {
|
| observers_.RemoveObserver(observer);
|
| }
|
|
|
| +bool BlimpContentsImpl::HasObserver(BlimpContentsObserver* observer) {
|
| + return observers_.HasObserver(observer);
|
| +}
|
| +
|
| void BlimpContentsImpl::OnNavigationStateChanged() {
|
| FOR_EACH_OBSERVER(BlimpContentsObserver, observers_,
|
| OnNavigationStateChanged());
|
|
|