| 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_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 const base::Closure& callback); | 436 const base::Closure& callback); |
| 437 | 437 |
| 438 bool is_waiting_for_beforeunload_ack() { | 438 bool is_waiting_for_beforeunload_ack() { |
| 439 return is_waiting_for_beforeunload_ack_; | 439 return is_waiting_for_beforeunload_ack_; |
| 440 } | 440 } |
| 441 | 441 |
| 442 bool is_waiting_for_unload_ack() { | 442 bool is_waiting_for_unload_ack() { |
| 443 return is_waiting_for_unload_ack_; | 443 return is_waiting_for_unload_ack_; |
| 444 } | 444 } |
| 445 | 445 |
| 446 // TODO(nasko): Remove this accessor once RenderFrameHost moves into the frame |
| 447 // tree. |
| 448 RenderFrameHostImpl* main_render_frame_host() const; |
| 449 |
| 446 // Returns whether the given URL is allowed to commit in the current process. | 450 // Returns whether the given URL is allowed to commit in the current process. |
| 447 // This is a more conservative check than FilterURL, since it will be used to | 451 // This is a more conservative check than FilterURL, since it will be used to |
| 448 // kill processes that commit unauthorized URLs. | 452 // kill processes that commit unauthorized URLs. |
| 449 bool CanCommitURL(const GURL& url); | 453 bool CanCommitURL(const GURL& url); |
| 450 | 454 |
| 451 // Checks that the given renderer can request |url|, if not it sets it to | 455 // Checks that the given renderer can request |url|, if not it sets it to |
| 452 // about:blank. | 456 // about:blank. |
| 453 // empty_allowed must be set to false for navigations for security reasons. | 457 // empty_allowed must be set to false for navigations for security reasons. |
| 454 static void FilterURL(ChildProcessSecurityPolicyImpl* policy, | 458 static void FilterURL(ChildProcessSecurityPolicyImpl* policy, |
| 455 const RenderProcessHost* process, | 459 const RenderProcessHost* process, |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 705 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 709 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
| 706 }; | 710 }; |
| 707 | 711 |
| 708 #if defined(COMPILER_MSVC) | 712 #if defined(COMPILER_MSVC) |
| 709 #pragma warning(pop) | 713 #pragma warning(pop) |
| 710 #endif | 714 #endif |
| 711 | 715 |
| 712 } // namespace content | 716 } // namespace content |
| 713 | 717 |
| 714 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 718 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| OLD | NEW |