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

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

Issue 790423002: Add the main frame routing ID to WebContentsDelegate, use it in BackgroundContents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: content shell Created 6 years 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 | « no previous file | 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) 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 // Creates a new BackgroundContents using the passed |site| and 103 // Creates a new BackgroundContents using the passed |site| and
104 // the |route_id| and begins tracking the object internally so it can be 104 // the |route_id| and begins tracking the object internally so it can be
105 // shutdown if the parent application is uninstalled. 105 // shutdown if the parent application is uninstalled.
106 // A BACKGROUND_CONTENTS_OPENED notification will be generated with the passed 106 // A BACKGROUND_CONTENTS_OPENED notification will be generated with the passed
107 // |frame_name| and |application_id| values, using the passed |profile| as the 107 // |frame_name| and |application_id| values, using the passed |profile| as the
108 // Source.. 108 // Source..
109 BackgroundContents* CreateBackgroundContents( 109 BackgroundContents* CreateBackgroundContents(
110 content::SiteInstance* site, 110 content::SiteInstance* site,
111 int route_id, 111 int route_id,
112 int main_frame_route_id,
112 Profile* profile, 113 Profile* profile,
113 const base::string16& frame_name, 114 const base::string16& frame_name,
114 const base::string16& application_id, 115 const base::string16& application_id,
115 const std::string& partition_id, 116 const std::string& partition_id,
116 content::SessionStorageNamespace* session_storage_namespace); 117 content::SessionStorageNamespace* session_storage_namespace);
117 118
118 // Load the manifest-specified background page for the specified hosted app. 119 // Load the manifest-specified background page for the specified hosted app.
119 // If the manifest doesn't specify one, then load the BackgroundContents 120 // If the manifest doesn't specify one, then load the BackgroundContents
120 // registered in the pref. This is typically used to reload a crashed 121 // registered in the pref. This is typically used to reload a crashed
121 // background page. 122 // background page.
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 BackgroundContentsMap contents_map_; 236 BackgroundContentsMap contents_map_;
236 237
237 ScopedObserver<extensions::ExtensionRegistry, 238 ScopedObserver<extensions::ExtensionRegistry,
238 extensions::ExtensionRegistryObserver> 239 extensions::ExtensionRegistryObserver>
239 extension_registry_observer_; 240 extension_registry_observer_;
240 241
241 DISALLOW_COPY_AND_ASSIGN(BackgroundContentsService); 242 DISALLOW_COPY_AND_ASSIGN(BackgroundContentsService);
242 }; 243 };
243 244
244 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_SERVICE_H_ 245 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/background/background_contents_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698