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

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

Issue 15650016: [Not for review] Discardable memory emulation (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
OLDNEW
(Empty)
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
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

Powered by Google App Engine
This is Rietveld 408576698