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

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

Issue 11419307: Garbage Collect the Storage directory on next profile start after an extension uninstall. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged Created 8 years 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 #ifndef CONTENT_BROWSER_SITE_INSTANCE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_SITE_INSTANCE_IMPL_H_
6 #define CONTENT_BROWSER_SITE_INSTANCE_IMPL_H_ 6 #define CONTENT_BROWSER_SITE_INSTANCE_IMPL_H_
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/public/browser/notification_observer.h" 10 #include "content/public/browser/notification_observer.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 // Sets the factory used to create new RenderProcessHosts. This will also be 47 // Sets the factory used to create new RenderProcessHosts. This will also be
48 // passed on to SiteInstances spawned by this one. 48 // passed on to SiteInstances spawned by this one.
49 // The factory must outlive the SiteInstance; ownership is not transferred. It 49 // The factory must outlive the SiteInstance; ownership is not transferred. It
50 // may be NULL, in which case the default BrowserRenderProcessHost will be 50 // may be NULL, in which case the default BrowserRenderProcessHost will be
51 // created (this is the behavior if you don't call this function). 51 // created (this is the behavior if you don't call this function).
52 void set_render_process_host_factory(RenderProcessHostFactory* rph_factory) { 52 void set_render_process_host_factory(RenderProcessHostFactory* rph_factory) {
53 render_process_host_factory_ = rph_factory; 53 render_process_host_factory_ = rph_factory;
54 } 54 }
55 55
56 // Returns the site for the given URL, which includes only the scheme and
57 // registered domain. Returns an empty GURL if the URL has no host.
58 static GURL GetSiteForURL(BrowserContext* context, const GURL& url);
59
60 protected: 56 protected:
61 friend class BrowsingInstance; 57 friend class BrowsingInstance;
62 friend class SiteInstance; 58 friend class SiteInstance;
63 59
64 // Virtual to allow tests to extend it. 60 // Virtual to allow tests to extend it.
65 virtual ~SiteInstanceImpl(); 61 virtual ~SiteInstanceImpl();
66 62
67 // Create a new SiteInstance. Protected to give access to BrowsingInstance 63 // Create a new SiteInstance. Protected to give access to BrowsingInstance
68 // and tests; most callers should use Create or GetRelatedSiteInstance 64 // and tests; most callers should use Create or GetRelatedSiteInstance
69 // instead. 65 // instead.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 104
109 // Whether SetSite has been called. 105 // Whether SetSite has been called.
110 bool has_site_; 106 bool has_site_;
111 107
112 DISALLOW_COPY_AND_ASSIGN(SiteInstanceImpl); 108 DISALLOW_COPY_AND_ASSIGN(SiteInstanceImpl);
113 }; 109 };
114 110
115 } // namespace content 111 } // namespace content
116 112
117 #endif // CONTENT_BROWSER_SITE_INSTANCE_IMPL_H_ 113 #endif // CONTENT_BROWSER_SITE_INSTANCE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698