OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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_DELEGATED_FRAME_EVICTOR_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_EVICTOR_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_EVICTOR_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_EVICTOR_H_ |
7 | 7 |
8 #include "content/browser/renderer_host/renderer_frame_manager.h" | 8 #include "content/browser/renderer_host/renderer_frame_manager.h" |
9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
10 | 10 |
(...skipping 17 matching lines...) Expand all Loading... |
28 void LockFrame(); | 28 void LockFrame(); |
29 void UnlockFrame(); | 29 void UnlockFrame(); |
30 bool HasFrame() { return has_frame_; } | 30 bool HasFrame() { return has_frame_; } |
31 | 31 |
32 private: | 32 private: |
33 // RendererFrameManagerClient implementation. | 33 // RendererFrameManagerClient implementation. |
34 void EvictCurrentFrame() override; | 34 void EvictCurrentFrame() override; |
35 | 35 |
36 DelegatedFrameEvictorClient* client_; | 36 DelegatedFrameEvictorClient* client_; |
37 bool has_frame_; | 37 bool has_frame_; |
38 bool visible_; | |
39 | 38 |
40 DISALLOW_COPY_AND_ASSIGN(DelegatedFrameEvictor); | 39 DISALLOW_COPY_AND_ASSIGN(DelegatedFrameEvictor); |
41 }; | 40 }; |
42 | 41 |
43 } // namespace content | 42 } // namespace content |
44 | 43 |
45 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_EVICTOR_H_ | 44 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_EVICTOR_H_ |
OLD | NEW |