| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, |
| 117 Profile* profile, | 118 Profile* profile, |
| 118 const std::string& frame_name, | 119 const std::string& frame_name, |
| 119 const base::string16& application_id, | 120 const base::string16& application_id, |
| 120 const std::string& partition_id, | 121 const std::string& partition_id, |
| 121 content::SessionStorageNamespace* session_storage_namespace); | 122 content::SessionStorageNamespace* session_storage_namespace); |
| 122 | 123 |
| 123 // Load the manifest-specified background page for the specified hosted app. | 124 // Load the manifest-specified background page for the specified hosted app. |
| 124 // If the manifest doesn't specify one, then load the BackgroundContents | 125 // If the manifest doesn't specify one, then load the BackgroundContents |
| 125 // registered in the pref. This is typically used to reload a crashed | 126 // registered in the pref. This is typically used to reload a crashed |
| 126 // background page. | 127 // background page. |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 BackgroundContentsMap contents_map_; | 241 BackgroundContentsMap contents_map_; |
| 241 | 242 |
| 242 ScopedObserver<extensions::ExtensionRegistry, | 243 ScopedObserver<extensions::ExtensionRegistry, |
| 243 extensions::ExtensionRegistryObserver> | 244 extensions::ExtensionRegistryObserver> |
| 244 extension_registry_observer_; | 245 extension_registry_observer_; |
| 245 | 246 |
| 246 DISALLOW_COPY_AND_ASSIGN(BackgroundContentsService); | 247 DISALLOW_COPY_AND_ASSIGN(BackgroundContentsService); |
| 247 }; | 248 }; |
| 248 | 249 |
| 249 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_SERVICE_H_ | 250 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_SERVICE_H_ |
| OLD | NEW |