Chromium Code Reviews| 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 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
| 7 | 7 |
| 8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 #include "content/public/browser/render_widget_host.h" | 10 #include "content/public/browser/render_widget_host.h" |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 202 | 202 |
| 203 // Causes the renderer to invoke the onbeforeunload event handler. The | 203 // Causes the renderer to invoke the onbeforeunload event handler. The |
| 204 // result will be returned via ViewMsg_ShouldClose. See also ClosePage and | 204 // result will be returned via ViewMsg_ShouldClose. See also ClosePage and |
| 205 // SwapOut, which fire the PageUnload event. | 205 // SwapOut, which fire the PageUnload event. |
| 206 // | 206 // |
| 207 // Set bool for_cross_site_transition when this close is just for the current | 207 // Set bool for_cross_site_transition when this close is just for the current |
| 208 // RenderView in the case of a cross-site transition. False means we're | 208 // RenderView in the case of a cross-site transition. False means we're |
| 209 // closing the entire tab. | 209 // closing the entire tab. |
| 210 virtual void FirePageBeforeUnload(bool for_cross_site_transition) = 0; | 210 virtual void FirePageBeforeUnload(bool for_cross_site_transition) = 0; |
| 211 | 211 |
| 212 enum FileSelectionPermissions { | |
|
vandebo (ex-Chrome)
2013/06/27 22:35:17
style guide says this should go above any methods.
Greg Billock
2013/06/28 18:40:33
Yeah, that was what I was thinking. I can move it
| |
| 213 FILE_PERMISSION_READ_ONLY, | |
| 214 FILE_PERMISSION_WRITE | |
| 215 }; | |
| 216 | |
| 212 // Notifies the Listener that one or more files have been chosen by the user | 217 // Notifies the Listener that one or more files have been chosen by the user |
| 213 // from a file chooser dialog for the form. |permissions| are flags from the | 218 // from a file chooser dialog for the form. |permissions| is the permission |
| 214 // base::PlatformFileFlags enum which specify which file permissions should | 219 // security policy for the selected file. |
| 215 // be granted to the renderer. | |
| 216 virtual void FilesSelectedInChooser( | 220 virtual void FilesSelectedInChooser( |
| 217 const std::vector<ui::SelectedFileInfo>& files, | 221 const std::vector<ui::SelectedFileInfo>& files, |
| 218 int permissions) = 0; | 222 FileSelectionPermissions permissions) = 0; |
| 219 | 223 |
| 220 virtual RenderViewHostDelegate* GetDelegate() const = 0; | 224 virtual RenderViewHostDelegate* GetDelegate() const = 0; |
| 221 | 225 |
| 222 // Returns a bitwise OR of bindings types that have been enabled for this | 226 // Returns a bitwise OR of bindings types that have been enabled for this |
| 223 // RenderView. See BindingsPolicy for details. | 227 // RenderView. See BindingsPolicy for details. |
| 224 virtual int GetEnabledBindings() const = 0; | 228 virtual int GetEnabledBindings() const = 0; |
| 225 | 229 |
| 226 virtual SiteInstance* GetSiteInstance() const = 0; | 230 virtual SiteInstance* GetSiteInstance() const = 0; |
| 227 | 231 |
| 228 // Requests the renderer to evaluate an xpath to a frame and insert css | 232 // Requests the renderer to evaluate an xpath to a frame and insert css |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 289 | 293 |
| 290 private: | 294 private: |
| 291 // This interface should only be implemented inside content. | 295 // This interface should only be implemented inside content. |
| 292 friend class RenderViewHostImpl; | 296 friend class RenderViewHostImpl; |
| 293 RenderViewHost() {} | 297 RenderViewHost() {} |
| 294 }; | 298 }; |
| 295 | 299 |
| 296 } // namespace content | 300 } // namespace content |
| 297 | 301 |
| 298 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 302 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
| OLD | NEW |