| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "base/macros.h" |
| 6 #include "build/build_config.h" |
| 5 #include "content/browser/frame_host/frame_tree.h" | 7 #include "content/browser/frame_host/frame_tree.h" |
| 6 #include "content/browser/frame_host/frame_tree_node.h" | 8 #include "content/browser/frame_host/frame_tree_node.h" |
| 7 #include "content/browser/renderer_host/render_view_host_impl.h" | 9 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 8 #include "content/browser/web_contents/web_contents_impl.h" | 10 #include "content/browser/web_contents/web_contents_impl.h" |
| 9 #include "content/public/browser/notification_service.h" | 11 #include "content/public/browser/notification_service.h" |
| 10 #include "content/public/browser/notification_types.h" | 12 #include "content/public/browser/notification_types.h" |
| 11 #include "content/public/common/url_constants.h" | 13 #include "content/public/common/url_constants.h" |
| 12 #include "content/public/test/browser_test_utils.h" | 14 #include "content/public/test/browser_test_utils.h" |
| 13 #include "content/public/test/content_browser_test.h" | 15 #include "content/public/test/content_browser_test.h" |
| 14 #include "content/public/test/content_browser_test_utils.h" | 16 #include "content/public/test/content_browser_test_utils.h" |
| (...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 472 | 474 |
| 473 GURL data_url("data:text/html,foo"); | 475 GURL data_url("data:text/html,foo"); |
| 474 NavigateFrameToURL(root->child_at(1), data_url); | 476 NavigateFrameToURL(root->child_at(1), data_url); |
| 475 | 477 |
| 476 // Navigating to a data URL should set a unique origin. This is represented | 478 // Navigating to a data URL should set a unique origin. This is represented |
| 477 // as "null" per RFC 6454. | 479 // as "null" per RFC 6454. |
| 478 EXPECT_EQ(root->child_at(1)->current_origin().Serialize(), "null"); | 480 EXPECT_EQ(root->child_at(1)->current_origin().Serialize(), "null"); |
| 479 } | 481 } |
| 480 | 482 |
| 481 } // namespace content | 483 } // namespace content |
| OLD | NEW |