Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_WEB_CONTENTS_OBSERVER_H_ | |
| 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_WEB_CONTENTS_OBSERVER_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "content/public/browser/web_contents_observer.h" | |
| 10 | |
| 11 namespace content { | |
| 12 class NavigationHandle; | |
| 13 } | |
| 14 | |
| 15 namespace vr_shell { | |
| 16 | |
| 17 class UiInterface; | |
| 18 | |
| 19 class CONTENT_EXPORT VrWebContentsObserver | |
| 20 : public content::WebContentsObserver { | |
| 21 public: | |
| 22 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.
| |
| 23 UiInterface *ui_interface); | |
|
mthiesse
2016/10/27 21:21:07
nit: * on type
cjgrant
2016/10/28 14:16:59
Done.
| |
| 24 ~VrWebContentsObserver() override; | |
| 25 | |
| 26 void SetUiInterface(UiInterface *ui_interface); | |
|
mthiesse
2016/10/27 21:21:07
nit: * on type
cjgrant
2016/10/28 14:16:59
Done.
| |
| 27 | |
| 28 // WebContentsObserver implementation. | |
| 29 void DidStartLoading() override; | |
| 30 void DidStopLoading() override; | |
| 31 void DidStartNavigation( | |
| 32 content::NavigationHandle* navigation_handle) override; | |
| 33 | |
| 34 private: | |
| 35 // This class does not own the UI interface. | |
| 36 UiInterface* ui_interface_; | |
| 37 | |
| 38 DISALLOW_COPY_AND_ASSIGN(VrWebContentsObserver); | |
| 39 }; | |
| 40 | |
| 41 } // namespace vr_shell | |
| 42 | |
| 43 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_WEB_CONTENTS_OBSERVER_H_ | |
| OLD | NEW |