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

Side by Side Diff: chrome/browser/spellchecker/spellcheck_host.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "chrome/browser/spellchecker/spellcheck_host.h" 5 #include "chrome/browser/spellchecker/spellcheck_host.h"
6 6
7 #include "base/string_split.h" 7 #include "base/string_split.h"
8 #include "base/synchronization/waitable_event.h" 8 #include "base/synchronization/waitable_event.h"
9 #include "chrome/browser/prefs/pref_member.h" 9 #include "chrome/browser/prefs/pref_member.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/spellchecker/spellcheck_host_impl.h" 11 #include "chrome/browser/spellchecker/spellcheck_host_impl.h"
12 #include "chrome/browser/spellchecker/spellchecker_platform_engine.h" 12 #include "chrome/browser/spellchecker/spellchecker_platform_engine.h"
13 #include "chrome/common/pref_names.h" 13 #include "chrome/common/pref_names.h"
14 #include "chrome/common/spellcheck_common.h" 14 #include "chrome/common/spellcheck_common.h"
15 15
16 using content::BrowserThread;
17
16 namespace { 18 namespace {
17 19
18 // An event used by browser tests to receive status events from this class and 20 // An event used by browser tests to receive status events from this class and
19 // its derived classes. 21 // its derived classes.
20 base::WaitableEvent* g_status_event = NULL; 22 base::WaitableEvent* g_status_event = NULL;
21 SpellCheckHost::EventType g_status_type = SpellCheckHost::BDICT_NOTINITIALIZED; 23 SpellCheckHost::EventType g_status_type = SpellCheckHost::BDICT_NOTINITIALIZED;
22 24
23 } // namespace 25 } // namespace
24 26
25 // static 27 // static
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 } 103 }
102 104
103 // static 105 // static
104 SpellCheckHost::EventType SpellCheckHost::WaitStatusEvent() { 106 SpellCheckHost::EventType SpellCheckHost::WaitStatusEvent() {
105 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 107 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
106 108
107 if (g_status_event) 109 if (g_status_event)
108 g_status_event->Wait(); 110 g_status_event->Wait();
109 return g_status_type; 111 return g_status_type;
110 } 112 }
OLDNEW
« no previous file with comments | « chrome/browser/spellchecker/spellcheck_host.h ('k') | chrome/browser/spellchecker/spellcheck_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698