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

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

Issue 320513002: Remove base::kInvalidPlatformFileValue from Chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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_HUNSPELL_DICTIONARY_H_ 5 #ifndef CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HUNSPELL_DICTIONARY_H_
6 #define CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HUNSPELL_DICTIONARY_H_ 6 #define CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HUNSPELL_DICTIONARY_H_
7 7
8 #include "base/files/file.h" 8 #include "base/files/file.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "base/move.h" 12 #include "base/move.h"
13 #include "base/observer_list.h" 13 #include "base/observer_list.h"
14 #include "base/platform_file.h"
15 #include "chrome/browser/spellchecker/spellcheck_dictionary.h" 14 #include "chrome/browser/spellchecker/spellcheck_dictionary.h"
16 #include "net/url_request/url_fetcher_delegate.h" 15 #include "net/url_request/url_fetcher_delegate.h"
17 16
18 class GURL; 17 class GURL;
19 class SpellcheckService; 18 class SpellcheckService;
20 19
21 namespace net { 20 namespace net {
22 class URLFetcher; 21 class URLFetcher;
23 class URLRequestContextGetter; 22 class URLRequestContextGetter;
24 } // namespace net 23 } // namespace net
(...skipping 29 matching lines...) Expand all
54 // SpellcheckDictionary implementation: 53 // SpellcheckDictionary implementation:
55 virtual void Load() OVERRIDE; 54 virtual void Load() OVERRIDE;
56 55
57 // Retry downloading |dictionary_file_|. 56 // Retry downloading |dictionary_file_|.
58 void RetryDownloadDictionary( 57 void RetryDownloadDictionary(
59 net::URLRequestContextGetter* request_context_getter); 58 net::URLRequestContextGetter* request_context_getter);
60 59
61 // Returns true if the dictionary is ready to use. 60 // Returns true if the dictionary is ready to use.
62 virtual bool IsReady() const; 61 virtual bool IsReady() const;
63 62
64 // TODO(rlp): Return by value. 63 const base::File& GetDictionaryFile() const;
65 base::PlatformFile GetDictionaryFile() const;
66 const std::string& GetLanguage() const; 64 const std::string& GetLanguage() const;
67 bool IsUsingPlatformChecker() const; 65 bool IsUsingPlatformChecker() const;
68 66
69 // Add an observer for Hunspell dictionary events. 67 // Add an observer for Hunspell dictionary events.
70 void AddObserver(Observer* observer); 68 void AddObserver(Observer* observer);
71 69
72 // Remove an observer for Hunspell dictionary events. 70 // Remove an observer for Hunspell dictionary events.
73 void RemoveObserver(Observer* observer); 71 void RemoveObserver(Observer* observer);
74 72
75 // Whether dictionary is being downloaded. 73 // Whether dictionary is being downloaded.
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 157
160 // Dictionary file path and descriptor. 158 // Dictionary file path and descriptor.
161 DictionaryFile dictionary_file_; 159 DictionaryFile dictionary_file_;
162 160
163 base::WeakPtrFactory<SpellcheckHunspellDictionary> weak_ptr_factory_; 161 base::WeakPtrFactory<SpellcheckHunspellDictionary> weak_ptr_factory_;
164 162
165 DISALLOW_COPY_AND_ASSIGN(SpellcheckHunspellDictionary); 163 DISALLOW_COPY_AND_ASSIGN(SpellcheckHunspellDictionary);
166 }; 164 };
167 165
168 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HUNSPELL_DICTIONARY_H_ 166 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HUNSPELL_DICTIONARY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698