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 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 9 #include "content/public/browser/invalidate_type.h" | 9 #include "content/public/browser/invalidate_type.h" |
| 10 #include "content/public/browser/navigation_controller.h" | 10 #include "content/public/browser/navigation_controller.h" |
| 11 #include "ui/base/page_transition_types.h" | 11 #include "ui/base/page_transition_types.h" |
| 12 #include "ui/base/window_open_disposition.h" | 12 #include "ui/base/window_open_disposition.h" |
| 13 | 13 |
| 14 class GURL; | 14 class GURL; |
| 15 struct FrameHostMsg_DidCommitProvisionalLoad_Params; | 15 struct FrameHostMsg_DidCommitProvisionalLoad_Params; |
| 16 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; | 16 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; |
| 17 | 17 |
| 18 namespace content { | 18 namespace content { |
| 19 | 19 |
| 20 class BrowserContext; | |
| 20 class FrameTreeNode; | 21 class FrameTreeNode; |
| 21 class NavigationHandle; | 22 class NavigationHandle; |
| 22 class RenderFrameHostImpl; | 23 class RenderFrameHostImpl; |
| 23 struct LoadCommittedDetails; | 24 struct LoadCommittedDetails; |
| 24 struct OpenURLParams; | 25 struct OpenURLParams; |
| 25 | 26 |
| 26 // A delegate API used by Navigator to notify its embedder of navigation | 27 // A delegate API used by Navigator to notify its embedder of navigation |
| 27 // related events. | 28 // related events. |
| 28 class CONTENT_EXPORT NavigatorDelegate { | 29 class CONTENT_EXPORT NavigatorDelegate { |
| 29 public: | 30 public: |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 123 // navigation, or triggered by history.pushState/replaceState. | 124 // navigation, or triggered by history.pushState/replaceState. |
| 124 virtual void DidStartLoading(FrameTreeNode* frame_tree_node, | 125 virtual void DidStartLoading(FrameTreeNode* frame_tree_node, |
| 125 bool to_different_document) {} | 126 bool to_different_document) {} |
| 126 | 127 |
| 127 // A document stopped loading. This corresponds to Blink's notion of the | 128 // A document stopped loading. This corresponds to Blink's notion of the |
| 128 // throbber stopping. | 129 // throbber stopping. |
| 129 virtual void DidStopLoading() {} | 130 virtual void DidStopLoading() {} |
| 130 | 131 |
| 131 // The load progress was changed. | 132 // The load progress was changed. |
| 132 virtual void DidChangeLoadProgress() {} | 133 virtual void DidChangeLoadProgress() {} |
| 134 | |
| 135 // Helper method to access the BrowserContext. | |
| 136 virtual BrowserContext* GetBrowserContext() const; | |
|
michaeln
2015/10/01 01:42:15
This method seems out of place on this interface.
clamy
2015/10/01 12:41:27
Agreed. At the end of the day, NavigatorDelegate i
Fabrice (no longer in Chrome)
2015/10/01 18:29:55
This was the only way I found to access the Browse
clamy
2015/10/02 10:34:44
It'd be reasonable to add a pointer to the FTN in
Fabrice (no longer in Chrome)
2015/10/02 16:37:34
Done.
| |
| 133 }; | 137 }; |
| 134 | 138 |
| 135 } // namspace content | 139 } // namspace content |
| 136 | 140 |
| 137 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ | 141 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_ |
| OLD | NEW |