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

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

Issue 667943003: Standardize usage of virtual/override/final in content/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
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
11 namespace content { 11 namespace content {
12 12
13 class CONTENT_EXPORT DelegatedFrameEvictorClient { 13 class CONTENT_EXPORT DelegatedFrameEvictorClient {
14 public: 14 public:
15 virtual ~DelegatedFrameEvictorClient() {} 15 virtual ~DelegatedFrameEvictorClient() {}
16 virtual void EvictDelegatedFrame() = 0; 16 virtual void EvictDelegatedFrame() = 0;
17 }; 17 };
18 18
19 class CONTENT_EXPORT DelegatedFrameEvictor : public RendererFrameManagerClient { 19 class CONTENT_EXPORT DelegatedFrameEvictor : public RendererFrameManagerClient {
20 public: 20 public:
21 // |client| must outlive |this|. 21 // |client| must outlive |this|.
22 explicit DelegatedFrameEvictor(DelegatedFrameEvictorClient* client); 22 explicit DelegatedFrameEvictor(DelegatedFrameEvictorClient* client);
23 virtual ~DelegatedFrameEvictor(); 23 ~DelegatedFrameEvictor() override;
24 24
25 void SwappedFrame(bool visible); 25 void SwappedFrame(bool visible);
26 void DiscardedFrame(); 26 void DiscardedFrame();
27 void SetVisible(bool visible); 27 void SetVisible(bool visible);
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 virtual void EvictCurrentFrame() override; 34 void EvictCurrentFrame() override;
35 35
36 DelegatedFrameEvictorClient* client_; 36 DelegatedFrameEvictorClient* client_;
37 bool has_frame_; 37 bool has_frame_;
38 38
39 DISALLOW_COPY_AND_ASSIGN(DelegatedFrameEvictor); 39 DISALLOW_COPY_AND_ASSIGN(DelegatedFrameEvictor);
40 }; 40 };
41 41
42 } // namespace content 42 } // namespace content
43 43
44 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_EVICTOR_H_ 44 #endif // CONTENT_BROWSER_RENDERER_HOST_DELEGATED_FRAME_EVICTOR_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/database_message_filter.h ('k') | content/browser/renderer_host/file_utilities_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698