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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 465363003: ResourceScheduler get visual signal from RenderViewHostImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Do not throttle when should not 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
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 virtual void Shutdown(); 200 virtual void Shutdown();
201 201
202 // IPC::Listener 202 // IPC::Listener
203 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 203 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
204 204
205 // Sends a message to the corresponding object in the renderer. 205 // Sends a message to the corresponding object in the renderer.
206 virtual bool Send(IPC::Message* msg) OVERRIDE; 206 virtual bool Send(IPC::Message* msg) OVERRIDE;
207 207
208 // Called to notify the RenderWidget that it has been hidden or restored from 208 // Called to notify the RenderWidget that it has been hidden or restored from
209 // having been hidden. 209 // having been hidden.
210 void WasHidden(); 210 virtual void WasHidden();
211 void WasShown(const ui::LatencyInfo& latency_info); 211 virtual void WasShown(const ui::LatencyInfo& latency_info);
212 212
213 // Returns true if the RenderWidget is hidden. 213 // Returns true if the RenderWidget is hidden.
214 bool is_hidden() const { return is_hidden_; } 214 bool is_hidden() const { return is_hidden_; }
215 215
216 // Called to notify the RenderWidget that its associated native window 216 // Called to notify the RenderWidget that its associated native window
217 // got/lost focused. 217 // got/lost focused.
218 virtual void GotFocus(); 218 virtual void GotFocus();
219 virtual void LostCapture(); 219 virtual void LostCapture();
220 220
221 // Called to notify the RenderWidget that it has lost the mouse lock. 221 // Called to notify the RenderWidget that it has lost the mouse lock.
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
844 typedef std::map<int, 844 typedef std::map<int,
845 base::Callback<void(const unsigned char*, size_t)> > PendingSnapshotMap; 845 base::Callback<void(const unsigned char*, size_t)> > PendingSnapshotMap;
846 PendingSnapshotMap pending_browser_snapshots_; 846 PendingSnapshotMap pending_browser_snapshots_;
847 847
848 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 848 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
849 }; 849 };
850 850
851 } // namespace content 851 } // namespace content
852 852
853 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 853 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698