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

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

Issue 15517005: Remove references to Profile from browser_context_keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & style Created 7 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_SERVICE_H_
6 #define CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_SERVICE_H_ 6 #define CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_SERVICE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/gtest_prod_util.h" 9 #include "base/gtest_prod_util.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 14 matching lines...) Expand all
25 class WaitableEvent; 25 class WaitableEvent;
26 } 26 }
27 27
28 namespace content { 28 namespace content {
29 class RenderProcessHost; 29 class RenderProcessHost;
30 } 30 }
31 31
32 // Encapsulates the browser side spellcheck service. There is one of these per 32 // Encapsulates the browser side spellcheck service. There is one of these per
33 // profile and each is created by the SpellCheckServiceFactory. The 33 // profile and each is created by the SpellCheckServiceFactory. The
34 // SpellcheckService maintains any per-profile information about spellcheck. 34 // SpellcheckService maintains any per-profile information about spellcheck.
35 class SpellcheckService : public ProfileKeyedService, 35 class SpellcheckService : public BrowserContextKeyedService,
36 public content::NotificationObserver, 36 public content::NotificationObserver,
37 public SpellcheckCustomDictionary::Observer, 37 public SpellcheckCustomDictionary::Observer,
38 public SpellcheckHunspellDictionary::Observer { 38 public SpellcheckHunspellDictionary::Observer {
39 public: 39 public:
40 // Event types used for reporting the status of this class and its derived 40 // Event types used for reporting the status of this class and its derived
41 // classes to browser tests. 41 // classes to browser tests.
42 enum EventType { 42 enum EventType {
43 BDICT_NOTINITIALIZED, 43 BDICT_NOTINITIALIZED,
44 BDICT_CORRUPTED, 44 BDICT_CORRUPTED,
45 }; 45 };
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 scoped_ptr<SpellcheckHunspellDictionary> hunspell_dictionary_; 159 scoped_ptr<SpellcheckHunspellDictionary> hunspell_dictionary_;
160 160
161 scoped_ptr<spellcheck::FeedbackSender> feedback_sender_; 161 scoped_ptr<spellcheck::FeedbackSender> feedback_sender_;
162 162
163 base::WeakPtrFactory<SpellcheckService> weak_ptr_factory_; 163 base::WeakPtrFactory<SpellcheckService> weak_ptr_factory_;
164 164
165 DISALLOW_COPY_AND_ASSIGN(SpellcheckService); 165 DISALLOW_COPY_AND_ASSIGN(SpellcheckService);
166 }; 166 };
167 167
168 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_SERVICE_H_ 168 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698