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

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

Issue 638813002: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/bindings (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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 | « Source/bindings/core/v8/ScriptStreamerTest.cpp ('k') | Source/bindings/core/v8/ScriptString.h » ('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 ScriptStreamerThread_h 5 #ifndef ScriptStreamerThread_h
6 #define ScriptStreamerThread_h 6 #define ScriptStreamerThread_h
7 7
8 #include "platform/TaskSynchronizer.h" 8 #include "platform/TaskSynchronizer.h"
9 #include "public/platform/WebThread.h" 9 #include "public/platform/WebThread.h"
10 #include "wtf/OwnPtr.h" 10 #include "wtf/OwnPtr.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // at a time. FIXME: Use a thread pool and stream multiple scripts. 53 // at a time. FIXME: Use a thread pool and stream multiple scripts.
54 WTF::OwnPtr<blink::WebThread> m_thread; 54 WTF::OwnPtr<blink::WebThread> m_thread;
55 bool m_runningTask; 55 bool m_runningTask;
56 mutable Mutex m_mutex; // Guards m_runningTask. 56 mutable Mutex m_mutex; // Guards m_runningTask.
57 }; 57 };
58 58
59 class ScriptStreamingTask : public WebThread::Task { 59 class ScriptStreamingTask : public WebThread::Task {
60 WTF_MAKE_NONCOPYABLE(ScriptStreamingTask); 60 WTF_MAKE_NONCOPYABLE(ScriptStreamingTask);
61 public: 61 public:
62 ScriptStreamingTask(WTF::PassOwnPtr<v8::ScriptCompiler::ScriptStreamingTask> , ScriptStreamer*); 62 ScriptStreamingTask(WTF::PassOwnPtr<v8::ScriptCompiler::ScriptStreamingTask> , ScriptStreamer*);
63 virtual void run() OVERRIDE; 63 virtual void run() override;
64 64
65 private: 65 private:
66 WTF::OwnPtr<v8::ScriptCompiler::ScriptStreamingTask> m_v8Task; 66 WTF::OwnPtr<v8::ScriptCompiler::ScriptStreamingTask> m_v8Task;
67 ScriptStreamer* m_streamer; 67 ScriptStreamer* m_streamer;
68 }; 68 };
69 69
70 70
71 } // namespace blink 71 } // namespace blink
72 72
73 #endif // ScriptStreamerThread_h 73 #endif // ScriptStreamerThread_h
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/ScriptStreamerTest.cpp ('k') | Source/bindings/core/v8/ScriptString.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698