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

Side by Side Diff: third_party/WebKit/Source/platform/exported/WebScrollbarImpl.h

Issue 2702243003: Disallow cross-thread Persistent<> read access. (Closed)
Patch Set: rebase fixup Created 3 years, 10 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 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 WebScrollbarOverlayColorTheme scrollbarOverlayColorTheme() const override; 62 WebScrollbarOverlayColorTheme scrollbarOverlayColorTheme() const override;
63 bool isCustomScrollbar() const override; 63 bool isCustomScrollbar() const override;
64 Orientation orientation() const override; 64 Orientation orientation() const override;
65 bool isLeftSideVerticalScrollbar() const override; 65 bool isLeftSideVerticalScrollbar() const override;
66 float elasticOverscroll() const override; 66 float elasticOverscroll() const override;
67 void setElasticOverscroll(float) override; 67 void setElasticOverscroll(float) override;
68 68
69 private: 69 private:
70 explicit WebScrollbarImpl(Scrollbar*); 70 explicit WebScrollbarImpl(Scrollbar*);
71 71
72 Persistent<Scrollbar> m_scrollbar; 72 // Accessed by main and compositor threads.
73 CrossThreadPersistent<Scrollbar> m_scrollbar;
haraken 2017/02/20 23:57:18 Ditto.
73 }; 74 };
74 75
75 } // namespace blink 76 } // namespace blink
76 77
77 #endif 78 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698