| 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_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 void OnJavaScriptExecuteResponse(int id, const base::ListValue& result); | 288 void OnJavaScriptExecuteResponse(int id, const base::ListValue& result); |
| 289 void OnRunJavaScriptMessage(const base::string16& message, | 289 void OnRunJavaScriptMessage(const base::string16& message, |
| 290 const base::string16& default_prompt, | 290 const base::string16& default_prompt, |
| 291 const GURL& frame_url, | 291 const GURL& frame_url, |
| 292 JavaScriptMessageType type, | 292 JavaScriptMessageType type, |
| 293 IPC::Message* reply_msg); | 293 IPC::Message* reply_msg); |
| 294 void OnRunBeforeUnloadConfirm(const GURL& frame_url, | 294 void OnRunBeforeUnloadConfirm(const GURL& frame_url, |
| 295 const base::string16& message, | 295 const base::string16& message, |
| 296 bool is_reload, | 296 bool is_reload, |
| 297 IPC::Message* reply_msg); | 297 IPC::Message* reply_msg); |
| 298 void OnRequestPlatformNotificationPermission(const GURL& origin, |
| 299 int request_id); |
| 298 void OnRequestDesktopNotificationPermission(const GURL& origin, | 300 void OnRequestDesktopNotificationPermission(const GURL& origin, |
| 299 int callback_id); | 301 int callback_id); |
| 300 void OnShowDesktopNotification( | 302 void OnShowDesktopNotification( |
| 301 int notification_id, | 303 int notification_id, |
| 302 const ShowDesktopNotificationHostMsgParams& params); | 304 const ShowDesktopNotificationHostMsgParams& params); |
| 303 void OnCancelDesktopNotification(int notification_id); | 305 void OnCancelDesktopNotification(int notification_id); |
| 304 void OnTextSurroundingSelectionResponse(const base::string16& content, | 306 void OnTextSurroundingSelectionResponse(const base::string16& content, |
| 305 size_t start_offset, | 307 size_t start_offset, |
| 306 size_t end_offset); | 308 size_t end_offset); |
| 307 void OnDidAccessInitialDocument(); | 309 void OnDidAccessInitialDocument(); |
| 308 void OnDidDisownOpener(); | 310 void OnDidDisownOpener(); |
| 309 void OnUpdateTitle(int32 page_id, | 311 void OnUpdateTitle(int32 page_id, |
| 310 const base::string16& title, | 312 const base::string16& title, |
| 311 blink::WebTextDirection title_direction); | 313 blink::WebTextDirection title_direction); |
| 312 void OnUpdateEncoding(const std::string& encoding); | 314 void OnUpdateEncoding(const std::string& encoding); |
| 313 void OnBeginNavigation( | 315 void OnBeginNavigation( |
| 314 const FrameHostMsg_BeginNavigation_Params& params); | 316 const FrameHostMsg_BeginNavigation_Params& params); |
| 315 void OnAccessibilityEvents( | 317 void OnAccessibilityEvents( |
| 316 const std::vector<AccessibilityHostMsg_EventParams>& params); | 318 const std::vector<AccessibilityHostMsg_EventParams>& params); |
| 317 void OnAccessibilityLocationChanges( | 319 void OnAccessibilityLocationChanges( |
| 318 const std::vector<AccessibilityHostMsg_LocationChangeParams>& params); | 320 const std::vector<AccessibilityHostMsg_LocationChangeParams>& params); |
| 319 | 321 |
| 320 // Returns whether the given URL is allowed to commit in the current process. | 322 // Returns whether the given URL is allowed to commit in the current process. |
| 321 // This is a more conservative check than RenderProcessHost::FilterURL, since | 323 // This is a more conservative check than RenderProcessHost::FilterURL, since |
| 322 // it will be used to kill processes that commit unauthorized URLs. | 324 // it will be used to kill processes that commit unauthorized URLs. |
| 323 bool CanCommitURL(const GURL& url); | 325 bool CanCommitURL(const GURL& url); |
| 324 | 326 |
| 327 void PlatformNotificationPermissionRequestDone( |
| 328 int request_id, blink::WebNotificationPermission permission); |
| 325 void DesktopNotificationPermissionRequestDone( | 329 void DesktopNotificationPermissionRequestDone( |
| 326 int callback_context, blink::WebNotificationPermission permission); | 330 int callback_context, blink::WebNotificationPermission permission); |
| 327 | 331 |
| 328 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a | 332 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a |
| 329 // refcount that calls Shutdown when it reaches zero. This allows each | 333 // refcount that calls Shutdown when it reaches zero. This allows each |
| 330 // RenderFrameHostManager to just care about RenderFrameHosts, while ensuring | 334 // RenderFrameHostManager to just care about RenderFrameHosts, while ensuring |
| 331 // we have a RenderViewHost for each RenderFrameHost. | 335 // we have a RenderViewHost for each RenderFrameHost. |
| 332 // TODO(creis): RenderViewHost will eventually go away and be replaced with | 336 // TODO(creis): RenderViewHost will eventually go away and be replaced with |
| 333 // some form of page context. | 337 // some form of page context. |
| 334 RenderViewHostImpl* render_view_host_; | 338 RenderViewHostImpl* render_view_host_; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 base::Callback<void(ui::AXEvent, int)> accessibility_testing_callback_; | 388 base::Callback<void(ui::AXEvent, int)> accessibility_testing_callback_; |
| 385 // The most recently received accessibility tree - for testing only. | 389 // The most recently received accessibility tree - for testing only. |
| 386 scoped_ptr<ui::AXTree> ax_tree_for_testing_; | 390 scoped_ptr<ui::AXTree> ax_tree_for_testing_; |
| 387 | 391 |
| 388 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 392 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 389 }; | 393 }; |
| 390 | 394 |
| 391 } // namespace content | 395 } // namespace content |
| 392 | 396 |
| 393 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 397 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |