| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/stl_util-inl.h" |
| 5 #include "base/string16.h" | 6 #include "base/string16.h" |
| 6 #include "chrome/browser/browsing_instance.h" | 7 #include "chrome/browser/browsing_instance.h" |
| 7 #include "chrome/browser/child_process_security_policy.h" | 8 #include "chrome/browser/child_process_security_policy.h" |
| 8 #include "chrome/browser/renderer_host/browser_render_process_host.h" | 9 #include "chrome/browser/renderer_host/browser_render_process_host.h" |
| 9 #include "chrome/browser/renderer_host/render_view_host.h" | 10 #include "chrome/browser/renderer_host/render_view_host.h" |
| 10 #include "chrome/browser/renderer_host/test/test_render_view_host.h" | 11 #include "chrome/browser/renderer_host/test/test_render_view_host.h" |
| 11 #include "chrome/browser/tab_contents/navigation_entry.h" | 12 #include "chrome/browser/tab_contents/navigation_entry.h" |
| 12 #include "chrome/browser/tab_contents/tab_contents.h" | 13 #include "chrome/browser/tab_contents/tab_contents.h" |
| 13 #include "chrome/common/chrome_constants.h" | 14 #include "chrome/common/chrome_constants.h" |
| 14 #include "chrome/common/url_constants.h" | 15 #include "chrome/common/url_constants.h" |
| (...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 GURL("chrome-extension://baz/bar"))); | 519 GURL("chrome-extension://baz/bar"))); |
| 519 EXPECT_EQ(s5a, s5b); | 520 EXPECT_EQ(s5a, s5b); |
| 520 | 521 |
| 521 // The derived profiles with the different sites. | 522 // The derived profiles with the different sites. |
| 522 scoped_refptr<SiteInstance> s6a(instance1->GetSiteInstanceForURL( | 523 scoped_refptr<SiteInstance> s6a(instance1->GetSiteInstanceForURL( |
| 523 GURL("chrome-extension://baz/bar"))); | 524 GURL("chrome-extension://baz/bar"))); |
| 524 scoped_refptr<SiteInstance> s6b(instance3->GetSiteInstanceForURL( | 525 scoped_refptr<SiteInstance> s6b(instance3->GetSiteInstanceForURL( |
| 525 GURL("chrome-extension://foo/boo"))); | 526 GURL("chrome-extension://foo/boo"))); |
| 526 EXPECT_NE(s6a, s6b); | 527 EXPECT_NE(s6a, s6b); |
| 527 } | 528 } |
| OLD | NEW |