| Index: blimp/client/core/contents/blimp_contents_impl.h
|
| diff --git a/blimp/client/core/contents/blimp_contents_impl.h b/blimp/client/core/contents/blimp_contents_impl.h
|
| index 38c457b8ba7b2710d34ae0aaa124db04728020f0..1110ccde6761bcdddd12dd9fc5bad20774843d16 100644
|
| --- a/blimp/client/core/contents/blimp_contents_impl.h
|
| +++ b/blimp/client/core/contents/blimp_contents_impl.h
|
| @@ -29,7 +29,7 @@ class BlimpNavigationController;
|
| class BlimpContentsImpl : public BlimpContents,
|
| public BlimpNavigationControllerDelegate {
|
| public:
|
| - BlimpContentsImpl();
|
| + explicit BlimpContentsImpl(int id);
|
| ~BlimpContentsImpl() override;
|
|
|
| #if defined(OS_ANDROID)
|
| @@ -42,9 +42,14 @@ class BlimpContentsImpl : public BlimpContents,
|
| void AddObserver(BlimpContentsObserver* observer) override;
|
| void RemoveObserver(BlimpContentsObserver* observer) override;
|
|
|
| + // Check if some observer is in the observer list.
|
| + bool HasObserver(BlimpContentsObserver* observer);
|
| +
|
| // BlimpNavigationControllerDelegate implementation.
|
| void OnNavigationStateChanged() override;
|
|
|
| + int id() { return id_; }
|
| +
|
| private:
|
| // Handles the back/forward list and loading URLs.
|
| BlimpNavigationControllerImpl navigation_controller_;
|
| @@ -52,6 +57,10 @@ class BlimpContentsImpl : public BlimpContents,
|
| // A list of all the observers of this BlimpContentsImpl.
|
| base::ObserverList<BlimpContentsObserver> observers_;
|
|
|
| + // The id is assigned during contents creation. It is used by
|
| + // BlimpContentsManager to control the life time of the its observer.
|
| + int id_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(BlimpContentsImpl);
|
| };
|
|
|
|
|