| 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 // PageNavigator defines an interface that can be used to express the user's | 5 // PageNavigator defines an interface that can be used to express the user's |
| 6 // intention to navigate to a particular URL. The implementing class should | 6 // intention to navigate to a particular URL. The implementing class should |
| 7 // perform the navigation. | 7 // perform the navigation. |
| 8 | 8 |
| 9 #ifndef CONTENT_PUBLIC_BROWSER_PAGE_NAVIGATOR_H_ | 9 #ifndef CONTENT_PUBLIC_BROWSER_PAGE_NAVIGATOR_H_ |
| 10 #define CONTENT_PUBLIC_BROWSER_PAGE_NAVIGATOR_H_ | 10 #define CONTENT_PUBLIC_BROWSER_PAGE_NAVIGATOR_H_ |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 | 75 |
| 76 // Routing id of the source RenderFrameHost. | 76 // Routing id of the source RenderFrameHost. |
| 77 int source_render_frame_id = MSG_ROUTING_NONE; | 77 int source_render_frame_id = MSG_ROUTING_NONE; |
| 78 | 78 |
| 79 // Process id of the source RenderFrameHost. | 79 // Process id of the source RenderFrameHost. |
| 80 int source_render_process_id = ChildProcessHost::kInvalidUniqueID; | 80 int source_render_process_id = ChildProcessHost::kInvalidUniqueID; |
| 81 | 81 |
| 82 // The disposition requested by the navigation source. | 82 // The disposition requested by the navigation source. |
| 83 WindowOpenDisposition disposition; | 83 WindowOpenDisposition disposition; |
| 84 | 84 |
| 85 // Controls creation of new web contents (in case |disposition| asks for a new |
| 86 // tab or window). If |force_new_process_for_new_contents| is true, then we |
| 87 // try to put the new contents in a new renderer, even if they are same-site |
| 88 // as |source_site_instance| (this is subject to renderer process limits). |
| 89 bool force_new_process_for_new_contents; |
| 90 |
| 85 // The transition type of navigation. | 91 // The transition type of navigation. |
| 86 ui::PageTransition transition; | 92 ui::PageTransition transition; |
| 87 | 93 |
| 88 // Whether this navigation is initiated by the renderer process. | 94 // Whether this navigation is initiated by the renderer process. |
| 89 bool is_renderer_initiated; | 95 bool is_renderer_initiated; |
| 90 | 96 |
| 91 // Indicates whether this navigation should replace the current | 97 // Indicates whether this navigation should replace the current |
| 92 // navigation entry. | 98 // navigation entry. |
| 93 bool should_replace_current_entry; | 99 bool should_replace_current_entry; |
| 94 | 100 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 110 // Opens a URL with the given disposition. The transition specifies how this | 116 // Opens a URL with the given disposition. The transition specifies how this |
| 111 // navigation should be recorded in the history system (for example, typed). | 117 // navigation should be recorded in the history system (for example, typed). |
| 112 // Returns the WebContents the URL is opened in, or nullptr if the URL wasn't | 118 // Returns the WebContents the URL is opened in, or nullptr if the URL wasn't |
| 113 // opened immediately. | 119 // opened immediately. |
| 114 virtual WebContents* OpenURL(const OpenURLParams& params) = 0; | 120 virtual WebContents* OpenURL(const OpenURLParams& params) = 0; |
| 115 }; | 121 }; |
| 116 | 122 |
| 117 } // namespace content | 123 } // namespace content |
| 118 | 124 |
| 119 #endif // CONTENT_PUBLIC_BROWSER_PAGE_NAVIGATOR_H_ | 125 #endif // CONTENT_PUBLIC_BROWSER_PAGE_NAVIGATOR_H_ |
| OLD | NEW |