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

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

Issue 6693054: Get rid of extensions dependency from content\browser. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_SITE_INSTANCE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_SITE_INSTANCE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_SITE_INSTANCE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_SITE_INSTANCE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "content/browser/renderer_host/render_process_host.h" 9 #include "content/browser/renderer_host/render_process_host.h"
10 #include "content/common/notification_observer.h" 10 #include "content/common/notification_observer.h"
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 friend class BrowsingInstance; 142 friend class BrowsingInstance;
143 143
144 // Virtual to allow tests to extend it. 144 // Virtual to allow tests to extend it.
145 virtual ~SiteInstance(); 145 virtual ~SiteInstance();
146 146
147 // Create a new SiteInstance. Protected to give access to BrowsingInstance 147 // Create a new SiteInstance. Protected to give access to BrowsingInstance
148 // and tests; most callers should use CreateSiteInstance or 148 // and tests; most callers should use CreateSiteInstance or
149 // GetRelatedSiteInstance instead. 149 // GetRelatedSiteInstance instead.
150 explicit SiteInstance(BrowsingInstance* browsing_instance); 150 explicit SiteInstance(BrowsingInstance* browsing_instance);
151 151
152 // Get the effective URL for the given actual URL. If the URL is part of an 152 // Get the effective URL for the given actual URL.
153 // installed app, the effective URL is an extension URL with the ID of that
154 // extension as the host. This has the effect of grouping apps together in
155 // a common SiteInstance.
156 static GURL GetEffectiveURL(Profile* profile, const GURL& url); 153 static GURL GetEffectiveURL(Profile* profile, const GURL& url);
157 154
158 // Returns the type of renderer process this instance belongs in, for grouping 155 // Returns the type of renderer process this instance belongs in, for grouping
159 // purposes. 156 // purposes.
160 RenderProcessHost::Type GetRendererType(); 157 RenderProcessHost::Type GetRendererType();
161 158
162 private: 159 private:
163 // NotificationObserver implementation. 160 // NotificationObserver implementation.
164 virtual void Observe(NotificationType type, 161 virtual void Observe(NotificationType type,
165 const NotificationSource& source, 162 const NotificationSource& source,
(...skipping 22 matching lines...) Expand all
188 // The web site that this SiteInstance is rendering pages for. 185 // The web site that this SiteInstance is rendering pages for.
189 GURL site_; 186 GURL site_;
190 187
191 // Whether SetSite has been called. 188 // Whether SetSite has been called.
192 bool has_site_; 189 bool has_site_;
193 190
194 DISALLOW_COPY_AND_ASSIGN(SiteInstance); 191 DISALLOW_COPY_AND_ASSIGN(SiteInstance);
195 }; 192 };
196 193
197 #endif // CONTENT_BROWSER_RENDERER_HOST_SITE_INSTANCE_H_ 194 #endif // CONTENT_BROWSER_RENDERER_HOST_SITE_INSTANCE_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/test_render_view_host.cc ('k') | content/browser/site_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698