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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 public content::NotificationObserver, | 50 public content::NotificationObserver, |
51 public ExtensionRegistryObserver, | 51 public ExtensionRegistryObserver, |
52 public EventPageTracker, | 52 public EventPageTracker, |
53 public content::DevToolsAgentHostObserver { | 53 public content::DevToolsAgentHostObserver { |
54 public: | 54 public: |
55 using ExtensionHostSet = std::set<extensions::ExtensionHost*>; | 55 using ExtensionHostSet = std::set<extensions::ExtensionHost*>; |
56 | 56 |
57 static ProcessManager* Get(content::BrowserContext* context); | 57 static ProcessManager* Get(content::BrowserContext* context); |
58 ~ProcessManager() override; | 58 ~ProcessManager() override; |
59 | 59 |
| 60 // KeyedService support: |
| 61 void Shutdown() override; |
| 62 |
60 void RegisterRenderFrameHost(content::WebContents* web_contents, | 63 void RegisterRenderFrameHost(content::WebContents* web_contents, |
61 content::RenderFrameHost* render_frame_host, | 64 content::RenderFrameHost* render_frame_host, |
62 const Extension* extension); | 65 const Extension* extension); |
63 void UnregisterRenderFrameHost(content::RenderFrameHost* render_frame_host); | 66 void UnregisterRenderFrameHost(content::RenderFrameHost* render_frame_host); |
64 void DidNavigateRenderFrameHost(content::RenderFrameHost* render_frame_host); | 67 void DidNavigateRenderFrameHost(content::RenderFrameHost* render_frame_host); |
65 | 68 |
66 // Returns the SiteInstance that the given URL belongs to. | 69 // Returns the SiteInstance that the given URL belongs to. |
67 // TODO(aa): This only returns correct results for extensions and packaged | 70 // TODO(aa): This only returns correct results for extensions and packaged |
68 // apps, not hosted apps. | 71 // apps, not hosted apps. |
69 virtual scoped_refptr<content::SiteInstance> GetSiteInstanceForURL( | 72 virtual scoped_refptr<content::SiteInstance> GetSiteInstanceForURL( |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 | 341 |
339 // Must be last member, see doc on WeakPtrFactory. | 342 // Must be last member, see doc on WeakPtrFactory. |
340 base::WeakPtrFactory<ProcessManager> weak_ptr_factory_; | 343 base::WeakPtrFactory<ProcessManager> weak_ptr_factory_; |
341 | 344 |
342 DISALLOW_COPY_AND_ASSIGN(ProcessManager); | 345 DISALLOW_COPY_AND_ASSIGN(ProcessManager); |
343 }; | 346 }; |
344 | 347 |
345 } // namespace extensions | 348 } // namespace extensions |
346 | 349 |
347 #endif // EXTENSIONS_BROWSER_PROCESS_MANAGER_H_ | 350 #endif // EXTENSIONS_BROWSER_PROCESS_MANAGER_H_ |
OLD | NEW |