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

Side by Side Diff: content/child/blink_platform_impl.h

Issue 2729623003: TEST ONLY: Duplicate FP rather than modifying in place (Closed)
Patch Set: Rebase against parent CL Created 3 years, 9 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
« no previous file with comments | « no previous file | content/child/blink_platform_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_CHILD_BLINK_PLATFORM_IMPL_H_ 5 #ifndef CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_
6 #define CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ 6 #define CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 // This class does *not* own the compositor thread. It is the responsibility 119 // This class does *not* own the compositor thread. It is the responsibility
120 // of the caller to ensure that the compositor thread is cleared before it is 120 // of the caller to ensure that the compositor thread is cleared before it is
121 // destructed. 121 // destructed.
122 void SetCompositorThread(blink::scheduler::WebThreadBase* compositor_thread); 122 void SetCompositorThread(blink::scheduler::WebThreadBase* compositor_thread);
123 123
124 blink::WebFeaturePolicy* createFeaturePolicy( 124 blink::WebFeaturePolicy* createFeaturePolicy(
125 const blink::WebFeaturePolicy* parentPolicy, 125 const blink::WebFeaturePolicy* parentPolicy,
126 const blink::WebParsedFeaturePolicyHeader& containerPolicy, 126 const blink::WebParsedFeaturePolicyHeader& containerPolicy,
127 const blink::WebParsedFeaturePolicyHeader& policyHeader, 127 const blink::WebParsedFeaturePolicyHeader& policyHeader,
128 const blink::WebSecurityOrigin& origin) override; 128 const blink::WebSecurityOrigin& origin) override;
129 void resetFeaturePolicyOrigin(blink::WebFeaturePolicy* parentPolicy, 129 blink::WebFeaturePolicy* duplicateFeaturePolicyWithOrigin(
130 const blink::WebSecurityOrigin&) override; 130 const blink::WebFeaturePolicy& policy,
131 const blink::WebSecurityOrigin& new_origin) override;
131 132
132 private: 133 private:
133 void InternalInit(); 134 void InternalInit();
134 void WaitUntilWebThreadTLSUpdate(blink::scheduler::WebThreadBase* thread); 135 void WaitUntilWebThreadTLSUpdate(blink::scheduler::WebThreadBase* thread);
135 void UpdateWebThreadTLS(blink::WebThread* thread, base::WaitableEvent* event); 136 void UpdateWebThreadTLS(blink::WebThread* thread, base::WaitableEvent* event);
136 137
137 bool IsMainThread() const; 138 bool IsMainThread() const;
138 139
139 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_; 140 scoped_refptr<base::SingleThreadTaskRunner> main_thread_task_runner_;
140 WebThemeEngineImpl native_theme_engine_; 141 WebThemeEngineImpl native_theme_engine_;
141 WebFallbackThemeEngineImpl fallback_theme_engine_; 142 WebFallbackThemeEngineImpl fallback_theme_engine_;
142 base::ThreadLocalStorage::Slot current_thread_slot_; 143 base::ThreadLocalStorage::Slot current_thread_slot_;
143 webcrypto::WebCryptoImpl web_crypto_; 144 webcrypto::WebCryptoImpl web_crypto_;
144 145
145 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 146 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
146 scoped_refptr<NotificationDispatcher> notification_dispatcher_; 147 scoped_refptr<NotificationDispatcher> notification_dispatcher_;
147 148
148 blink::scheduler::WebThreadBase* compositor_thread_; 149 blink::scheduler::WebThreadBase* compositor_thread_;
149 }; 150 };
150 151
151 } // namespace content 152 } // namespace content
152 153
153 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_ 154 #endif // CONTENT_CHILD_BLINK_PLATFORM_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/child/blink_platform_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698