OLD | NEW |
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ | 1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
2 /* ***** BEGIN LICENSE BLOCK ***** | 2 /* ***** BEGIN LICENSE BLOCK ***** |
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
4 * | 4 * |
5 * The contents of this file are subject to the Mozilla Public License Version | 5 * The contents of this file are subject to the Mozilla Public License Version |
6 * 1.1 (the "License"); you may not use this file except in compliance with | 6 * 1.1 (the "License"); you may not use this file except in compliance with |
7 * the License. You may obtain a copy of the License at | 7 * the License. You may obtain a copy of the License at |
8 * http://www.mozilla.org/MPL/ | 8 * http://www.mozilla.org/MPL/ |
9 * | 9 * |
10 * Software distributed under the License is distributed on an "AS IS" basis, | 10 * Software distributed under the License is distributed on an "AS IS" basis, |
(...skipping 21 matching lines...) Expand all Loading... |
32 * decision by deleting the provisions above and replace them with the notice | 32 * decision by deleting the provisions above and replace them with the notice |
33 * and other provisions required by the GPL or the LGPL. If you do not delete | 33 * and other provisions required by the GPL or the LGPL. If you do not delete |
34 * the provisions above, a recipient may use your version of this file under | 34 * the provisions above, a recipient may use your version of this file under |
35 * the terms of any one of the MPL, the GPL or the LGPL. | 35 * the terms of any one of the MPL, the GPL or the LGPL. |
36 * | 36 * |
37 * ***** END LICENSE BLOCK ***** */ | 37 * ***** END LICENSE BLOCK ***** */ |
38 | 38 |
39 // Source: | 39 // Source: |
40 // http://mxr.mozilla.org/firefox/source/db/morkreader/nsMorkReader.h | 40 // http://mxr.mozilla.org/firefox/source/db/morkreader/nsMorkReader.h |
41 | 41 |
42 #ifndef MORK_READER_H__ | 42 #ifndef CHROME_BROWSER_IMPORTER_MORK_READER_H__ |
43 #define MORK_READER_H__ | 43 #define CHROME_BROWSER_IMPORTER_MORK_READER_H__ |
44 | 44 |
45 #include <map> | 45 #include <map> |
46 #include <iostream> | 46 #include <iostream> |
47 #include <fstream> | 47 #include <fstream> |
48 #include <string> | 48 #include <string> |
49 #include <vector> | 49 #include <vector> |
50 | 50 |
51 #include "base/basictypes.h" | 51 #include "base/basictypes.h" |
52 #include "base/stack_container.h" | 52 #include "base/stack_container.h" |
53 #include "chrome/browser/importer.h" | 53 #include "chrome/browser/importer/importer.h" |
54 | 54 |
55 // The nsMorkReader object allows a consumer to read in a mork-format | 55 // The nsMorkReader object allows a consumer to read in a mork-format |
56 // file and enumerate the rows that it contains. It does not provide | 56 // file and enumerate the rows that it contains. It does not provide |
57 // any functionality for modifying mork tables. | 57 // any functionality for modifying mork tables. |
58 | 58 |
59 // References: | 59 // References: |
60 // http://www.mozilla.org/mailnews/arch/mork/primer.txt | 60 // http://www.mozilla.org/mailnews/arch/mork/primer.txt |
61 // http://www.mozilla.org/mailnews/arch/mork/grammar.txt | 61 // http://www.mozilla.org/mailnews/arch/mork/grammar.txt |
62 // http://www.jwz.org/hacks/mork.pl | 62 // http://www.jwz.org/hacks/mork.pl |
63 | 63 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 | 155 |
156 // The contents of the mork database. This array pointer is owned by this | 156 // The contents of the mork database. This array pointer is owned by this |
157 // class and must be deleted. | 157 // class and must be deleted. |
158 RowMap table_; | 158 RowMap table_; |
159 }; | 159 }; |
160 | 160 |
161 // ImportHistoryFromFirefox2 is the main entry point to the importer. | 161 // ImportHistoryFromFirefox2 is the main entry point to the importer. |
162 void ImportHistoryFromFirefox2(std::wstring file, MessageLoop* loop, | 162 void ImportHistoryFromFirefox2(std::wstring file, MessageLoop* loop, |
163 ProfileWriter* writer); | 163 ProfileWriter* writer); |
164 | 164 |
165 #endif // MORK_READER_H__ | 165 #endif // CHROME_BROWSER_IMPORTER_MORK_READER_H__ |
OLD | NEW |