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

Side by Side Diff: content/public/browser/navigation_handle.h

Issue 2494633004: Remove about:srcdoc url conversion. (Closed)
Patch Set: Addressed comments (@nasko). Created 4 years, 1 month 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_
6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ 6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 virtual bool IsParentMainFrame() = 0; 64 virtual bool IsParentMainFrame() = 0;
65 65
66 // Whether the navigation was initated by the renderer process. Examples of 66 // Whether the navigation was initated by the renderer process. Examples of
67 // renderer-initiated navigations include: 67 // renderer-initiated navigations include:
68 // * <a> link click 68 // * <a> link click
69 // * changing window.location.href 69 // * changing window.location.href
70 // * redirect via the <meta http-equiv="refresh"> tag 70 // * redirect via the <meta http-equiv="refresh"> tag
71 // * using window.history.pushState 71 // * using window.history.pushState
72 virtual bool IsRendererInitiated() = 0; 72 virtual bool IsRendererInitiated() = 0;
73 73
74 // Whether the navigation is for an iframe with srcdoc attribute.
75 virtual bool IsSrcdoc() = 0;
76
77 // Returns the FrameTreeNode ID for the frame in which the navigation is 74 // Returns the FrameTreeNode ID for the frame in which the navigation is
78 // performed. This ID is browser-global and uniquely identifies a frame that 75 // performed. This ID is browser-global and uniquely identifies a frame that
79 // hosts content. The identifier is fixed at the creation of the frame and 76 // hosts content. The identifier is fixed at the creation of the frame and
80 // stays constant for the lifetime of the frame. 77 // stays constant for the lifetime of the frame.
81 virtual int GetFrameTreeNodeId() = 0; 78 virtual int GetFrameTreeNodeId() = 0;
82 79
83 // Returns the FrameTreeNode ID for the parent frame. If this navigation is 80 // Returns the FrameTreeNode ID for the parent frame. If this navigation is
84 // taking place in the main frame, the value returned is -1. 81 // taking place in the main frame, the value returned is -1.
85 virtual int GetParentFrameTreeNodeId() = 0; 82 virtual int GetParentFrameTreeNodeId() = 0;
86 83
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 231
235 // The NavigationData that the embedder returned from 232 // The NavigationData that the embedder returned from
236 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will 233 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will
237 // be a clone of the NavigationData. 234 // be a clone of the NavigationData.
238 virtual NavigationData* GetNavigationData() = 0; 235 virtual NavigationData* GetNavigationData() = 0;
239 }; 236 };
240 237
241 } // namespace content 238 } // namespace content
242 239
243 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ 240 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698