Chromium Code Reviews| Index: chrome/browser/android/vr_shell/vr_web_contents_observer.h |
| diff --git a/chrome/browser/android/vr_shell/vr_web_contents_observer.h b/chrome/browser/android/vr_shell/vr_web_contents_observer.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a1234d2d2a5960e1abbca9ede923bad4637e6fc7 |
| --- /dev/null |
| +++ b/chrome/browser/android/vr_shell/vr_web_contents_observer.h |
| @@ -0,0 +1,43 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_WEB_CONTENTS_OBSERVER_H_ |
| +#define CHROME_BROWSER_ANDROID_VR_SHELL_VR_WEB_CONTENTS_OBSERVER_H_ |
| + |
| +#include "base/macros.h" |
| +#include "content/public/browser/web_contents_observer.h" |
| + |
| +namespace content { |
| +class NavigationHandle; |
| +} |
| + |
| +namespace vr_shell { |
| + |
| +class UiInterface; |
| + |
| +class CONTENT_EXPORT VrWebContentsObserver |
| + : public content::WebContentsObserver { |
| + public: |
| + explicit VrWebContentsObserver(content::WebContents* web_contents, |
|
bshe
2016/10/27 20:27:44
explicit is not needed for ctor that has two param
cjgrant
2016/10/28 14:16:59
Done.
|
| + UiInterface *ui_interface); |
|
mthiesse
2016/10/27 21:21:07
nit: * on type
cjgrant
2016/10/28 14:16:59
Done.
|
| + ~VrWebContentsObserver() override; |
| + |
| + void SetUiInterface(UiInterface *ui_interface); |
|
mthiesse
2016/10/27 21:21:07
nit: * on type
cjgrant
2016/10/28 14:16:59
Done.
|
| + |
| + // WebContentsObserver implementation. |
| + void DidStartLoading() override; |
| + void DidStopLoading() override; |
| + void DidStartNavigation( |
| + content::NavigationHandle* navigation_handle) override; |
| + |
| + private: |
| + // This class does not own the UI interface. |
| + UiInterface* ui_interface_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(VrWebContentsObserver); |
| +}; |
| + |
| +} // namespace vr_shell |
| + |
| +#endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_WEB_CONTENTS_OBSERVER_H_ |