Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ |
| 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ |
| 7 | 7 |
| 8 namespace content { | 8 namespace content { |
| 9 | 9 |
| 10 class RenderFrameHost; | 10 class RenderFrameHost; |
| 11 | 11 |
| 12 // A delegate API used by Navigator to notify its embedder of navigation | 12 // A delegate API used by Navigator to notify its embedder of navigation |
| 13 // related events. | 13 // related events. |
| 14 class NavigatorDelegate { | 14 class NavigatorDelegate { |
| 15 // TODO(nasko): This class will be used to dispatch notifications to | 15 public: |
| 16 // WebContentsImpl, such as DidStartProvisionalLoad and | 16 virtual void DidStartProvisionalLoad( |
|
Charlie Reis
2013/11/21 21:59:32
This is where these methods should be documented.
nasko
2013/11/22 01:02:34
Done.
| |
| 17 // NotifyNavigationStateChanged. Longer term, most of the | 17 RenderFrameHostImpl* render_frame_host, |
| 18 // NavigationControllerDelegate methods will likely move here. | 18 int64 frame_id, |
| 19 int64 parent_frame_id, | |
| 20 bool is_main_frame, | |
| 21 const GURL& validated_url, | |
| 22 bool is_error_page, | |
| 23 bool is_iframe_srcdoc) = 0; | |
|
Charlie Reis
2013/11/21 21:59:32
These should have default implementations that do
nasko
2013/11/22 01:02:34
Done.
| |
| 24 | |
| 25 virtual void NotifyProvisionalChangeToMainFrameUrl( | |
| 26 RenderFrameHostImpl* render_frame_host, | |
| 27 const GURL& url) = 0; | |
| 28 | |
| 29 virtual void NotifyNavigationStateChanged(unsigned changed_flags) = 0; | |
| 30 | |
| 19 }; | 31 }; |
| 20 | 32 |
| 21 } // namspace content | 33 } // namspace content |
| 22 | 34 |
| 23 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ | 35 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ |
| OLD | NEW |