| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 BackgroundContents* contents) const; | 110 BackgroundContents* contents) const; |
| 111 | 111 |
| 112 // Creates a new BackgroundContents using the passed |site| and | 112 // Creates a new BackgroundContents using the passed |site| and |
| 113 // the |route_id| and begins tracking the object internally so it can be | 113 // the |route_id| and begins tracking the object internally so it can be |
| 114 // shutdown if the parent application is uninstalled. | 114 // shutdown if the parent application is uninstalled. |
| 115 // A BACKGROUND_CONTENTS_OPENED notification will be generated with the passed | 115 // A BACKGROUND_CONTENTS_OPENED notification will be generated with the passed |
| 116 // |frame_name| and |application_id| values, using the passed |profile| as the | 116 // |frame_name| and |application_id| values, using the passed |profile| as the |
| 117 // Source.. | 117 // Source.. |
| 118 BackgroundContents* CreateBackgroundContents( | 118 BackgroundContents* CreateBackgroundContents( |
| 119 scoped_refptr<content::SiteInstance> site, | 119 scoped_refptr<content::SiteInstance> site, |
| 120 content::RenderFrameHost* opener, |
| 120 int32_t route_id, | 121 int32_t route_id, |
| 121 int32_t main_frame_route_id, | 122 int32_t main_frame_route_id, |
| 122 int32_t main_frame_widget_route_id, | 123 int32_t main_frame_widget_route_id, |
| 123 Profile* profile, | 124 Profile* profile, |
| 124 const std::string& frame_name, | 125 const std::string& frame_name, |
| 125 const base::string16& application_id, | 126 const base::string16& application_id, |
| 126 const std::string& partition_id, | 127 const std::string& partition_id, |
| 127 content::SessionStorageNamespace* session_storage_namespace); | 128 content::SessionStorageNamespace* session_storage_namespace); |
| 128 | 129 |
| 129 // Load the manifest-specified background page for the specified hosted app. | 130 // Load the manifest-specified background page for the specified hosted app. |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 ScopedObserver<extensions::ExtensionRegistry, | 257 ScopedObserver<extensions::ExtensionRegistry, |
| 257 extensions::ExtensionRegistryObserver> | 258 extensions::ExtensionRegistryObserver> |
| 258 extension_registry_observer_; | 259 extension_registry_observer_; |
| 259 | 260 |
| 260 base::WeakPtrFactory<BackgroundContentsService> weak_ptr_factory_; | 261 base::WeakPtrFactory<BackgroundContentsService> weak_ptr_factory_; |
| 261 | 262 |
| 262 DISALLOW_COPY_AND_ASSIGN(BackgroundContentsService); | 263 DISALLOW_COPY_AND_ASSIGN(BackgroundContentsService); |
| 263 }; | 264 }; |
| 264 | 265 |
| 265 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_SERVICE_H_ | 266 #endif // CHROME_BROWSER_BACKGROUND_BACKGROUND_CONTENTS_SERVICE_H_ |
| OLD | NEW |