| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 EXTENSIONS_BROWSER_PROCESS_MANAGER_H_ | 5 #ifndef EXTENSIONS_BROWSER_PROCESS_MANAGER_H_ |
| 6 #define EXTENSIONS_BROWSER_PROCESS_MANAGER_H_ | 6 #define EXTENSIONS_BROWSER_PROCESS_MANAGER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 // content::NotificationObserver: | 204 // content::NotificationObserver: |
| 205 void Observe(int type, | 205 void Observe(int type, |
| 206 const content::NotificationSource& source, | 206 const content::NotificationSource& source, |
| 207 const content::NotificationDetails& details) override; | 207 const content::NotificationDetails& details) override; |
| 208 | 208 |
| 209 // ExtensionRegistryObserver: | 209 // ExtensionRegistryObserver: |
| 210 void OnExtensionLoaded(content::BrowserContext* browser_context, | 210 void OnExtensionLoaded(content::BrowserContext* browser_context, |
| 211 const Extension* extension) override; | 211 const Extension* extension) override; |
| 212 void OnExtensionUnloaded(content::BrowserContext* browser_context, | 212 void OnExtensionUnloaded(content::BrowserContext* browser_context, |
| 213 const Extension* extension, | 213 const Extension* extension, |
| 214 UnloadedExtensionInfo::Reason reason) override; | 214 UnloadedExtensionReason reason) override; |
| 215 | 215 |
| 216 // Extra information we keep for each extension's background page. | 216 // Extra information we keep for each extension's background page. |
| 217 struct BackgroundPageData; | 217 struct BackgroundPageData; |
| 218 struct ExtensionRenderFrameData; | 218 struct ExtensionRenderFrameData; |
| 219 using BackgroundPageDataMap = std::map<ExtensionId, BackgroundPageData>; | 219 using BackgroundPageDataMap = std::map<ExtensionId, BackgroundPageData>; |
| 220 using ExtensionRenderFrames = | 220 using ExtensionRenderFrames = |
| 221 std::map<content::RenderFrameHost*, ExtensionRenderFrameData>; | 221 std::map<content::RenderFrameHost*, ExtensionRenderFrameData>; |
| 222 | 222 |
| 223 // Load all background pages once the profile data is ready and the pages | 223 // Load all background pages once the profile data is ready and the pages |
| 224 // should be loaded. | 224 // should be loaded. |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 | 317 |
| 318 // Must be last member, see doc on WeakPtrFactory. | 318 // Must be last member, see doc on WeakPtrFactory. |
| 319 base::WeakPtrFactory<ProcessManager> weak_ptr_factory_; | 319 base::WeakPtrFactory<ProcessManager> weak_ptr_factory_; |
| 320 | 320 |
| 321 DISALLOW_COPY_AND_ASSIGN(ProcessManager); | 321 DISALLOW_COPY_AND_ASSIGN(ProcessManager); |
| 322 }; | 322 }; |
| 323 | 323 |
| 324 } // namespace extensions | 324 } // namespace extensions |
| 325 | 325 |
| 326 #endif // EXTENSIONS_BROWSER_PROCESS_MANAGER_H_ | 326 #endif // EXTENSIONS_BROWSER_PROCESS_MANAGER_H_ |
| OLD | NEW |