OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_BASE_H_ | 5 #ifndef COMPONENTS_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_BASE_H_ |
6 #define COMPONENTS_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_BASE_H_ | 6 #define COMPONENTS_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_BASE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 content::RenderFrameHost* GetRenderFrameHost(); | 154 content::RenderFrameHost* GetRenderFrameHost(); |
155 | 155 |
156 bool IsCustomItemChecked(int id) const; | 156 bool IsCustomItemChecked(int id) const; |
157 bool IsCustomItemEnabled(int id) const; | 157 bool IsCustomItemEnabled(int id) const; |
158 | 158 |
159 // Opens the specified URL string in a new tab. | 159 // Opens the specified URL string in a new tab. |
160 void OpenURL(const GURL& url, const GURL& referrer, | 160 void OpenURL(const GURL& url, const GURL& referrer, |
161 WindowOpenDisposition disposition, | 161 WindowOpenDisposition disposition, |
162 ui::PageTransition transition); | 162 ui::PageTransition transition); |
163 | 163 |
| 164 // Opens the specified URL string in a new tab with the extra headers. |
| 165 void OpenURLWithExtraHeaders(const GURL& url, |
| 166 const GURL& referrer, |
| 167 WindowOpenDisposition disposition, |
| 168 ui::PageTransition transition, |
| 169 const std::string& extra_headers); |
| 170 |
164 content::ContextMenuParams params_; | 171 content::ContextMenuParams params_; |
165 content::WebContents* source_web_contents_; | 172 content::WebContents* source_web_contents_; |
166 // In the case of a MimeHandlerView this will point to the WebContents that | 173 // In the case of a MimeHandlerView this will point to the WebContents that |
167 // embeds the MimeHandlerViewGuest. Otherwise this will be the same as | 174 // embeds the MimeHandlerViewGuest. Otherwise this will be the same as |
168 // source_web_contents_. | 175 // source_web_contents_. |
169 content::WebContents* embedder_web_contents_; | 176 content::WebContents* embedder_web_contents_; |
170 content::BrowserContext* browser_context_; | 177 content::BrowserContext* browser_context_; |
171 | 178 |
172 ui::SimpleMenuModel menu_model_; | 179 ui::SimpleMenuModel menu_model_; |
173 | 180 |
(...skipping 14 matching lines...) Expand all Loading... |
188 | 195 |
189 // The RenderFrameHost's IDs. | 196 // The RenderFrameHost's IDs. |
190 int render_process_id_; | 197 int render_process_id_; |
191 | 198 |
192 scoped_ptr<ToolkitDelegate> toolkit_delegate_; | 199 scoped_ptr<ToolkitDelegate> toolkit_delegate_; |
193 | 200 |
194 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenuBase); | 201 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenuBase); |
195 }; | 202 }; |
196 | 203 |
197 #endif // COMPONENTS_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_BASE_H_ | 204 #endif // COMPONENTS_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_BASE_H_ |
OLD | NEW |