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

Unified Diff: sky/engine/core/html/parser/HTMLParserThread.cpp

Issue 1215103007: Remove remaining HTML elements (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/html/parser/HTMLParserThread.h ('k') | sky/engine/core/html/parser/HTMLScriptRunner.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/html/parser/HTMLParserThread.cpp
diff --git a/sky/engine/core/html/parser/HTMLParserThread.cpp b/sky/engine/core/html/parser/HTMLParserThread.cpp
deleted file mode 100644
index bda0ed21f592da2d814d8d979094e3e4484b6693..0000000000000000000000000000000000000000
--- a/sky/engine/core/html/parser/HTMLParserThread.cpp
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "sky/engine/core/html/parser/HTMLParserThread.h"
-
-#include "base/threading/thread.h"
-#include "sky/engine/wtf/Assertions.h"
-
-namespace blink {
-
-static base::Thread* s_thread = 0;
-static base::SingleThreadTaskRunner* s_taskRunner = 0;
-
-void HTMLParserThread::start()
-{
- ASSERT(!s_thread);
- s_thread = new base::Thread("HTMLParserThread");
- s_thread->Start();
- s_thread->task_runner().swap(&s_taskRunner);
-}
-
-void HTMLParserThread::stop()
-{
- ASSERT(s_thread);
- base::Thread* thread = s_thread;
- s_thread = 0;
-
- scoped_refptr<base::SingleThreadTaskRunner> taskRunner;
- taskRunner.swap(&s_taskRunner);
-
- delete thread;
- taskRunner = nullptr;
-}
-
-base::SingleThreadTaskRunner* HTMLParserThread::taskRunner()
-{
- ASSERT(s_taskRunner);
- return s_taskRunner;
-}
-
-} // namespace blink
« no previous file with comments | « sky/engine/core/html/parser/HTMLParserThread.h ('k') | sky/engine/core/html/parser/HTMLScriptRunner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698