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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/ScriptStreamerThread.h

Issue 2721533003: //third_party/WebKit/Source/bindings: include v8 as a user, not system, header (Closed)
Patch Set: . 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
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 ScriptStreamerThread_h 5 #ifndef ScriptStreamerThread_h
6 #define ScriptStreamerThread_h 6 #define ScriptStreamerThread_h
7 7
8 #include <memory>
9
8 #include "core/CoreExport.h" 10 #include "core/CoreExport.h"
9 #include "public/platform/WebThread.h" 11 #include "public/platform/WebThread.h"
12 #include "v8/include/v8.h"
10 #include "wtf/Functional.h" 13 #include "wtf/Functional.h"
11 #include "wtf/ThreadingPrimitives.h" 14 #include "wtf/ThreadingPrimitives.h"
12 #include <memory>
13 #include <v8.h>
14 15
15 namespace blink { 16 namespace blink {
16 17
17 class ScriptStreamer; 18 class ScriptStreamer;
18 19
19 // A singleton thread for running background tasks for script streaming. 20 // A singleton thread for running background tasks for script streaming.
20 class CORE_EXPORT ScriptStreamerThread { 21 class CORE_EXPORT ScriptStreamerThread {
21 USING_FAST_MALLOC(ScriptStreamerThread); 22 USING_FAST_MALLOC(ScriptStreamerThread);
22 WTF_MAKE_NONCOPYABLE(ScriptStreamerThread); 23 WTF_MAKE_NONCOPYABLE(ScriptStreamerThread);
23 24
(...skipping 24 matching lines...) Expand all
48 // At the moment, we only use one thread, so we can only stream one script 49 // At the moment, we only use one thread, so we can only stream one script
49 // at a time. FIXME: Use a thread pool and stream multiple scripts. 50 // at a time. FIXME: Use a thread pool and stream multiple scripts.
50 std::unique_ptr<WebThread> m_thread; 51 std::unique_ptr<WebThread> m_thread;
51 bool m_runningTask; 52 bool m_runningTask;
52 mutable Mutex m_mutex; // Guards m_runningTask. 53 mutable Mutex m_mutex; // Guards m_runningTask.
53 }; 54 };
54 55
55 } // namespace blink 56 } // namespace blink
56 57
57 #endif // ScriptStreamerThread_h 58 #endif // ScriptStreamerThread_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698