| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_RENDERER_RENDER_FRAME_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 85 |
| 86 // TODO(jam): this is a temporary getter until all the code is transitioned | 86 // TODO(jam): this is a temporary getter until all the code is transitioned |
| 87 // to using RenderFrame instead of RenderView. | 87 // to using RenderFrame instead of RenderView. |
| 88 RenderViewImpl* render_view() { return render_view_.get(); } | 88 RenderViewImpl* render_view() { return render_view_.get(); } |
| 89 | 89 |
| 90 RendererWebCookieJarImpl* cookie_jar() { return &cookie_jar_; } | 90 RendererWebCookieJarImpl* cookie_jar() { return &cookie_jar_; } |
| 91 | 91 |
| 92 // Returns the RenderWidget associated with this frame. | 92 // Returns the RenderWidget associated with this frame. |
| 93 RenderWidget* GetRenderWidget(); | 93 RenderWidget* GetRenderWidget(); |
| 94 | 94 |
| 95 // This is called right after creation with the WebFrame for this RenderFrame. | 95 // This is called right after creation with the WebLocalFrame for this |
| 96 void SetWebFrame(blink::WebFrame* web_frame); | 96 // RenderFrame. |
| 97 void SetWebFrame(blink::WebLocalFrame* web_frame); |
| 97 | 98 |
| 98 // Notification from RenderView. | 99 // Notification from RenderView. |
| 99 virtual void OnStop(); | 100 virtual void OnStop(); |
| 100 | 101 |
| 101 // Start/Stop loading notifications. | 102 // Start/Stop loading notifications. |
| 102 // TODO(nasko): Those are page-level methods at this time and come from | 103 // TODO(nasko): Those are page-level methods at this time and come from |
| 103 // WebViewClient. We should move them to be WebFrameClient calls and put | 104 // WebViewClient. We should move them to be WebFrameClient calls and put |
| 104 // logic in the browser side to balance starts/stops. | 105 // logic in the browser side to balance starts/stops. |
| 105 // |to_different_document| will be true unless the load is a fragment | 106 // |to_different_document| will be true unless the load is a fragment |
| 106 // navigation, or triggered by history.pushState/replaceState. | 107 // navigation, or triggered by history.pushState/replaceState. |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 virtual blink::WebFrame* GetWebFrame() OVERRIDE; | 176 virtual blink::WebFrame* GetWebFrame() OVERRIDE; |
| 176 virtual WebPreferences& GetWebkitPreferences() OVERRIDE; | 177 virtual WebPreferences& GetWebkitPreferences() OVERRIDE; |
| 177 virtual int ShowContextMenu(ContextMenuClient* client, | 178 virtual int ShowContextMenu(ContextMenuClient* client, |
| 178 const ContextMenuParams& params) OVERRIDE; | 179 const ContextMenuParams& params) OVERRIDE; |
| 179 virtual void CancelContextMenu(int request_id) OVERRIDE; | 180 virtual void CancelContextMenu(int request_id) OVERRIDE; |
| 180 virtual blink::WebNode GetContextMenuNode() const OVERRIDE; | 181 virtual blink::WebNode GetContextMenuNode() const OVERRIDE; |
| 181 virtual blink::WebPlugin* CreatePlugin( | 182 virtual blink::WebPlugin* CreatePlugin( |
| 182 blink::WebFrame* frame, | 183 blink::WebFrame* frame, |
| 183 const WebPluginInfo& info, | 184 const WebPluginInfo& info, |
| 184 const blink::WebPluginParams& params) OVERRIDE; | 185 const blink::WebPluginParams& params) OVERRIDE; |
| 185 virtual void LoadURLExternally( | 186 virtual void LoadURLExternally(blink::WebLocalFrame* frame, |
| 186 blink::WebFrame* frame, | 187 const blink::WebURLRequest& request, |
| 187 const blink::WebURLRequest& request, | 188 blink::WebNavigationPolicy policy) OVERRIDE; |
| 188 blink::WebNavigationPolicy policy) OVERRIDE; | |
| 189 virtual void ExecuteJavaScript(const base::string16& javascript) OVERRIDE; | 189 virtual void ExecuteJavaScript(const base::string16& javascript) OVERRIDE; |
| 190 | 190 |
| 191 // blink::WebFrameClient implementation ------------------------------------- | 191 // blink::WebFrameClient implementation ------------------------------------- |
| 192 virtual blink::WebPlugin* createPlugin( | 192 virtual blink::WebPlugin* createPlugin(blink::WebLocalFrame* frame, |
| 193 blink::WebFrame* frame, | 193 const blink::WebPluginParams& params); |
| 194 const blink::WebPluginParams& params); | |
| 195 virtual blink::WebMediaPlayer* createMediaPlayer( | 194 virtual blink::WebMediaPlayer* createMediaPlayer( |
| 196 blink::WebFrame* frame, | 195 blink::WebLocalFrame* frame, |
| 197 const blink::WebURL& url, | 196 const blink::WebURL& url, |
| 198 blink::WebMediaPlayerClient* client); | 197 blink::WebMediaPlayerClient* client); |
| 199 virtual blink::WebContentDecryptionModule* createContentDecryptionModule( | 198 virtual blink::WebContentDecryptionModule* createContentDecryptionModule( |
| 200 blink::WebFrame* frame, | 199 blink::WebLocalFrame* frame, |
| 201 const blink::WebSecurityOrigin& security_origin, | 200 const blink::WebSecurityOrigin& security_origin, |
| 202 const blink::WebString& key_system); | 201 const blink::WebString& key_system); |
| 203 virtual blink::WebApplicationCacheHost* createApplicationCacheHost( | 202 virtual blink::WebApplicationCacheHost* createApplicationCacheHost( |
| 204 blink::WebFrame* frame, | 203 blink::WebLocalFrame* frame, |
| 205 blink::WebApplicationCacheHostClient* client); | 204 blink::WebApplicationCacheHostClient* client); |
| 206 virtual blink::WebWorkerPermissionClientProxy* | 205 virtual blink::WebWorkerPermissionClientProxy* |
| 207 createWorkerPermissionClientProxy(blink::WebFrame* frame); | 206 createWorkerPermissionClientProxy(blink::WebLocalFrame* frame); |
| 208 virtual blink::WebCookieJar* cookieJar(blink::WebFrame* frame); | 207 virtual blink::WebCookieJar* cookieJar(blink::WebLocalFrame* frame); |
| 209 virtual blink::WebServiceWorkerProvider* createServiceWorkerProvider( | 208 virtual blink::WebServiceWorkerProvider* createServiceWorkerProvider( |
| 210 blink::WebFrame* frame); | 209 blink::WebLocalFrame* frame); |
| 211 virtual void didAccessInitialDocument(blink::WebFrame* frame); | 210 virtual void didAccessInitialDocument(blink::WebLocalFrame* frame); |
| 212 virtual blink::WebFrame* createChildFrame(blink::WebFrame* parent, | 211 virtual blink::WebFrame* createChildFrame(blink::WebLocalFrame* parent, |
| 213 const blink::WebString& name); | 212 const blink::WebString& name); |
| 214 virtual void didDisownOpener(blink::WebFrame* frame); | 213 virtual void didDisownOpener(blink::WebLocalFrame* frame); |
| 215 virtual void frameDetached(blink::WebFrame* frame); | 214 virtual void frameDetached(blink::WebFrame* frame); |
| 216 virtual void frameFocused(); | 215 virtual void frameFocused(); |
| 217 virtual void willClose(blink::WebFrame* frame); | 216 virtual void willClose(blink::WebFrame* frame); |
| 218 virtual void didChangeName(blink::WebFrame* frame, | 217 virtual void didChangeName(blink::WebLocalFrame* frame, |
| 219 const blink::WebString& name); | 218 const blink::WebString& name); |
| 220 virtual void didMatchCSS( | 219 virtual void didMatchCSS( |
| 221 blink::WebFrame* frame, | 220 blink::WebLocalFrame* frame, |
| 222 const blink::WebVector<blink::WebString>& newly_matching_selectors, | 221 const blink::WebVector<blink::WebString>& newly_matching_selectors, |
| 223 const blink::WebVector<blink::WebString>& stopped_matching_selectors); | 222 const blink::WebVector<blink::WebString>& stopped_matching_selectors); |
| 224 virtual bool shouldReportDetailedMessageForSource( | 223 virtual bool shouldReportDetailedMessageForSource( |
| 225 const blink::WebString& source); | 224 const blink::WebString& source); |
| 226 virtual void didAddMessageToConsole(const blink::WebConsoleMessage& message, | 225 virtual void didAddMessageToConsole(const blink::WebConsoleMessage& message, |
| 227 const blink::WebString& source_name, | 226 const blink::WebString& source_name, |
| 228 unsigned source_line, | 227 unsigned source_line, |
| 229 const blink::WebString& stack_trace); | 228 const blink::WebString& stack_trace); |
| 230 virtual void loadURLExternally(blink::WebFrame* frame, | 229 virtual void loadURLExternally(blink::WebLocalFrame* frame, |
| 231 const blink::WebURLRequest& request, | 230 const blink::WebURLRequest& request, |
| 232 blink::WebNavigationPolicy policy); | 231 blink::WebNavigationPolicy policy); |
| 233 virtual void loadURLExternally( | 232 virtual void loadURLExternally(blink::WebLocalFrame* frame, |
| 234 blink::WebFrame* frame, | 233 const blink::WebURLRequest& request, |
| 235 const blink::WebURLRequest& request, | 234 blink::WebNavigationPolicy policy, |
| 236 blink::WebNavigationPolicy policy, | 235 const blink::WebString& suggested_name); |
| 237 const blink::WebString& suggested_name); | |
| 238 // The WebDataSource::ExtraData* is assumed to be a DocumentState* subclass. | 236 // The WebDataSource::ExtraData* is assumed to be a DocumentState* subclass. |
| 239 virtual blink::WebNavigationPolicy decidePolicyForNavigation( | 237 virtual blink::WebNavigationPolicy decidePolicyForNavigation( |
| 240 blink::WebFrame* frame, | 238 blink::WebLocalFrame* frame, |
| 241 blink::WebDataSource::ExtraData* extra_data, | 239 blink::WebDataSource::ExtraData* extra_data, |
| 242 const blink::WebURLRequest& request, | 240 const blink::WebURLRequest& request, |
| 243 blink::WebNavigationType type, | 241 blink::WebNavigationType type, |
| 244 blink::WebNavigationPolicy default_policy, | 242 blink::WebNavigationPolicy default_policy, |
| 245 bool is_redirect); | 243 bool is_redirect); |
| 246 virtual blink::WebHistoryItem historyItemForNewChildFrame( | 244 virtual blink::WebHistoryItem historyItemForNewChildFrame( |
| 247 blink::WebFrame* frame); | 245 blink::WebFrame* frame); |
| 248 virtual void willSendSubmitEvent(blink::WebFrame* frame, | 246 virtual void willSendSubmitEvent(blink::WebLocalFrame* frame, |
| 249 const blink::WebFormElement& form); | 247 const blink::WebFormElement& form); |
| 250 virtual void willSubmitForm(blink::WebFrame* frame, | 248 virtual void willSubmitForm(blink::WebLocalFrame* frame, |
| 251 const blink::WebFormElement& form); | 249 const blink::WebFormElement& form); |
| 252 virtual void didCreateDataSource(blink::WebFrame* frame, | 250 virtual void didCreateDataSource(blink::WebLocalFrame* frame, |
| 253 blink::WebDataSource* datasource); | 251 blink::WebDataSource* datasource); |
| 254 virtual void didStartProvisionalLoad(blink::WebFrame* frame); | 252 virtual void didStartProvisionalLoad(blink::WebLocalFrame* frame); |
| 255 virtual void didReceiveServerRedirectForProvisionalLoad( | 253 virtual void didReceiveServerRedirectForProvisionalLoad( |
| 256 blink::WebFrame* frame); | 254 blink::WebFrame* frame); |
| 257 virtual void didFailProvisionalLoad( | 255 virtual void didFailProvisionalLoad( |
| 258 blink::WebFrame* frame, | 256 blink::WebFrame* frame, |
| 259 const blink::WebURLError& error); | 257 const blink::WebURLError& error); |
| 260 virtual void didCommitProvisionalLoad( | 258 virtual void didCommitProvisionalLoad( |
| 261 blink::WebFrame* frame, | 259 blink::WebFrame* frame, |
| 262 const blink::WebHistoryItem& item, | 260 const blink::WebHistoryItem& item, |
| 263 blink::WebHistoryCommitType commit_type); | 261 blink::WebHistoryCommitType commit_type); |
| 264 // DEPRECATED | 262 // DEPRECATED |
| 265 virtual void didCommitProvisionalLoad(blink::WebFrame* frame, | 263 virtual void didCommitProvisionalLoad(blink::WebLocalFrame* frame, |
| 266 bool is_new_navigation); | 264 bool is_new_navigation); |
| 267 virtual void didClearWindowObject(blink::WebFrame* frame, int world_id); | 265 virtual void didClearWindowObject(blink::WebLocalFrame* frame, int world_id); |
| 268 virtual void didCreateDocumentElement(blink::WebFrame* frame); | 266 virtual void didCreateDocumentElement(blink::WebLocalFrame* frame); |
| 269 virtual void didReceiveTitle(blink::WebFrame* frame, | 267 virtual void didReceiveTitle(blink::WebLocalFrame* frame, |
| 270 const blink::WebString& title, | 268 const blink::WebString& title, |
| 271 blink::WebTextDirection direction); | 269 blink::WebTextDirection direction); |
| 272 virtual void didChangeIcon(blink::WebFrame* frame, | 270 virtual void didChangeIcon(blink::WebLocalFrame* frame, |
| 273 blink::WebIconURL::Type icon_type); | 271 blink::WebIconURL::Type icon_type); |
| 274 virtual void didFinishDocumentLoad(blink::WebFrame* frame); | 272 virtual void didFinishDocumentLoad(blink::WebLocalFrame* frame); |
| 275 virtual void didHandleOnloadEvents(blink::WebFrame* frame); | 273 virtual void didHandleOnloadEvents(blink::WebLocalFrame* frame); |
| 276 virtual void didFailLoad(blink::WebFrame* frame, | 274 virtual void didFailLoad(blink::WebLocalFrame* frame, |
| 277 const blink::WebURLError& error); | 275 const blink::WebURLError& error); |
| 278 virtual void didFinishLoad(blink::WebFrame* frame); | 276 virtual void didFinishLoad(blink::WebFrame* frame); |
| 279 virtual void didNavigateWithinPage(blink::WebFrame* frame, | 277 virtual void didNavigateWithinPage(blink::WebFrame* frame, |
| 280 const blink::WebHistoryItem& item, | 278 const blink::WebHistoryItem& item, |
| 281 blink::WebHistoryCommitType commit_type); | 279 blink::WebHistoryCommitType commit_type); |
| 282 // DEPRECATED | 280 // DEPRECATED |
| 283 virtual void didNavigateWithinPage(blink::WebFrame* frame, | 281 virtual void didNavigateWithinPage(blink::WebLocalFrame* frame, |
| 284 bool is_new_navigation); | 282 bool is_new_navigation); |
| 285 virtual void didUpdateCurrentHistoryItem(blink::WebFrame* frame); | 283 virtual void didUpdateCurrentHistoryItem(blink::WebLocalFrame* frame); |
| 286 virtual void didChangeSelection(bool is_empty_selection); | 284 virtual void didChangeSelection(bool is_empty_selection); |
| 287 virtual void showContextMenu(const blink::WebContextMenuData& data); | 285 virtual void showContextMenu(const blink::WebContextMenuData& data); |
| 288 virtual void clearContextMenu(); | 286 virtual void clearContextMenu(); |
| 289 virtual void willRequestAfterPreconnect(blink::WebFrame* frame, | 287 virtual void willRequestAfterPreconnect(blink::WebLocalFrame* frame, |
| 290 blink::WebURLRequest& request); | 288 blink::WebURLRequest& request); |
| 291 virtual void willSendRequest( | 289 virtual void willSendRequest(blink::WebLocalFrame* frame, |
| 292 blink::WebFrame* frame, | 290 unsigned identifier, |
| 293 unsigned identifier, | 291 blink::WebURLRequest& request, |
| 294 blink::WebURLRequest& request, | 292 const blink::WebURLResponse& redirect_response); |
| 295 const blink::WebURLResponse& redirect_response); | 293 virtual void didReceiveResponse(blink::WebLocalFrame* frame, |
| 296 virtual void didReceiveResponse( | 294 unsigned identifier, |
| 297 blink::WebFrame* frame, | 295 const blink::WebURLResponse& response); |
| 298 unsigned identifier, | 296 virtual void didFinishResourceLoad(blink::WebLocalFrame* frame, |
| 299 const blink::WebURLResponse& response); | |
| 300 virtual void didFinishResourceLoad(blink::WebFrame* frame, | |
| 301 unsigned identifier); | 297 unsigned identifier); |
| 302 virtual void didLoadResourceFromMemoryCache( | 298 virtual void didLoadResourceFromMemoryCache( |
| 303 blink::WebFrame* frame, | 299 blink::WebLocalFrame* frame, |
| 304 const blink::WebURLRequest& request, | 300 const blink::WebURLRequest& request, |
| 305 const blink::WebURLResponse& response); | 301 const blink::WebURLResponse& response); |
| 306 virtual void didDisplayInsecureContent(blink::WebFrame* frame); | 302 virtual void didDisplayInsecureContent(blink::WebLocalFrame* frame); |
| 307 virtual void didRunInsecureContent(blink::WebFrame* frame, | 303 virtual void didRunInsecureContent(blink::WebLocalFrame* frame, |
| 308 const blink::WebSecurityOrigin& origin, | 304 const blink::WebSecurityOrigin& origin, |
| 309 const blink::WebURL& target); | 305 const blink::WebURL& target); |
| 310 virtual void didAbortLoading(blink::WebFrame* frame); | 306 virtual void didAbortLoading(blink::WebLocalFrame* frame); |
| 311 virtual void didCreateScriptContext(blink::WebFrame* frame, | 307 virtual void didCreateScriptContext(blink::WebLocalFrame* frame, |
| 312 v8::Handle<v8::Context> context, | 308 v8::Handle<v8::Context> context, |
| 313 int extension_group, | 309 int extension_group, |
| 314 int world_id); | 310 int world_id); |
| 315 virtual void willReleaseScriptContext(blink::WebFrame* frame, | 311 virtual void willReleaseScriptContext(blink::WebLocalFrame* frame, |
| 316 v8::Handle<v8::Context> context, | 312 v8::Handle<v8::Context> context, |
| 317 int world_id); | 313 int world_id); |
| 318 virtual void didFirstVisuallyNonEmptyLayout(blink::WebFrame* frame); | 314 virtual void didFirstVisuallyNonEmptyLayout(blink::WebLocalFrame* frame); |
| 319 virtual void didChangeContentsSize(blink::WebFrame* frame, | 315 virtual void didChangeContentsSize(blink::WebLocalFrame* frame, |
| 320 const blink::WebSize& size); | 316 const blink::WebSize& size); |
| 321 virtual void didChangeScrollOffset(blink::WebFrame* frame); | 317 virtual void didChangeScrollOffset(blink::WebLocalFrame* frame); |
| 322 virtual void willInsertBody(blink::WebFrame* frame); | 318 virtual void willInsertBody(blink::WebLocalFrame* frame); |
| 323 virtual void reportFindInPageMatchCount(int request_id, | 319 virtual void reportFindInPageMatchCount(int request_id, |
| 324 int count, | 320 int count, |
| 325 bool final_update); | 321 bool final_update); |
| 326 virtual void reportFindInPageSelection(int request_id, | 322 virtual void reportFindInPageSelection(int request_id, |
| 327 int active_match_ordinal, | 323 int active_match_ordinal, |
| 328 const blink::WebRect& sel); | 324 const blink::WebRect& sel); |
| 329 virtual void requestStorageQuota( | 325 virtual void requestStorageQuota(blink::WebLocalFrame* frame, |
| 330 blink::WebFrame* frame, | 326 blink::WebStorageQuotaType type, |
| 331 blink::WebStorageQuotaType type, | 327 unsigned long long requested_size, |
| 332 unsigned long long requested_size, | 328 blink::WebStorageQuotaCallbacks callbacks); |
| 333 blink::WebStorageQuotaCallbacks callbacks); | |
| 334 virtual void willOpenSocketStream( | 329 virtual void willOpenSocketStream( |
| 335 blink::WebSocketStreamHandle* handle); | 330 blink::WebSocketStreamHandle* handle); |
| 336 virtual void willStartUsingPeerConnectionHandler( | 331 virtual void willStartUsingPeerConnectionHandler( |
| 337 blink::WebFrame* frame, | 332 blink::WebLocalFrame* frame, |
| 338 blink::WebRTCPeerConnectionHandler* handler); | 333 blink::WebRTCPeerConnectionHandler* handler); |
| 339 virtual bool willCheckAndDispatchMessageEvent( | 334 virtual bool willCheckAndDispatchMessageEvent( |
| 340 blink::WebFrame* sourceFrame, | 335 blink::WebLocalFrame* sourceFrame, |
| 341 blink::WebFrame* targetFrame, | 336 blink::WebFrame* targetFrame, |
| 342 blink::WebSecurityOrigin targetOrigin, | 337 blink::WebSecurityOrigin targetOrigin, |
| 343 blink::WebDOMMessageEvent event); | 338 blink::WebDOMMessageEvent event); |
| 344 virtual blink::WebString userAgentOverride( | 339 virtual blink::WebString userAgentOverride(blink::WebLocalFrame* frame, |
| 345 blink::WebFrame* frame, | 340 const blink::WebURL& url); |
| 346 const blink::WebURL& url); | 341 virtual blink::WebString doNotTrackValue(blink::WebLocalFrame* frame); |
| 347 virtual blink::WebString doNotTrackValue(blink::WebFrame* frame); | 342 virtual bool allowWebGL(blink::WebLocalFrame* frame, bool default_value); |
| 348 virtual bool allowWebGL(blink::WebFrame* frame, bool default_value); | 343 virtual void didLoseWebGLContext(blink::WebLocalFrame* frame, |
| 349 virtual void didLoseWebGLContext(blink::WebFrame* frame, | |
| 350 int arb_robustness_status_code); | 344 int arb_robustness_status_code); |
| 351 virtual void forwardInputEvent(const blink::WebInputEvent* event); | 345 virtual void forwardInputEvent(const blink::WebInputEvent* event); |
| 352 virtual void initializeChildFrame(const blink::WebRect& frame_rect, | 346 virtual void initializeChildFrame(const blink::WebRect& frame_rect, |
| 353 float scale_factor); | 347 float scale_factor); |
| 354 | 348 |
| 355 // TODO(nasko): Make all tests in RenderViewImplTest friends and then move | 349 // TODO(nasko): Make all tests in RenderViewImplTest friends and then move |
| 356 // this back to private member. | 350 // this back to private member. |
| 357 void OnNavigate(const FrameMsg_Navigate_Params& params); | 351 void OnNavigate(const FrameMsg_Navigate_Params& params); |
| 358 | 352 |
| 359 protected: | 353 protected: |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 void SyncSelectionIfRequired(); | 438 void SyncSelectionIfRequired(); |
| 445 | 439 |
| 446 // Returns whether |params.selection_text| should be synchronized to the | 440 // Returns whether |params.selection_text| should be synchronized to the |
| 447 // browser before bringing up the context menu. Static for testing. | 441 // browser before bringing up the context menu. Static for testing. |
| 448 static bool ShouldUpdateSelectionTextFromContextMenuParams( | 442 static bool ShouldUpdateSelectionTextFromContextMenuParams( |
| 449 const base::string16& selection_text, | 443 const base::string16& selection_text, |
| 450 size_t selection_text_offset, | 444 size_t selection_text_offset, |
| 451 const gfx::Range& selection_range, | 445 const gfx::Range& selection_range, |
| 452 const ContextMenuParams& params); | 446 const ContextMenuParams& params); |
| 453 | 447 |
| 454 // Stores the WebFrame we are associated with. | 448 // Stores the WebLocalFrame we are associated with. |
| 455 blink::WebFrame* frame_; | 449 blink::WebLocalFrame* frame_; |
| 456 | 450 |
| 457 base::WeakPtr<RenderViewImpl> render_view_; | 451 base::WeakPtr<RenderViewImpl> render_view_; |
| 458 int routing_id_; | 452 int routing_id_; |
| 459 bool is_loading_; | 453 bool is_loading_; |
| 460 bool is_swapped_out_; | 454 bool is_swapped_out_; |
| 461 bool is_detaching_; | 455 bool is_detaching_; |
| 462 | 456 |
| 463 #if defined(ENABLE_PLUGINS) | 457 #if defined(ENABLE_PLUGINS) |
| 464 // Current text input composition text. Empty if no composition is in | 458 // Current text input composition text. Empty if no composition is in |
| 465 // progress. | 459 // progress. |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 503 // Used to inform didChangeSelection() when it is called in the context | 497 // Used to inform didChangeSelection() when it is called in the context |
| 504 // of handling a InputMsg_SelectRange IPC. | 498 // of handling a InputMsg_SelectRange IPC. |
| 505 bool handling_select_range_; | 499 bool handling_select_range_; |
| 506 | 500 |
| 507 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 501 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
| 508 }; | 502 }; |
| 509 | 503 |
| 510 } // namespace content | 504 } // namespace content |
| 511 | 505 |
| 512 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 506 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| OLD | NEW |