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

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

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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) 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 159
160 // Get the effective URL for the given actual URL. 160 // Get the effective URL for the given actual URL.
161 static GURL GetEffectiveURL(Profile* profile, const GURL& url); 161 static GURL GetEffectiveURL(Profile* profile, const GURL& url);
162 162
163 // Returns the type of renderer process this instance belongs in, for grouping 163 // Returns the type of renderer process this instance belongs in, for grouping
164 // purposes. 164 // purposes.
165 RenderProcessHost::Type GetRendererType(); 165 RenderProcessHost::Type GetRendererType();
166 166
167 private: 167 private:
168 // NotificationObserver implementation. 168 // NotificationObserver implementation.
169 virtual void Observe(NotificationType type, 169 virtual void Observe(int type,
170 const NotificationSource& source, 170 const NotificationSource& source,
171 const NotificationDetails& details); 171 const NotificationDetails& details);
172 172
173 // The next available SiteInstance ID. 173 // The next available SiteInstance ID.
174 static int32 next_site_instance_id_; 174 static int32 next_site_instance_id_;
175 175
176 // A unique ID for this SiteInstance. 176 // A unique ID for this SiteInstance.
177 int32 id_; 177 int32 id_;
178 178
179 NotificationRegistrar registrar_; 179 NotificationRegistrar registrar_;
(...skipping 19 matching lines...) Expand all
199 // The web site that this SiteInstance is rendering pages for. 199 // The web site that this SiteInstance is rendering pages for.
200 GURL site_; 200 GURL site_;
201 201
202 // Whether SetSite has been called. 202 // Whether SetSite has been called.
203 bool has_site_; 203 bool has_site_;
204 204
205 DISALLOW_COPY_AND_ASSIGN(SiteInstance); 205 DISALLOW_COPY_AND_ASSIGN(SiteInstance);
206 }; 206 };
207 207
208 #endif // CONTENT_BROWSER_RENDERER_HOST_SITE_INSTANCE_H_ 208 #endif // CONTENT_BROWSER_RENDERER_HOST_SITE_INSTANCE_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/resource_dispatcher_host_browsertest.cc ('k') | content/browser/site_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698