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

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

Issue 7919003: Remove refptr usages from SpellCheckHost (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fix pointer returns. Update tests. Created 9 years, 2 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) 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_PROFILE_H_ 5 #ifndef CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_PROFILE_H_
6 #define CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_PROFILE_H_ 6 #define CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_PROFILE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // Only tests should override this. 90 // Only tests should override this.
91 virtual SpellCheckHost* CreateHost( 91 virtual SpellCheckHost* CreateHost(
92 SpellCheckProfileProvider* provider, 92 SpellCheckProfileProvider* provider,
93 const std::string& language, 93 const std::string& language,
94 net::URLRequestContextGetter* request_context, 94 net::URLRequestContextGetter* request_context,
95 SpellCheckHostMetrics* metrics); 95 SpellCheckHostMetrics* metrics);
96 96
97 virtual bool IsTesting() const; 97 virtual bool IsTesting() const;
98 98
99 private: 99 private:
100 scoped_refptr<SpellCheckHost> host_; 100 scoped_ptr<SpellCheckHost> host_;
101 scoped_ptr<SpellCheckHostMetrics> metrics_; 101 scoped_ptr<SpellCheckHostMetrics> metrics_;
102 102
103 // Indicates whether |host_| has told us initialization is 103 // Indicates whether |host_| has told us initialization is
104 // finished. 104 // finished.
105 bool host_ready_; 105 bool host_ready_;
106 106
107 // In-memory cache of the custom words file. 107 // In-memory cache of the custom words file.
108 scoped_ptr<CustomWordList> custom_words_; 108 scoped_ptr<CustomWordList> custom_words_;
109 109
110 DISALLOW_COPY_AND_ASSIGN(SpellCheckProfile); 110 DISALLOW_COPY_AND_ASSIGN(SpellCheckProfile);
111 }; 111 };
112 112
113 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_PROFILE_H_ 113 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698