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

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

Issue 8336007: Move content_client.h into content/public. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add back a needed include. Created 9 years, 2 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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.h" 5 #include "content/browser/site_instance.h"
6 6
7 #include "content/browser/browsing_instance.h" 7 #include "content/browser/browsing_instance.h"
8 #include "content/browser/content_browser_client.h" 8 #include "content/browser/content_browser_client.h"
9 #include "content/browser/renderer_host/browser_render_process_host.h" 9 #include "content/browser/renderer_host/browser_render_process_host.h"
10 #include "content/browser/webui/web_ui_factory.h" 10 #include "content/browser/webui/web_ui_factory.h"
11 #include "content/common/content_client.h"
12 #include "content/common/notification_service.h" 11 #include "content/common/notification_service.h"
13 #include "content/public/browser/notification_types.h" 12 #include "content/public/browser/notification_types.h"
14 #include "content/public/common/url_constants.h" 13 #include "content/public/common/url_constants.h"
15 #include "net/base/registry_controlled_domain.h" 14 #include "net/base/registry_controlled_domain.h"
16 15
17 static bool IsURLSameAsAnySiteInstance(const GURL& url) { 16 static bool IsURLSameAsAnySiteInstance(const GURL& url) {
18 if (!url.is_valid()) 17 if (!url.is_valid())
19 return false; 18 return false;
20 19
21 // We treat javascript: as the same site as any URL since it is actually 20 // We treat javascript: as the same site as any URL since it is actually
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 } 221 }
223 222
224 void SiteInstance::Observe(int type, 223 void SiteInstance::Observe(int type,
225 const NotificationSource& source, 224 const NotificationSource& source,
226 const NotificationDetails& details) { 225 const NotificationDetails& details) {
227 DCHECK(type == content::NOTIFICATION_RENDERER_PROCESS_TERMINATED); 226 DCHECK(type == content::NOTIFICATION_RENDERER_PROCESS_TERMINATED);
228 RenderProcessHost* rph = Source<RenderProcessHost>(source).ptr(); 227 RenderProcessHost* rph = Source<RenderProcessHost>(source).ptr();
229 if (rph == process_) 228 if (rph == process_)
230 process_ = NULL; 229 process_ = NULL;
231 } 230 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/test_render_view_host.cc ('k') | content/browser/site_instance_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698