OLD | NEW |
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 // The functionality provided here allows the user to import their bookmarks | 5 // The functionality provided here allows the user to import their bookmarks |
6 // (favorites) from Google Toolbar. | 6 // (favorites) from Google Toolbar. |
7 | 7 |
8 #ifndef CHROME_BROWSER_IMPORTER_TOOLBAR_IMPORTER_H_ | 8 #ifndef CHROME_BROWSER_IMPORTER_TOOLBAR_IMPORTER_H_ |
9 #define CHROME_BROWSER_IMPORTER_TOOLBAR_IMPORTER_H_ | 9 #define CHROME_BROWSER_IMPORTER_TOOLBAR_IMPORTER_H_ |
10 #pragma once | 10 #pragma once |
11 | 11 |
12 #include <string> | 12 #include <string> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/basictypes.h" | 15 #include "base/basictypes.h" |
16 #include "base/compiler_specific.h" | 16 #include "base/compiler_specific.h" |
17 #include "base/gtest_prod_util.h" | 17 #include "base/gtest_prod_util.h" |
18 #include "base/string16.h" | 18 #include "base/string16.h" |
19 #include "chrome/browser/importer/importer.h" | 19 #include "chrome/browser/importer/importer.h" |
20 #include "chrome/browser/importer/profile_writer.h" | 20 #include "chrome/browser/importer/profile_writer.h" |
21 #include "chrome/common/net/url_fetcher.h" | 21 #include "content/common/url_fetcher.h" |
22 | 22 |
23 class ImporterBridge; | 23 class ImporterBridge; |
24 class XmlReader; | 24 class XmlReader; |
25 | 25 |
26 // Toolbar5Importer is a class which exposes the functionality needed to | 26 // Toolbar5Importer is a class which exposes the functionality needed to |
27 // communicate with the Google Toolbar v5 front-end, negotiate the download of | 27 // communicate with the Google Toolbar v5 front-end, negotiate the download of |
28 // Toolbar bookmarks, parse them, and install them on the client. | 28 // Toolbar bookmarks, parse them, and install them on the client. |
29 // Toolbar5Importer should not have StartImport called more than once. Futher | 29 // Toolbar5Importer should not have StartImport called more than once. Futher |
30 // if StartImport is called, then the class must not be destroyed until it has | 30 // if StartImport is called, then the class must not be destroyed until it has |
31 // either completed or Toolbar5Importer->Cancel() has been called. | 31 // either completed or Toolbar5Importer->Cancel() has been called. |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 | 158 |
159 // The fetchers need to be available to cancel the network call on user cancel | 159 // The fetchers need to be available to cancel the network call on user cancel |
160 // hence they are stored as member variables. | 160 // hence they are stored as member variables. |
161 URLFetcher* token_fetcher_; | 161 URLFetcher* token_fetcher_; |
162 URLFetcher* data_fetcher_; | 162 URLFetcher* data_fetcher_; |
163 | 163 |
164 DISALLOW_COPY_AND_ASSIGN(Toolbar5Importer); | 164 DISALLOW_COPY_AND_ASSIGN(Toolbar5Importer); |
165 }; | 165 }; |
166 | 166 |
167 #endif // CHROME_BROWSER_IMPORTER_TOOLBAR_IMPORTER_H_ | 167 #endif // CHROME_BROWSER_IMPORTER_TOOLBAR_IMPORTER_H_ |
OLD | NEW |