Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Side by Side Diff: extensions/browser/process_manager.h

Issue 437503004: Add NaCl support to app_shell (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: (nacl-init) cleanup Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 void DecrementLazyKeepaliveCount(const Extension* extension); 101 void DecrementLazyKeepaliveCount(const Extension* extension);
102 102
103 void IncrementLazyKeepaliveCountForView( 103 void IncrementLazyKeepaliveCountForView(
104 content::RenderViewHost* render_view_host); 104 content::RenderViewHost* render_view_host);
105 105
106 // Keeps a background page alive. Unlike IncrementLazyKeepaliveCount, these 106 // Keeps a background page alive. Unlike IncrementLazyKeepaliveCount, these
107 // impulses will only keep the page alive for a limited amount of time unless 107 // impulses will only keep the page alive for a limited amount of time unless
108 // called regularly. 108 // called regularly.
109 void KeepaliveImpulse(const Extension* extension); 109 void KeepaliveImpulse(const Extension* extension);
110 110
111 // Triggers a keepalive impulse for a plug-in (e.g NaCl).
112 static void OnKeepaliveFromPlugin(int render_process_id,
113 int render_frame_id,
114 const std::string& extension_id);
115
111 // Handles a response to the ShouldSuspend message, used for lazy background 116 // Handles a response to the ShouldSuspend message, used for lazy background
112 // pages. 117 // pages.
113 void OnShouldSuspendAck(const std::string& extension_id, uint64 sequence_id); 118 void OnShouldSuspendAck(const std::string& extension_id, uint64 sequence_id);
114 119
115 // Same as above, for the Suspend message. 120 // Same as above, for the Suspend message.
116 void OnSuspendAck(const std::string& extension_id); 121 void OnSuspendAck(const std::string& extension_id);
117 122
118 // Tracks network requests for a given RenderFrameHost, used to know 123 // Tracks network requests for a given RenderFrameHost, used to know
119 // when network activity is idle for lazy background pages. 124 // when network activity is idle for lazy background pages.
120 void OnNetworkRequestStarted(content::RenderFrameHost* render_frame_host); 125 void OnNetworkRequestStarted(content::RenderFrameHost* render_frame_host);
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 283
279 // Must be last member, see doc on WeakPtrFactory. 284 // Must be last member, see doc on WeakPtrFactory.
280 base::WeakPtrFactory<ProcessManager> weak_ptr_factory_; 285 base::WeakPtrFactory<ProcessManager> weak_ptr_factory_;
281 286
282 DISALLOW_COPY_AND_ASSIGN(ProcessManager); 287 DISALLOW_COPY_AND_ASSIGN(ProcessManager);
283 }; 288 };
284 289
285 } // namespace extensions 290 } // namespace extensions
286 291
287 #endif // EXTENSIONS_BROWSER_PROCESS_MANAGER_H_ 292 #endif // EXTENSIONS_BROWSER_PROCESS_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698