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

Side by Side Diff: chrome/browser/profile.h

Issue 1383001: Hook up extension apps notification permission, take two (Closed)
Patch Set: pre commit Created 10 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
« no previous file with comments | « chrome/browser/notifications/desktop_notification_service.cc ('k') | chrome/browser/profile.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // This class gathers state related to a single user profile. 5 // This class gathers state related to a single user profile.
6 6
7 #ifndef CHROME_BROWSER_PROFILE_H_ 7 #ifndef CHROME_BROWSER_PROFILE_H_
8 #define CHROME_BROWSER_PROFILE_H_ 8 #define CHROME_BROWSER_PROFILE_H_
9 9
10 #include <set> 10 #include <set>
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 virtual URLRequestContextGetter* GetRequestContext() = 0; 282 virtual URLRequestContextGetter* GetRequestContext() = 0;
283 283
284 // Returns the request context for media resources asociated with this 284 // Returns the request context for media resources asociated with this
285 // profile. 285 // profile.
286 virtual URLRequestContextGetter* GetRequestContextForMedia() = 0; 286 virtual URLRequestContextGetter* GetRequestContextForMedia() = 0;
287 287
288 // Returns the request context used for extension-related requests. This 288 // Returns the request context used for extension-related requests. This
289 // is only used for a separate cookie store currently. 289 // is only used for a separate cookie store currently.
290 virtual URLRequestContextGetter* GetRequestContextForExtensions() = 0; 290 virtual URLRequestContextGetter* GetRequestContextForExtensions() = 0;
291 291
292 // Called by the ExtensionsService that lives in this profile. Gives the
293 // profile a chance to react to the load event before the EXTENSION_LOADED
294 // notification has fired. The purpose for handling this event first is to
295 // avoid race conditions by making sure URLRequestContexts learn about new
296 // extensions before anything else needs them to know.
297 virtual void RegisterExtensionWithRequestContexts(Extension* extension) {}
298
299 // Called by the ExtensionsService that lives in this profile. Lets the
300 // profile clean up its RequestContexts once all the listeners to the
301 // EXTENSION_UNLOADED notification have finished running.
302 virtual void UnregisterExtensionWithRequestContexts(Extension* extension) {}
303
292 // Returns the SSLConfigService for this profile. 304 // Returns the SSLConfigService for this profile.
293 virtual net::SSLConfigService* GetSSLConfigService() = 0; 305 virtual net::SSLConfigService* GetSSLConfigService() = 0;
294 306
295 // Returns the Hostname <-> Content settings map for this profile. 307 // Returns the Hostname <-> Content settings map for this profile.
296 virtual HostContentSettingsMap* GetHostContentSettingsMap() = 0; 308 virtual HostContentSettingsMap* GetHostContentSettingsMap() = 0;
297 309
298 // Returns the Hostname <-> Zoom Level map for this profile. 310 // Returns the Hostname <-> Zoom Level map for this profile.
299 virtual HostZoomMap* GetHostZoomMap() = 0; 311 virtual HostZoomMap* GetHostZoomMap() = 0;
300 312
301 // Returns the geolocation settings map for this profile. 313 // Returns the geolocation settings map for this profile.
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 virtual void SetTheme(Extension* extension); 476 virtual void SetTheme(Extension* extension);
465 virtual void SetNativeTheme(); 477 virtual void SetNativeTheme();
466 virtual void ClearTheme(); 478 virtual void ClearTheme();
467 virtual Extension* GetTheme(); 479 virtual Extension* GetTheme();
468 virtual BrowserThemeProvider* GetThemeProvider(); 480 virtual BrowserThemeProvider* GetThemeProvider();
469 virtual ThumbnailStore* GetThumbnailStore(); 481 virtual ThumbnailStore* GetThumbnailStore();
470 virtual bool HasCreatedDownloadManager() const; 482 virtual bool HasCreatedDownloadManager() const;
471 virtual URLRequestContextGetter* GetRequestContext(); 483 virtual URLRequestContextGetter* GetRequestContext();
472 virtual URLRequestContextGetter* GetRequestContextForMedia(); 484 virtual URLRequestContextGetter* GetRequestContextForMedia();
473 virtual URLRequestContextGetter* GetRequestContextForExtensions(); 485 virtual URLRequestContextGetter* GetRequestContextForExtensions();
486 virtual void RegisterExtensionWithRequestContexts(Extension* extension);
487 virtual void UnregisterExtensionWithRequestContexts(Extension* extension);
474 virtual net::SSLConfigService* GetSSLConfigService(); 488 virtual net::SSLConfigService* GetSSLConfigService();
475 virtual HostContentSettingsMap* GetHostContentSettingsMap(); 489 virtual HostContentSettingsMap* GetHostContentSettingsMap();
476 virtual HostZoomMap* GetHostZoomMap(); 490 virtual HostZoomMap* GetHostZoomMap();
477 virtual GeolocationContentSettingsMap* GetGeolocationContentSettingsMap(); 491 virtual GeolocationContentSettingsMap* GetGeolocationContentSettingsMap();
478 virtual Blacklist* GetPrivacyBlacklist(); 492 virtual Blacklist* GetPrivacyBlacklist();
479 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher(); 493 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher();
480 virtual SessionService* GetSessionService(); 494 virtual SessionService* GetSessionService();
481 virtual void ShutdownSessionService(); 495 virtual void ShutdownSessionService();
482 virtual bool HasSessionService() const; 496 virtual bool HasSessionService() const;
483 virtual bool DidLastSessionExitCleanly(); 497 virtual bool DidLastSessionExitCleanly();
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 scoped_refptr<webkit_database::DatabaseTracker> db_tracker_; 625 scoped_refptr<webkit_database::DatabaseTracker> db_tracker_;
612 626
613 #if defined(OS_CHROMEOS) 627 #if defined(OS_CHROMEOS)
614 chromeos::Preferences chromeos_preferences_; 628 chromeos::Preferences chromeos_preferences_;
615 #endif 629 #endif
616 630
617 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); 631 DISALLOW_COPY_AND_ASSIGN(ProfileImpl);
618 }; 632 };
619 633
620 #endif // CHROME_BROWSER_PROFILE_H_ 634 #endif // CHROME_BROWSER_PROFILE_H_
OLDNEW
« no previous file with comments | « chrome/browser/notifications/desktop_notification_service.cc ('k') | chrome/browser/profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698