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

Side by Side Diff: third_party/WebKit/Source/core/testing/DummyPageHolder.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) 2013, Google Inc. All rights reserved. 2 * Copyright (c) 2013, 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 Document& document() const; 81 Document& document() const;
82 82
83 private: 83 private:
84 DummyPageHolder(const IntSize& initialViewSize, 84 DummyPageHolder(const IntSize& initialViewSize,
85 Page::PageClients*, 85 Page::PageClients*,
86 FrameLoaderClient*, 86 FrameLoaderClient*,
87 FrameSettingOverrideFunction settingOverrider, 87 FrameSettingOverrideFunction settingOverrider,
88 InterfaceProvider* = nullptr); 88 InterfaceProvider* = nullptr);
89 89
90 Persistent<Page> m_page; 90 Persistent<Page> m_page;
91 Persistent<LocalFrame> m_frame; 91 CrossThreadPersistent<LocalFrame> m_frame;
haraken 2017/02/20 23:57:18 // TODO: This should be a Persistent. Frame must n
92 92
93 Persistent<FrameLoaderClient> m_frameLoaderClient; 93 Persistent<FrameLoaderClient> m_frameLoaderClient;
94 }; 94 };
95 95
96 } // namespace blink 96 } // namespace blink
97 97
98 #endif // DummyPageHolder_h 98 #endif // DummyPageHolder_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698