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

Side by Side Diff: content/renderer/render_process_visibility_manager.h

Issue 17355004: Apply artificial memory pressure when backgrounded. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 6 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/content_renderer.gypi ('k') | content/renderer/render_process_visibility_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_RENDERER_RENDER_PROCESS_VISIBILITY_MANAGER_H_
6 #define CONTENT_RENDERER_RENDER_PROCESS_VISIBILITY_MANAGER_H_
7
8 #include "base/memory/singleton.h"
9 #include "content/common/content_export.h"
10
11 namespace content {
12
13 class CONTENT_EXPORT RenderProcessVisibilityManager {
14 public:
15 static RenderProcessVisibilityManager* GetInstance();
16
17 void WidgetVisibilityChanged(bool visible);
18
19 private:
20 friend struct DefaultSingletonTraits<RenderProcessVisibilityManager>;
21
22 RenderProcessVisibilityManager();
23 ~RenderProcessVisibilityManager();
24
25 int num_visible_render_widgets_;
26
27 DISALLOW_COPY_AND_ASSIGN(RenderProcessVisibilityManager);
28 };
29
30 } // namespace content
31
32 #endif // CONTENT_RENDERER_RENDER_PROCESS_VISIBILITY_MANAGER_H_
OLDNEW
« no previous file with comments | « content/content_renderer.gypi ('k') | content/renderer/render_process_visibility_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698