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

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

Issue 1407443002: Remove old C++03 move emulation code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: std::move and reflow Created 5 years 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
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 <string> 8 #include <string>
9 9
10 #include "base/files/file.h" 10 #include "base/files/file.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 private: 85 private:
86 // Dictionary download status. 86 // Dictionary download status.
87 enum DownloadStatus { 87 enum DownloadStatus {
88 DOWNLOAD_NONE, 88 DOWNLOAD_NONE,
89 DOWNLOAD_IN_PROGRESS, 89 DOWNLOAD_IN_PROGRESS,
90 DOWNLOAD_FAILED, 90 DOWNLOAD_FAILED,
91 }; 91 };
92 92
93 // Dictionary file information to be passed between the FILE and UI threads. 93 // Dictionary file information to be passed between the FILE and UI threads.
94 struct DictionaryFile { 94 struct DictionaryFile {
95 MOVE_ONLY_TYPE_FOR_CPP_03(DictionaryFile, RValue) 95 MOVE_ONLY_TYPE_FOR_CPP_03(DictionaryFile)
96 public: 96 public:
97 DictionaryFile(); 97 DictionaryFile();
98 ~DictionaryFile(); 98 ~DictionaryFile();
99 99
100 // C++03 move emulation of this type. 100 DictionaryFile(DictionaryFile&& other);
101 DictionaryFile(RValue other); 101 DictionaryFile& operator=(DictionaryFile&& other);
102 DictionaryFile& operator=(RValue other);
103 102
104 // The desired location of the dictionary file, whether or not it exists. 103 // The desired location of the dictionary file, whether or not it exists.
105 base::FilePath path; 104 base::FilePath path;
106 105
107 // The dictionary file. 106 // The dictionary file.
108 base::File file; 107 base::File file;
109 }; 108 };
110 109
111 // net::URLFetcherDelegate implementation. Called when dictionary download 110 // net::URLFetcherDelegate implementation. Called when dictionary download
112 // finishes. 111 // finishes.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 162
164 // Dictionary file path and descriptor. 163 // Dictionary file path and descriptor.
165 DictionaryFile dictionary_file_; 164 DictionaryFile dictionary_file_;
166 165
167 base::WeakPtrFactory<SpellcheckHunspellDictionary> weak_ptr_factory_; 166 base::WeakPtrFactory<SpellcheckHunspellDictionary> weak_ptr_factory_;
168 167
169 DISALLOW_COPY_AND_ASSIGN(SpellcheckHunspellDictionary); 168 DISALLOW_COPY_AND_ASSIGN(SpellcheckHunspellDictionary);
170 }; 169 };
171 170
172 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HUNSPELL_DICTIONARY_H_ 171 #endif // CHROME_BROWSER_SPELLCHECKER_SPELLCHECK_HUNSPELL_DICTIONARY_H_
OLDNEW
« no previous file with comments | « chrome/browser/printing/pdf_to_emf_converter.cc ('k') | chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698