Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(216)

Side by Side Diff: content/renderer/render_view_impl.h

Issue 10387074: Only disallow top-level navigations in platform apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Skip test Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 975 matching lines...) Expand 10 before | Expand all | Expand 10 after
986 WebUIBindings* GetWebUIBindings(); 986 WebUIBindings* GetWebUIBindings();
987 987
988 // Should only be called if this object wraps a PluginDocument. 988 // Should only be called if this object wraps a PluginDocument.
989 WebKit::WebPlugin* GetWebPluginFromPluginDocument(); 989 WebKit::WebPlugin* GetWebPluginFromPluginDocument();
990 990
991 // Returns true if the |params| navigation is to an entry that has been 991 // Returns true if the |params| navigation is to an entry that has been
992 // cropped due to a recent navigation the browser did not know about. 992 // cropped due to a recent navigation the browser did not know about.
993 bool IsBackForwardToStaleEntry(const ViewMsg_Navigate_Params& params, 993 bool IsBackForwardToStaleEntry(const ViewMsg_Navigate_Params& params,
994 bool is_reload); 994 bool is_reload);
995 995
996 // Returns false unless this is a top-level navigation that crosses origins.
997 bool IsNonLocalTopLevelNavigation(const GURL& url,
998 WebKit::WebFrame* frame,
999 WebKit::WebNavigationType type);
1000
1001 bool MaybeLoadAlternateErrorPage(WebKit::WebFrame* frame, 996 bool MaybeLoadAlternateErrorPage(WebKit::WebFrame* frame,
1002 const WebKit::WebURLError& error, 997 const WebKit::WebURLError& error,
1003 bool replace); 998 bool replace);
1004 999
1005 // Make this RenderView show an empty, unscriptable page. 1000 // Make this RenderView show an empty, unscriptable page.
1006 void NavigateToSwappedOutURL(); 1001 void NavigateToSwappedOutURL();
1007 1002
1008 // If we initiated a navigation, this function will populate |document_state| 1003 // If we initiated a navigation, this function will populate |document_state|
1009 // with the navigation information saved in OnNavigate(). 1004 // with the navigation information saved in OnNavigate().
1010 void PopulateDocumentStateFromPending(content::DocumentState* document_state); 1005 void PopulateDocumentStateFromPending(content::DocumentState* document_state);
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
1357 // bunch of stuff, you should probably create a helper class and put your 1352 // bunch of stuff, you should probably create a helper class and put your
1358 // data and methods on that to avoid bloating RenderView more. You can 1353 // data and methods on that to avoid bloating RenderView more. You can
1359 // use the Observer interface to filter IPC messages and receive frame change 1354 // use the Observer interface to filter IPC messages and receive frame change
1360 // notifications. 1355 // notifications.
1361 // --------------------------------------------------------------------------- 1356 // ---------------------------------------------------------------------------
1362 1357
1363 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1358 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1364 }; 1359 };
1365 1360
1366 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1361 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698