OLD | NEW |
(Empty) | |
| 1 // Copyright 2013 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 CONTENT_BROWSER_RENDERER_HOST_NAVIGATOR_OBSERVER_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_NAVIGATOR_OBSERVER_H_ |
| 7 |
| 8 #include "ipc/ipc_listener.h" |
| 9 |
| 10 class GURL; |
| 11 |
| 12 namespace content { |
| 13 |
| 14 class RenderFrameHost; |
| 15 |
| 16 // An observer API which is a subset of WebContentsObserver but restricted |
| 17 // to navigation related events. |
| 18 class NavigatorObserver { //: public IPC::Listener { |
| 19 |
| 20 public: |
| 21 virtual void DidStartProvisionalLoad( |
| 22 int64 frame_id, |
| 23 int64 parent_frame_id, |
| 24 bool is_main_frame, |
| 25 const GURL& validated_url, |
| 26 bool is_error_page, |
| 27 bool is_iframe_srcdoc, |
| 28 RenderFrameHost* render_frame_host) {} |
| 29 |
| 30 virtual void ProvisionalChangeToMainFrameUrl( |
| 31 const GURL& url, |
| 32 RenderFrameHost* render_frame_host) {} |
| 33 |
| 34 virtual void NavigationStateChanged(unsigned changed_flags) {} |
| 35 |
| 36 private: |
| 37 |
| 38 }; |
| 39 |
| 40 } |
| 41 |
| 42 #endif // CONTENT_BROWSER_RENDERER_HOST_NAVIGATOR_OBSERVER_H_ |
OLD | NEW |