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

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

Issue 2541063002: Revert of Remove about:srcdoc url conversion. (Closed)
Patch Set: 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
76 // Returns the FrameTreeNode ID for the frame in which the navigation is 79 // Returns the FrameTreeNode ID for the frame in which the navigation is
77 // performed. This ID is browser-global and uniquely identifies a frame that 80 // performed. This ID is browser-global and uniquely identifies a frame that
78 // hosts content. The identifier is fixed at the creation of the frame and 81 // hosts content. The identifier is fixed at the creation of the frame and
79 // stays constant for the lifetime of the frame. 82 // stays constant for the lifetime of the frame.
80 virtual int GetFrameTreeNodeId() = 0; 83 virtual int GetFrameTreeNodeId() = 0;
81 84
82 // Returns the FrameTreeNode ID for the parent frame. If this navigation is 85 // Returns the FrameTreeNode ID for the parent frame. If this navigation is
83 // taking place in the main frame, the value returned is -1. 86 // taking place in the main frame, the value returned is -1.
84 virtual int GetParentFrameTreeNodeId() = 0; 87 virtual int GetParentFrameTreeNodeId() = 0;
85 88
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 248
246 // The NavigationData that the embedder returned from 249 // The NavigationData that the embedder returned from
247 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will 250 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will
248 // be a clone of the NavigationData. 251 // be a clone of the NavigationData.
249 virtual NavigationData* GetNavigationData() = 0; 252 virtual NavigationData* GetNavigationData() = 0;
250 }; 253 };
251 254
252 } // namespace content 255 } // namespace content
253 256
254 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ 257 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698