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

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

Issue 1303773002: Give the main frame a RenderWidget. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: plumb through surface ID *and* widget surface ID for window.open Created 5 years, 3 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
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 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 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 const base::string16& GetParentApplicationId(BackgroundContents* contents) con st; 105 const base::string16& GetParentApplicationId(BackgroundContents* contents) con st;
106 106
107 // Creates a new BackgroundContents using the passed |site| and 107 // Creates a new BackgroundContents using the passed |site| and
108 // the |route_id| and begins tracking the object internally so it can be 108 // the |route_id| and begins tracking the object internally so it can be
109 // shutdown if the parent application is uninstalled. 109 // shutdown if the parent application is uninstalled.
110 // A BACKGROUND_CONTENTS_OPENED notification will be generated with the passed 110 // A BACKGROUND_CONTENTS_OPENED notification will be generated with the passed
111 // |frame_name| and |application_id| values, using the passed |profile| as the 111 // |frame_name| and |application_id| values, using the passed |profile| as the
112 // Source.. 112 // Source..
113 BackgroundContents* CreateBackgroundContents( 113 BackgroundContents* CreateBackgroundContents(
114 content::SiteInstance* site, 114 content::SiteInstance* site,
115 int route_id, 115 int32 route_id,
116 int main_frame_route_id, 116 int32 main_frame_route_id,
117 int32 main_frame_widget_route_id,
118 int32 surface_id,
117 Profile* profile, 119 Profile* profile,
118 const std::string& frame_name, 120 const std::string& frame_name,
119 const base::string16& application_id, 121 const base::string16& application_id,
120 const std::string& partition_id, 122 const std::string& partition_id,
121 content::SessionStorageNamespace* session_storage_namespace); 123 content::SessionStorageNamespace* session_storage_namespace);
122 124
123 // Load the manifest-specified background page for the specified hosted app. 125 // Load the manifest-specified background page for the specified hosted app.
124 // If the manifest doesn't specify one, then load the BackgroundContents 126 // If the manifest doesn't specify one, then load the BackgroundContents
125 // registered in the pref. This is typically used to reload a crashed 127 // registered in the pref. This is typically used to reload a crashed
126 // background page. 128 // background page.
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 BackgroundContentsMap contents_map_; 242 BackgroundContentsMap contents_map_;
241 243
242 ScopedObserver<extensions::ExtensionRegistry, 244 ScopedObserver<extensions::ExtensionRegistry,
243 extensions::ExtensionRegistryObserver> 245 extensions::ExtensionRegistryObserver>
244 extension_registry_observer_; 246 extension_registry_observer_;
245 247
246 DISALLOW_COPY_AND_ASSIGN(BackgroundContentsService); 248 DISALLOW_COPY_AND_ASSIGN(BackgroundContentsService);
247 }; 249 };
248 250
249 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_SERVICE_H_ 251 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698