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

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

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 #ifndef CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HOST_H_ 5 #ifndef CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HOST_H_
6 #define CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HOST_H_ 6 #define CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // std::vector<std::string> languages; 42 // std::vector<std::string> languages;
43 // SpellCheckHost::GetSpellCheckLanguages(profile_, &languages); 43 // SpellCheckHost::GetSpellCheckLanguages(profile_, &languages);
44 // spellcheck_host_ = SpellCheckHost::Create( 44 // spellcheck_host_ = SpellCheckHost::Create(
45 // observer, languages[0], req_getter); 45 // observer, languages[0], req_getter);
46 // 46 //
47 // The class is intended to be owned by SpellCheckProfile so users should 47 // The class is intended to be owned by SpellCheckProfile so users should
48 // retrieve the instance via Profile::GetSpellCheckHost(). 48 // retrieve the instance via Profile::GetSpellCheckHost().
49 // Users should not hold the reference over the function scope because 49 // Users should not hold the reference over the function scope because
50 // the instance can be invalidated during the browser's lifecycle. 50 // the instance can be invalidated during the browser's lifecycle.
51 class SpellCheckHost 51 class SpellCheckHost
52 : public base::RefCountedThreadSafe<SpellCheckHost, 52 : public base::RefCountedThreadSafe<
53 BrowserThread::DeleteOnFileThread> { 53 SpellCheckHost, content::BrowserThread::DeleteOnFileThread> {
54 public: 54 public:
55 // Event types used for reporting the status of this class and its derived 55 // Event types used for reporting the status of this class and its derived
56 // classes to browser tests. 56 // classes to browser tests.
57 enum EventType { 57 enum EventType {
58 BDICT_NOTINITIALIZED, 58 BDICT_NOTINITIALIZED,
59 BDICT_CORRUPTED, 59 BDICT_CORRUPTED,
60 }; 60 };
61 61
62 virtual ~SpellCheckHost() {} 62 virtual ~SpellCheckHost() {}
63 63
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 // Attaches an event so browser tests can listen the status events. 114 // Attaches an event so browser tests can listen the status events.
115 static void AttachStatusEvent(base::WaitableEvent* status_event); 115 static void AttachStatusEvent(base::WaitableEvent* status_event);
116 116
117 // Waits until a spellchecker updates its status. This function returns 117 // Waits until a spellchecker updates its status. This function returns
118 // immediately when we do not set an event to |status_event_|. 118 // immediately when we do not set an event to |status_event_|.
119 static EventType WaitStatusEvent(); 119 static EventType WaitStatusEvent();
120 }; 120 };
121 121
122 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HOST_H_ 122 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/speech/speech_input_bubble_controller_unittest.cc ('k') | chrome/browser/spellchecker/spellcheck_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698