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

Unified Diff: ui/display/types/native_display_observer.h

Issue 2571543002: Fix use after free for cached_displays_. (Closed)
Patch Set: Add invalidate to tests. Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/display/manager/chromeos/test/test_native_display_delegate.cc ('k') | ui/ozone/demo/ozone_demo.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/types/native_display_observer.h
diff --git a/ui/display/types/native_display_observer.h b/ui/display/types/native_display_observer.h
index 60910367b088a79f48fc7fdecc805c9773203b58..ba983af4f37931c40424fa85cd92e1dd37dfd55a 100644
--- a/ui/display/types/native_display_observer.h
+++ b/ui/display/types/native_display_observer.h
@@ -16,6 +16,10 @@ class DISPLAY_TYPES_EXPORT NativeDisplayObserver {
virtual ~NativeDisplayObserver() {}
virtual void OnConfigurationChanged() = 0;
+
+ // DisplaySnapshots owned by NativeDisplayDelegate are about to be
+ // invalidated and any stored pointers to them should be deleted.
+ virtual void OnDisplaySnapshotsInvalidated() = 0;
};
} // namespace ui
« no previous file with comments | « ui/display/manager/chromeos/test/test_native_display_delegate.cc ('k') | ui/ozone/demo/ozone_demo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698