OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_RENDERER_RENDER_VIEW_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 984 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
995 WebUIBindings* GetWebUIBindings(); | 995 WebUIBindings* GetWebUIBindings(); |
996 | 996 |
997 // Should only be called if this object wraps a PluginDocument. | 997 // Should only be called if this object wraps a PluginDocument. |
998 WebKit::WebPlugin* GetWebPluginFromPluginDocument(); | 998 WebKit::WebPlugin* GetWebPluginFromPluginDocument(); |
999 | 999 |
1000 // Returns true if the |params| navigation is to an entry that has been | 1000 // Returns true if the |params| navigation is to an entry that has been |
1001 // cropped due to a recent navigation the browser did not know about. | 1001 // cropped due to a recent navigation the browser did not know about. |
1002 bool IsBackForwardToStaleEntry(const ViewMsg_Navigate_Params& params, | 1002 bool IsBackForwardToStaleEntry(const ViewMsg_Navigate_Params& params, |
1003 bool is_reload); | 1003 bool is_reload); |
1004 | 1004 |
1005 // Returns false unless this is a top-level navigation that crosses origins. | |
1006 bool IsNonLocalTopLevelNavigation(const GURL& url, | |
1007 WebKit::WebFrame* frame, | |
1008 WebKit::WebNavigationType type); | |
1009 | |
1010 bool MaybeLoadAlternateErrorPage(WebKit::WebFrame* frame, | 1005 bool MaybeLoadAlternateErrorPage(WebKit::WebFrame* frame, |
1011 const WebKit::WebURLError& error, | 1006 const WebKit::WebURLError& error, |
1012 bool replace); | 1007 bool replace); |
1013 | 1008 |
1014 // Make this RenderView show an empty, unscriptable page. | 1009 // Make this RenderView show an empty, unscriptable page. |
1015 void NavigateToSwappedOutURL(); | 1010 void NavigateToSwappedOutURL(); |
1016 | 1011 |
1017 // If we initiated a navigation, this function will populate |document_state| | 1012 // If we initiated a navigation, this function will populate |document_state| |
1018 // with the navigation information saved in OnNavigate(). | 1013 // with the navigation information saved in OnNavigate(). |
1019 void PopulateDocumentStateFromPending(content::DocumentState* document_state); | 1014 void PopulateDocumentStateFromPending(content::DocumentState* document_state); |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1366 // bunch of stuff, you should probably create a helper class and put your | 1361 // bunch of stuff, you should probably create a helper class and put your |
1367 // data and methods on that to avoid bloating RenderView more. You can | 1362 // data and methods on that to avoid bloating RenderView more. You can |
1368 // use the Observer interface to filter IPC messages and receive frame change | 1363 // use the Observer interface to filter IPC messages and receive frame change |
1369 // notifications. | 1364 // notifications. |
1370 // --------------------------------------------------------------------------- | 1365 // --------------------------------------------------------------------------- |
1371 | 1366 |
1372 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1367 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1373 }; | 1368 }; |
1374 | 1369 |
1375 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1370 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |