diff options
author | atwilson@chromium.org <atwilson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-24 21:04:19 +0000 |
---|---|---|
committer | atwilson@chromium.org <atwilson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-24 21:04:19 +0000 |
commit | 1e0fe282a7f14796d7e17cd8ea40733309088583 (patch) | |
tree | 9bf06e5d50b948e785ce8e718ce6b6f28dc610ad /chrome/browser/background_contents_service.h | |
parent | d8df92dd0e0240cb4ed2bba9aaa5373f6169ae57 (diff) | |
download | chromium_src-1e0fe282a7f14796d7e17cd8ea40733309088583.zip chromium_src-1e0fe282a7f14796d7e17cd8ea40733309088583.tar.gz chromium_src-1e0fe282a7f14796d7e17cd8ea40733309088583.tar.bz2 |
Create background contents on startup.
Implement BackgroundContentsService::CreateBackgroundContents() to automatically relaunch registered BackgroundContents when the browser starts.
Review URL: http://codereview.chromium.org/2862026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50770 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/background_contents_service.h')
-rw-r--r-- | chrome/browser/background_contents_service.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/background_contents_service.h b/chrome/browser/background_contents_service.h index d9e9e67..48a9a3c 100644 --- a/chrome/browser/background_contents_service.h +++ b/chrome/browser/background_contents_service.h @@ -51,12 +51,13 @@ class BackgroundContentsService : private NotificationObserver { const NotificationDetails& details); // Loads all registered BackgroundContents at startup. - void LoadBackgroundContentsFromPrefs(); + void LoadBackgroundContentsFromPrefs(Profile* profile); // Creates a single BackgroundContents associated with the specified |appid|. // The BackgroundContents frame will be given the name specified by // |frame_name| and navigated to the passed URL. - void CreateBackgroundContents(const GURL& url, + void CreateBackgroundContents(Profile* profile, + const GURL& url, const string16& frame_name, const string16& appid); |