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 #include <set> | 5 #include <set> |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/json/json_reader.h" | 8 #include "base/json/json_reader.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/path_service.h" | |
11 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
12 #include "base/values.h" | 11 #include "base/values.h" |
13 #include "content/browser/child_process_security_policy_impl.h" | 12 #include "content/browser/child_process_security_policy_impl.h" |
14 #include "content/browser/renderer_host/render_view_host_impl.h" | 13 #include "content/browser/renderer_host/render_view_host_impl.h" |
15 #include "content/browser/site_instance_impl.h" | 14 #include "content/browser/site_instance_impl.h" |
16 #include "content/browser/web_contents/web_contents_impl.h" | 15 #include "content/browser/web_contents/web_contents_impl.h" |
17 #include "content/browser/webui/web_ui_impl.h" | 16 #include "content/browser/webui/web_ui_impl.h" |
18 #include "content/common/content_constants_internal.h" | 17 #include "content/common/content_constants_internal.h" |
19 #include "content/public/browser/navigation_controller.h" | 18 #include "content/public/browser/navigation_controller.h" |
20 #include "content/public/browser/navigation_entry.h" | 19 #include "content/public/browser/navigation_entry.h" |
(...skipping 1481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1502 | 1501 |
1503 NavigateToURL(shell(), GURL(url::kAboutBlankURL)); | 1502 NavigateToURL(shell(), GURL(url::kAboutBlankURL)); |
1504 | 1503 |
1505 GURL regular_page_url(test_server()->GetURL("files/title2.html")); | 1504 GURL regular_page_url(test_server()->GetURL("files/title2.html")); |
1506 NavigateToURL(shell(), regular_page_url); | 1505 NavigateToURL(shell(), regular_page_url); |
1507 EXPECT_FALSE(ChildProcessSecurityPolicyImpl::GetInstance()->HasWebUIBindings( | 1506 EXPECT_FALSE(ChildProcessSecurityPolicyImpl::GetInstance()->HasWebUIBindings( |
1508 shell()->web_contents()->GetRenderProcessHost()->GetID())); | 1507 shell()->web_contents()->GetRenderProcessHost()->GetID())); |
1509 } | 1508 } |
1510 | 1509 |
1511 } // namespace content | 1510 } // namespace content |
OLD | NEW |