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

Side by Side Diff: chrome/browser/background/background_contents_service.h

Issue 9146028: Define the public interface for content browser SiteInstance. This interface is implemented by th... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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
« no previous file with comments | « chrome/browser/DEPS ('k') | chrome/browser/background/background_contents_service.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) 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 CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_SERVICE_H_ 5 #ifndef CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_SERVICE_H_
6 #define CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_SERVICE_H_ 6 #define CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 // an empty string if no parent application found (e.g. passed 67 // an empty string if no parent application found (e.g. passed
68 // BackgroundContents has already shut down). 68 // BackgroundContents has already shut down).
69 const string16& GetParentApplicationId(BackgroundContents* contents) const; 69 const string16& GetParentApplicationId(BackgroundContents* contents) const;
70 70
71 // Creates a new BackgroundContents using the passed |site| and 71 // Creates a new BackgroundContents using the passed |site| and
72 // the |route_id| and begins tracking the object internally so it can be 72 // the |route_id| and begins tracking the object internally so it can be
73 // shutdown if the parent application is uninstalled. 73 // shutdown if the parent application is uninstalled.
74 // A BACKGROUND_CONTENTS_OPENED notification will be generated with the passed 74 // A BACKGROUND_CONTENTS_OPENED notification will be generated with the passed
75 // |frame_name| and |application_id| values, using the passed |profile| as the 75 // |frame_name| and |application_id| values, using the passed |profile| as the
76 // Source.. 76 // Source..
77 BackgroundContents* CreateBackgroundContents(SiteInstance* site, 77 BackgroundContents* CreateBackgroundContents(content::SiteInstance* site,
78 int route_id, 78 int route_id,
79 Profile* profile, 79 Profile* profile,
80 const string16& frame_name, 80 const string16& frame_name,
81 const string16& application_id); 81 const string16& application_id);
82 82
83 // Load the manifest-specified background page for the specified hosted app. 83 // Load the manifest-specified background page for the specified hosted app.
84 // If the manifest doesn't specify one, then load the BackgroundContents 84 // If the manifest doesn't specify one, then load the BackgroundContents
85 // registered in the pref. This is typically used to reload a crashed 85 // registered in the pref. This is typically used to reload a crashed
86 // background page. 86 // background page.
87 void LoadBackgroundContentsForExtension(Profile* profile, 87 void LoadBackgroundContentsForExtension(Profile* profile,
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 // applications. 170 // applications.
171 // Key: application id 171 // Key: application id
172 // Value: BackgroundContentsInfo for the BC associated with that application 172 // Value: BackgroundContentsInfo for the BC associated with that application
173 typedef std::map<string16, BackgroundContentsInfo> BackgroundContentsMap; 173 typedef std::map<string16, BackgroundContentsInfo> BackgroundContentsMap;
174 BackgroundContentsMap contents_map_; 174 BackgroundContentsMap contents_map_;
175 175
176 DISALLOW_COPY_AND_ASSIGN(BackgroundContentsService); 176 DISALLOW_COPY_AND_ASSIGN(BackgroundContentsService);
177 }; 177 };
178 178
179 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_SERVICE_H_ 179 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/DEPS ('k') | chrome/browser/background/background_contents_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698