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

Side by Side Diff: content/browser/ppapi_plugin_process_host.h

Issue 929483004: Plugin Power Saver: Throttled Plugins should block TCPSocket reads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
OLDNEW
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 CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ 5 #ifndef CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_
6 #define CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ 6 #define CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 // the plugin. 83 // the plugin.
84 static void DidCreateOutOfProcessInstance( 84 static void DidCreateOutOfProcessInstance(
85 int plugin_process_id, 85 int plugin_process_id,
86 int32 pp_instance, 86 int32 pp_instance,
87 const PepperRendererInstanceData& instance_data); 87 const PepperRendererInstanceData& instance_data);
88 88
89 // The opposite of DIdCreate... above. 89 // The opposite of DIdCreate... above.
90 static void DidDeleteOutOfProcessInstance(int plugin_process_id, 90 static void DidDeleteOutOfProcessInstance(int plugin_process_id,
91 int32 pp_instance); 91 int32 pp_instance);
92 92
93 // Notification that a Plugin instance has been throttled or unthrottled.
94 static void OnPluginInstanceThrottleStateChange(int plugin_process_id,
95 int32 pp_instance,
96 bool is_throttled);
97
93 // Returns the instances that match the specified process name. 98 // Returns the instances that match the specified process name.
94 // It can only be called on the IO thread. 99 // It can only be called on the IO thread.
95 static void FindByName(const base::string16& name, 100 static void FindByName(const base::string16& name,
96 std::vector<PpapiPluginProcessHost*>* hosts); 101 std::vector<PpapiPluginProcessHost*>* hosts);
97 102
98 // IPC::Sender implementation: 103 // IPC::Sender implementation:
99 bool Send(IPC::Message* message) override; 104 bool Send(IPC::Message* message) override;
100 105
101 // Opens a new channel to the plugin. The client will be notified when the 106 // Opens a new channel to the plugin. The client will be notified when the
102 // channel is ready or if there's an error. 107 // channel is ready or if there's an error.
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 public: 188 public:
184 PpapiBrokerProcessHostIterator() 189 PpapiBrokerProcessHostIterator()
185 : BrowserChildProcessHostTypeIterator< 190 : BrowserChildProcessHostTypeIterator<
186 PpapiPluginProcessHost>(PROCESS_TYPE_PPAPI_BROKER) {} 191 PpapiPluginProcessHost>(PROCESS_TYPE_PPAPI_BROKER) {}
187 }; 192 };
188 193
189 } // namespace content 194 } // namespace content
190 195
191 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_ 196 #endif // CONTENT_BROWSER_PPAPI_PLUGIN_PROCESS_HOST_H_
192 197
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698