| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 435 } | 435 } |
| 436 | 436 |
| 437 bool is_waiting_for_unload_ack_for_testing() { | 437 bool is_waiting_for_unload_ack_for_testing() { |
| 438 return is_waiting_for_unload_ack_; | 438 return is_waiting_for_unload_ack_; |
| 439 } | 439 } |
| 440 | 440 |
| 441 // Checks that the given renderer can request |url|, if not it sets it to | 441 // Checks that the given renderer can request |url|, if not it sets it to |
| 442 // about:blank. | 442 // about:blank. |
| 443 // empty_allowed must be set to false for navigations for security reasons. | 443 // empty_allowed must be set to false for navigations for security reasons. |
| 444 static void FilterURL(ChildProcessSecurityPolicyImpl* policy, | 444 static void FilterURL(ChildProcessSecurityPolicyImpl* policy, |
| 445 int renderer_id, | 445 const RenderProcessHost* process, |
| 446 bool empty_allowed, | 446 bool empty_allowed, |
| 447 GURL* url); | 447 GURL* url); |
| 448 | 448 |
| 449 // NOTE: Do not add functions that just send an IPC message that are called in | 449 // NOTE: Do not add functions that just send an IPC message that are called in |
| 450 // one or two places. Have the caller send the IPC message directly (unless | 450 // one or two places. Have the caller send the IPC message directly (unless |
| 451 // the caller places are in different platforms, in which case it's better | 451 // the caller places are in different platforms, in which case it's better |
| 452 // to keep them consistent). | 452 // to keep them consistent). |
| 453 | 453 |
| 454 protected: | 454 protected: |
| 455 friend class RenderViewHostObserver; | 455 friend class RenderViewHostObserver; |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 699 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 699 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
| 700 }; | 700 }; |
| 701 | 701 |
| 702 #if defined(COMPILER_MSVC) | 702 #if defined(COMPILER_MSVC) |
| 703 #pragma warning(pop) | 703 #pragma warning(pop) |
| 704 #endif | 704 #endif |
| 705 | 705 |
| 706 } // namespace content | 706 } // namespace content |
| 707 | 707 |
| 708 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 708 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| OLD | NEW |