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

Side by Side Diff: content/browser/renderer_host/render_view_host_delegate.h

Issue 373323003: Cache the current WebPreferences on RenderViewHostImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix. Created 6 years, 5 months 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 | Annotate | Revision Log
OLDNEW
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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // The page wants to post a message to the active view in this tab. 134 // The page wants to post a message to the active view in this tab.
135 virtual void RouteMessageEvent( 135 virtual void RouteMessageEvent(
136 RenderViewHost* rvh, 136 RenderViewHost* rvh,
137 const ViewMsg_PostMessage_Params& params) {} 137 const ViewMsg_PostMessage_Params& params) {}
138 138
139 // Return a dummy RendererPreferences object that will be used by the renderer 139 // Return a dummy RendererPreferences object that will be used by the renderer
140 // associated with the owning RenderViewHost. 140 // associated with the owning RenderViewHost.
141 virtual RendererPreferences GetRendererPrefs( 141 virtual RendererPreferences GetRendererPrefs(
142 BrowserContext* browser_context) const = 0; 142 BrowserContext* browser_context) const = 0;
143 143
144 // Returns a WebPreferences object that will be used by the renderer 144 // Computes a WebPreferences object that will be used by the renderer
145 // associated with the owning render view host. 145 // associated with the owning render view host.
146 virtual WebPreferences GetWebkitPrefs(); 146 virtual WebPreferences ComputeWebkitPrefs();
147 147
148 // Notification the user has made a gesture while focus was on the 148 // Notification the user has made a gesture while focus was on the
149 // page. This is used to avoid uninitiated user downloads (aka carpet 149 // page. This is used to avoid uninitiated user downloads (aka carpet
150 // bombing), see DownloadRequestLimiter for details. 150 // bombing), see DownloadRequestLimiter for details.
151 virtual void OnUserGesture() {} 151 virtual void OnUserGesture() {}
152 152
153 // Notification from the renderer host that blocked UI event occurred. 153 // Notification from the renderer host that blocked UI event occurred.
154 // This happens when there are tab-modal dialogs. In this case, the 154 // This happens when there are tab-modal dialogs. In this case, the
155 // notification is needed to let us draw attention to the dialog (i.e. 155 // notification is needed to let us draw attention to the dialog (i.e.
156 // refocus on the modal dialog, flash title etc). 156 // refocus on the modal dialog, flash title etc).
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 virtual void AccessibilityEventReceived( 296 virtual void AccessibilityEventReceived(
297 const std::vector<AXEventNotificationDetails>& details) {} 297 const std::vector<AXEventNotificationDetails>& details) {}
298 298
299 protected: 299 protected:
300 virtual ~RenderViewHostDelegate() {} 300 virtual ~RenderViewHostDelegate() {}
301 }; 301 };
302 302
303 } // namespace content 303 } // namespace content
304 304
305 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 305 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698