OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
Avi (use Gerrit)
2013/06/20 20:34:27
New files don't get "(c)", use current year.
| |
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_ | |
OLD | NEW |