| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |