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

Unified Diff: ios/web/web_thread_impl.h

Issue 1406983008: [iOS] ios/web no longer depends on content::BrowserThread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 1 month 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 | « ios/web/web_thread_adapter.cc ('k') | ios/web/web_thread_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/web_thread_impl.h
diff --git a/ios/web/web_thread_impl.h b/ios/web/web_thread_impl.h
index 4ed12fe89152b7d61d2703bca35cbc58d92c7051..7641c61b1d9125f53b264ef4639a801d9b695d99 100644
--- a/ios/web/web_thread_impl.h
+++ b/ios/web/web_thread_impl.h
@@ -10,7 +10,7 @@
namespace web {
-class WebThreadDelegate;
+class WebTestSuiteListener;
class WebThreadImpl : public WebThread, public base::Thread {
public:
@@ -26,20 +26,6 @@ class WebThreadImpl : public WebThread, public base::Thread {
static void ShutdownThreadPool();
- // TODO(stuartmorgan): Move this to WebThread (where it belongs) once
- // the alternate BrowserThread-backed-WebThread implementation goes away. See
- // the note in web_thread_delegate.h.
- //
- // Sets the delegate for the specified WebThread.
- //
- // Only one delegate may be registered at a time. Delegates may be
- // unregistered by providing a nullptr pointer.
- //
- // If the caller unregisters a delegate before CleanUp has been
- // called, it must perform its own locking to ensure the delegate is
- // not deleted while unregistering.
- static void SetDelegate(ID identifier, WebThreadDelegate* delegate);
-
protected:
void Init() override;
void Run(base::MessageLoop* message_loop) override;
@@ -76,6 +62,7 @@ class WebThreadImpl : public WebThread, public base::Thread {
// For testing.
friend class TestWebThreadBundle;
friend class TestWebThreadBundleImpl;
+ friend class WebTestSuiteListener;
static void FlushThreadPoolHelperForTesting();
// The identifier of this thread. Only one thread can exist with a given
« no previous file with comments | « ios/web/web_thread_adapter.cc ('k') | ios/web/web_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698