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 <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 | 124 |
125 // Handles a response to the ShouldSuspend message, used for lazy background | 125 // Handles a response to the ShouldSuspend message, used for lazy background |
126 // pages. | 126 // pages. |
127 void OnShouldSuspendAck(const std::string& extension_id, uint64 sequence_id); | 127 void OnShouldSuspendAck(const std::string& extension_id, uint64 sequence_id); |
128 | 128 |
129 // Same as above, for the Suspend message. | 129 // Same as above, for the Suspend message. |
130 void OnSuspendAck(const std::string& extension_id); | 130 void OnSuspendAck(const std::string& extension_id); |
131 | 131 |
132 // Tracks network requests for a given RenderFrameHost, used to know | 132 // Tracks network requests for a given RenderFrameHost, used to know |
133 // when network activity is idle for lazy background pages. | 133 // when network activity is idle for lazy background pages. |
134 void OnNetworkRequestStarted(content::RenderFrameHost* render_frame_host); | 134 void OnNetworkRequestStarted(content::RenderFrameHost* render_frame_host, |
135 void OnNetworkRequestDone(content::RenderFrameHost* render_frame_host); | 135 uint64 request_id); |
| 136 void OnNetworkRequestDone(content::RenderFrameHost* render_frame_host, |
| 137 uint64 request_id); |
136 | 138 |
137 // Prevents |extension|'s background page from being closed and sends the | 139 // Prevents |extension|'s background page from being closed and sends the |
138 // onSuspendCanceled() event to it. | 140 // onSuspendCanceled() event to it. |
139 void CancelSuspend(const Extension* extension); | 141 void CancelSuspend(const Extension* extension); |
140 | 142 |
141 // Creates background hosts if the embedder is ready and they are not already | 143 // Creates background hosts if the embedder is ready and they are not already |
142 // loaded. | 144 // loaded. |
143 void MaybeCreateStartupBackgroundHosts(); | 145 void MaybeCreateStartupBackgroundHosts(); |
144 | 146 |
145 // Called on shutdown to close our extension hosts. | 147 // Called on shutdown to close our extension hosts. |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 | 299 |
298 // Must be last member, see doc on WeakPtrFactory. | 300 // Must be last member, see doc on WeakPtrFactory. |
299 base::WeakPtrFactory<ProcessManager> weak_ptr_factory_; | 301 base::WeakPtrFactory<ProcessManager> weak_ptr_factory_; |
300 | 302 |
301 DISALLOW_COPY_AND_ASSIGN(ProcessManager); | 303 DISALLOW_COPY_AND_ASSIGN(ProcessManager); |
302 }; | 304 }; |
303 | 305 |
304 } // namespace extensions | 306 } // namespace extensions |
305 | 307 |
306 #endif // EXTENSIONS_BROWSER_PROCESS_MANAGER_H_ | 308 #endif // EXTENSIONS_BROWSER_PROCESS_MANAGER_H_ |
OLD | NEW |