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

Side by Side Diff: content/browser/site_instance_impl.cc

Issue 10796033: Move files related to registry-controlled domains into a new net/base/registry_controlled_domains/ … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Update checkout Created 8 years, 5 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 | Annotate | Revision Log
OLDNEW
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 #include "content/browser/site_instance_impl.h" 5 #include "content/browser/site_instance_impl.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "content/browser/browsing_instance.h" 8 #include "content/browser/browsing_instance.h"
9 #include "content/browser/child_process_security_policy_impl.h" 9 #include "content/browser/child_process_security_policy_impl.h"
10 #include "content/browser/renderer_host/render_process_host_impl.h" 10 #include "content/browser/renderer_host/render_process_host_impl.h"
11 #include "content/public/browser/content_browser_client.h" 11 #include "content/public/browser/content_browser_client.h"
12 #include "content/public/browser/notification_service.h" 12 #include "content/public/browser/notification_service.h"
13 #include "content/public/browser/notification_types.h" 13 #include "content/public/browser/notification_types.h"
14 #include "content/public/browser/render_process_host_factory.h" 14 #include "content/public/browser/render_process_host_factory.h"
15 #include "content/public/browser/web_ui_controller_factory.h" 15 #include "content/public/browser/web_ui_controller_factory.h"
16 #include "content/public/common/content_switches.h" 16 #include "content/public/common/content_switches.h"
17 #include "content/public/common/url_constants.h" 17 #include "content/public/common/url_constants.h"
18 #include "net/base/registry_controlled_domain.h" 18 #include "net/base/registry_controlled_domains/registry_controlled_domain.h"
19 19
20 using content::RenderProcessHost; 20 using content::RenderProcessHost;
21 using content::RenderProcessHostImpl; 21 using content::RenderProcessHostImpl;
22 using content::SiteInstance; 22 using content::SiteInstance;
23 using content::WebUIControllerFactory; 23 using content::WebUIControllerFactory;
24 24
25 static bool IsURLSameAsAnySiteInstance(const GURL& url) { 25 static bool IsURLSameAsAnySiteInstance(const GURL& url) {
26 if (!url.is_valid()) 26 if (!url.is_valid())
27 return false; 27 return false;
28 28
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 321
322 void SiteInstanceImpl::LockToOrigin() { 322 void SiteInstanceImpl::LockToOrigin() {
323 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 323 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
324 if (command_line.HasSwitch(switches::kEnableStrictSiteIsolation)) { 324 if (command_line.HasSwitch(switches::kEnableStrictSiteIsolation)) {
325 ChildProcessSecurityPolicyImpl* policy = 325 ChildProcessSecurityPolicyImpl* policy =
326 ChildProcessSecurityPolicyImpl::GetInstance(); 326 ChildProcessSecurityPolicyImpl::GetInstance();
327 policy->LockToOrigin(process_->GetID(), site_); 327 policy->LockToOrigin(process_->GetID(), site_);
328 } 328 }
329 } 329 }
330 330
OLDNEW
« no previous file with comments | « content/browser/renderer_host/resource_dispatcher_host_impl.cc ('k') | content/browser/worker_host/worker_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698