Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Side by Side Diff: content/test/content_browser_test_utils_internal.cc

Issue 1797363002: "Top Document Isolation" mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Two new browsertests. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "content/test/content_browser_test_utils_internal.h" 5 #include "content/test/content_browser_test_utils_internal.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <map> 10 #include <map>
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 const char* prefix = "Where "; 209 const char* prefix = "Where ";
210 for (auto& legend_entry : legend) { 210 for (auto& legend_entry : legend) {
211 SiteInstanceImpl* site_instance = 211 SiteInstanceImpl* site_instance =
212 static_cast<SiteInstanceImpl*>(legend_entry.second); 212 static_cast<SiteInstanceImpl*>(legend_entry.second);
213 base::StringAppendF(&result, "\n%s%s = %s", prefix, 213 base::StringAppendF(&result, "\n%s%s = %s", prefix,
214 legend_entry.first.c_str(), 214 legend_entry.first.c_str(),
215 site_instance->GetSiteURL().spec().c_str()); 215 site_instance->GetSiteURL().spec().c_str());
216 // Highlight some exceptionable conditions. 216 // Highlight some exceptionable conditions.
217 if (site_instance->active_frame_count() == 0) 217 if (site_instance->active_frame_count() == 0)
218 result.append(" (active_frame_count == 0)"); 218 result.append(" (active_frame_count == 0)");
219 if (site_instance->is_for_third_party_subframes())
220 result.append(" (3rd party)");
219 if (!site_instance->GetProcess()->HasConnection()) 221 if (!site_instance->GetProcess()->HasConnection())
220 result.append(" (no process)"); 222 result.append(" (no process)");
221 prefix = " "; 223 prefix = " ";
222 } 224 }
223 return result; 225 return result;
224 } 226 }
225 227
226 std::string FrameTreeVisualizer::GetName(SiteInstance* site_instance) { 228 std::string FrameTreeVisualizer::GetName(SiteInstance* site_instance) {
227 // Indices into the vector correspond to letters of the alphabet. 229 // Indices into the vector correspond to letters of the alphabet.
228 size_t index = 230 size_t index =
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 content::ResourceContext* resource_context, 321 content::ResourceContext* resource_context,
320 content::AppCacheService* appcache_service, 322 content::AppCacheService* appcache_service,
321 ResourceType resource_type, 323 ResourceType resource_type,
322 ScopedVector<content::ResourceThrottle>* throttles) { 324 ScopedVector<content::ResourceThrottle>* throttles) {
323 DCHECK_CURRENTLY_ON(content::BrowserThread::IO); 325 DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
324 if (request->url() == url_) 326 if (request->url() == url_)
325 throttles->push_back(new HttpRequestStallThrottle); 327 throttles->push_back(new HttpRequestStallThrottle);
326 } 328 }
327 329
328 } // namespace content 330 } // namespace content
OLDNEW
« content/common/site_isolation_policy.h ('K') | « content/public/common/content_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698