| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 | 219 |
| 220 // Called for renderer-created windows to resume requests from this frame, | 220 // Called for renderer-created windows to resume requests from this frame, |
| 221 // after they are blocked in RenderWidgetHelper::CreateNewWindow. | 221 // after they are blocked in RenderWidgetHelper::CreateNewWindow. |
| 222 void Init(); | 222 void Init(); |
| 223 | 223 |
| 224 int routing_id() const { return routing_id_; } | 224 int routing_id() const { return routing_id_; } |
| 225 void OnCreateChildFrame( | 225 void OnCreateChildFrame( |
| 226 int new_routing_id, | 226 int new_routing_id, |
| 227 blink::WebTreeScopeType scope, | 227 blink::WebTreeScopeType scope, |
| 228 const std::string& frame_name, | 228 const std::string& frame_name, |
| 229 const std::string& frame_unique_name, |
| 229 blink::WebSandboxFlags sandbox_flags, | 230 blink::WebSandboxFlags sandbox_flags, |
| 230 const blink::WebFrameOwnerProperties& frame_owner_properties); | 231 const blink::WebFrameOwnerProperties& frame_owner_properties); |
| 231 | 232 |
| 232 RenderViewHostImpl* render_view_host() { return render_view_host_; } | 233 RenderViewHostImpl* render_view_host() { return render_view_host_; } |
| 233 RenderFrameHostDelegate* delegate() { return delegate_; } | 234 RenderFrameHostDelegate* delegate() { return delegate_; } |
| 234 FrameTreeNode* frame_tree_node() { return frame_tree_node_; } | 235 FrameTreeNode* frame_tree_node() { return frame_tree_node_; } |
| 235 | 236 |
| 236 // Returns the associated WebUI or null if none applies. | 237 // Returns the associated WebUI or null if none applies. |
| 237 WebUIImpl* web_ui() const { return web_ui_.get(); } | 238 WebUIImpl* web_ui() const { return web_ui_.get(); } |
| 238 | 239 |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 588 IPC::Message* reply_msg); | 589 IPC::Message* reply_msg); |
| 589 void OnRunBeforeUnloadConfirm(const GURL& frame_url, | 590 void OnRunBeforeUnloadConfirm(const GURL& frame_url, |
| 590 const base::string16& message, | 591 const base::string16& message, |
| 591 bool is_reload, | 592 bool is_reload, |
| 592 IPC::Message* reply_msg); | 593 IPC::Message* reply_msg); |
| 593 void OnTextSurroundingSelectionResponse(const base::string16& content, | 594 void OnTextSurroundingSelectionResponse(const base::string16& content, |
| 594 size_t start_offset, | 595 size_t start_offset, |
| 595 size_t end_offset); | 596 size_t end_offset); |
| 596 void OnDidAccessInitialDocument(); | 597 void OnDidAccessInitialDocument(); |
| 597 void OnDidChangeOpener(int32_t opener_routing_id); | 598 void OnDidChangeOpener(int32_t opener_routing_id); |
| 598 void OnDidChangeName(const std::string& name); | 599 void OnDidChangeName(const std::string& name, const std::string& unique_name); |
| 599 void OnEnforceStrictMixedContentChecking(); | 600 void OnEnforceStrictMixedContentChecking(); |
| 600 void OnDidAssignPageId(int32_t page_id); | 601 void OnDidAssignPageId(int32_t page_id); |
| 601 void OnDidChangeSandboxFlags(int32_t frame_routing_id, | 602 void OnDidChangeSandboxFlags(int32_t frame_routing_id, |
| 602 blink::WebSandboxFlags flags); | 603 blink::WebSandboxFlags flags); |
| 603 void OnDidChangeFrameOwnerProperties( | 604 void OnDidChangeFrameOwnerProperties( |
| 604 int32_t frame_routing_id, | 605 int32_t frame_routing_id, |
| 605 const blink::WebFrameOwnerProperties& frame_owner_properties); | 606 const blink::WebFrameOwnerProperties& frame_owner_properties); |
| 606 void OnUpdateTitle(const base::string16& title, | 607 void OnUpdateTitle(const base::string16& title, |
| 607 blink::WebTextDirection title_direction); | 608 blink::WebTextDirection title_direction); |
| 608 void OnUpdateEncoding(const std::string& encoding); | 609 void OnUpdateEncoding(const std::string& encoding); |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 892 | 893 |
| 893 // NOTE: This must be the last member. | 894 // NOTE: This must be the last member. |
| 894 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 895 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
| 895 | 896 |
| 896 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 897 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 897 }; | 898 }; |
| 898 | 899 |
| 899 } // namespace content | 900 } // namespace content |
| 900 | 901 |
| 901 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 902 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |