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

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

Issue 2494633004: Remove about:srcdoc url conversion. (Closed)
Patch Set: Rebase Created 4 years 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 #include <string> 9 #include <string>
10 10
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 virtual bool IsParentMainFrame() = 0; 66 virtual bool IsParentMainFrame() = 0;
67 67
68 // Whether the navigation was initated by the renderer process. Examples of 68 // Whether the navigation was initated by the renderer process. Examples of
69 // renderer-initiated navigations include: 69 // renderer-initiated navigations include:
70 // * <a> link click 70 // * <a> link click
71 // * changing window.location.href 71 // * changing window.location.href
72 // * redirect via the <meta http-equiv="refresh"> tag 72 // * redirect via the <meta http-equiv="refresh"> tag
73 // * using window.history.pushState 73 // * using window.history.pushState
74 virtual bool IsRendererInitiated() = 0; 74 virtual bool IsRendererInitiated() = 0;
75 75
76 // Whether the navigation is for an iframe with srcdoc attribute.
77 virtual bool IsSrcdoc() = 0;
78
79 // Returns the FrameTreeNode ID for the frame in which the navigation is 76 // Returns the FrameTreeNode ID for the frame in which the navigation is
80 // performed. This ID is browser-global and uniquely identifies a frame that 77 // performed. This ID is browser-global and uniquely identifies a frame that
81 // hosts content. The identifier is fixed at the creation of the frame and 78 // hosts content. The identifier is fixed at the creation of the frame and
82 // stays constant for the lifetime of the frame. 79 // stays constant for the lifetime of the frame.
83 virtual int GetFrameTreeNodeId() = 0; 80 virtual int GetFrameTreeNodeId() = 0;
84 81
85 // Returns the FrameTreeNode ID for the parent frame. If this navigation is 82 // Returns the FrameTreeNode ID for the parent frame. If this navigation is
86 // taking place in the main frame, the value returned is -1. 83 // taking place in the main frame, the value returned is -1.
87 virtual int GetParentFrameTreeNodeId() = 0; 84 virtual int GetParentFrameTreeNodeId() = 0;
88 85
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 245
249 // The NavigationData that the embedder returned from 246 // The NavigationData that the embedder returned from
250 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will 247 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will
251 // be a clone of the NavigationData. 248 // be a clone of the NavigationData.
252 virtual NavigationData* GetNavigationData() = 0; 249 virtual NavigationData* GetNavigationData() = 0;
253 }; 250 };
254 251
255 } // namespace content 252 } // namespace content
256 253
257 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ 254 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698