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

Side by Side Diff: third_party/WebKit/Source/core/workers/ThreadedWorkletMessagingProxy.h

Issue 2857583003: Worker: Avoid sending IPC messages for features already counted (Closed)
Patch Set: wip Created 3 years, 7 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 ThreadedWorkletMessagingProxy_h 5 #ifndef ThreadedWorkletMessagingProxy_h
6 #define ThreadedWorkletMessagingProxy_h 6 #define ThreadedWorkletMessagingProxy_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/workers/ThreadedMessagingProxyBase.h" 9 #include "core/workers/ThreadedMessagingProxyBase.h"
10 #include "core/workers/WorkletGlobalScopeProxy.h" 10 #include "core/workers/WorkletGlobalScopeProxy.h"
(...skipping 14 matching lines...) Expand all
25 void Initialize(); 25 void Initialize();
26 26
27 protected: 27 protected:
28 explicit ThreadedWorkletMessagingProxy(ExecutionContext*); 28 explicit ThreadedWorkletMessagingProxy(ExecutionContext*);
29 29
30 ThreadedWorkletObjectProxy& WorkletObjectProxy() { 30 ThreadedWorkletObjectProxy& WorkletObjectProxy() {
31 return *worklet_object_proxy_; 31 return *worklet_object_proxy_;
32 } 32 }
33 33
34 private: 34 private:
35 friend class ThreadedWorkletMessagingProxyForTest;
36
35 std::unique_ptr<ThreadedWorkletObjectProxy> worklet_object_proxy_; 37 std::unique_ptr<ThreadedWorkletObjectProxy> worklet_object_proxy_;
36 38
37 WeakPtrFactory<ThreadedWorkletMessagingProxy> weak_ptr_factory_; 39 WeakPtrFactory<ThreadedWorkletMessagingProxy> weak_ptr_factory_;
38 }; 40 };
39 41
40 } // namespace blink 42 } // namespace blink
41 43
42 #endif // ThreadedWorkletMessagingProxy_h 44 #endif // ThreadedWorkletMessagingProxy_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698