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_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 // The page wants to post a message to the active view in this tab. | 132 // The page wants to post a message to the active view in this tab. |
133 virtual void RouteMessageEvent( | 133 virtual void RouteMessageEvent( |
134 RenderViewHost* rvh, | 134 RenderViewHost* rvh, |
135 const ViewMsg_PostMessage_Params& params) {} | 135 const ViewMsg_PostMessage_Params& params) {} |
136 | 136 |
137 // Return a dummy RendererPreferences object that will be used by the renderer | 137 // Return a dummy RendererPreferences object that will be used by the renderer |
138 // associated with the owning RenderViewHost. | 138 // associated with the owning RenderViewHost. |
139 virtual RendererPreferences GetRendererPrefs( | 139 virtual RendererPreferences GetRendererPrefs( |
140 BrowserContext* browser_context) const = 0; | 140 BrowserContext* browser_context) const = 0; |
141 | 141 |
142 // Returns a WebPreferences object that will be used by the renderer | 142 // Computes a WebPreferences object that will be used by the renderer |
143 // associated with the owning render view host. | 143 // associated with the owning render view host. |
144 virtual WebPreferences GetWebkitPrefs(); | 144 virtual WebPreferences ComputeWebkitPrefs(); |
145 | 145 |
146 // Notification the user has made a gesture while focus was on the | 146 // Notification the user has made a gesture while focus was on the |
147 // page. This is used to avoid uninitiated user downloads (aka carpet | 147 // page. This is used to avoid uninitiated user downloads (aka carpet |
148 // bombing), see DownloadRequestLimiter for details. | 148 // bombing), see DownloadRequestLimiter for details. |
149 virtual void OnUserGesture() {} | 149 virtual void OnUserGesture() {} |
150 | 150 |
151 // Notification from the renderer host that blocked UI event occurred. | 151 // Notification from the renderer host that blocked UI event occurred. |
152 // This happens when there are tab-modal dialogs. In this case, the | 152 // This happens when there are tab-modal dialogs. In this case, the |
153 // notification is needed to let us draw attention to the dialog (i.e. | 153 // notification is needed to let us draw attention to the dialog (i.e. |
154 // refocus on the modal dialog, flash title etc). | 154 // refocus on the modal dialog, flash title etc). |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 // created by the RenderViewHost. | 283 // created by the RenderViewHost. |
284 virtual FrameTree* GetFrameTree(); | 284 virtual FrameTree* GetFrameTree(); |
285 | 285 |
286 protected: | 286 protected: |
287 virtual ~RenderViewHostDelegate() {} | 287 virtual ~RenderViewHostDelegate() {} |
288 }; | 288 }; |
289 | 289 |
290 } // namespace content | 290 } // namespace content |
291 | 291 |
292 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 292 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |