OLD | NEW |
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_IMPORTER_IN_PROCESS_IMPORTER_BRIDGE_H_ | 5 #ifndef CHROME_BROWSER_IMPORTER_IN_PROCESS_IMPORTER_BRIDGE_H_ |
6 #define CHROME_BROWSER_IMPORTER_IN_PROCESS_IMPORTER_BRIDGE_H_ | 6 #define CHROME_BROWSER_IMPORTER_IN_PROCESS_IMPORTER_BRIDGE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
15 #include "chrome/browser/importer/profile_writer.h" | 15 #include "chrome/browser/importer/profile_writer.h" |
16 #include "chrome/common/importer/importer_bridge.h" | 16 #include "chrome/common/importer/importer_bridge.h" |
17 | 17 |
18 class GURL; | 18 class GURL; |
19 struct ImportedBookmarkEntry; | 19 struct ImportedBookmarkEntry; |
20 struct FaviconUsageData; | |
21 class ExternalProcessImporterHost; | 20 class ExternalProcessImporterHost; |
22 | 21 |
23 namespace importer { | 22 namespace importer { |
24 #if defined(OS_WIN) | 23 #if defined(OS_WIN) |
25 struct ImporterIE7PasswordInfo; | 24 struct ImporterIE7PasswordInfo; |
26 #endif | 25 #endif |
27 struct ImporterURlRow; | |
28 struct SearchEngineInfo; | 26 struct SearchEngineInfo; |
29 } | 27 } |
30 | 28 |
31 class InProcessImporterBridge : public ImporterBridge { | 29 class InProcessImporterBridge : public ImporterBridge { |
32 public: | 30 public: |
33 InProcessImporterBridge(ProfileWriter* writer, | 31 InProcessImporterBridge(ProfileWriter* writer, |
34 base::WeakPtr<ExternalProcessImporterHost> host); | 32 base::WeakPtr<ExternalProcessImporterHost> host); |
35 | 33 |
36 // Begin ImporterBridge implementation: | 34 // Begin ImporterBridge implementation: |
37 void AddBookmarks(const std::vector<ImportedBookmarkEntry>& bookmarks, | 35 void AddBookmarks(const std::vector<ImportedBookmarkEntry>& bookmarks, |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 private: | 70 private: |
73 ~InProcessImporterBridge() override; | 71 ~InProcessImporterBridge() override; |
74 | 72 |
75 ProfileWriter* const writer_; // weak | 73 ProfileWriter* const writer_; // weak |
76 const base::WeakPtr<ExternalProcessImporterHost> host_; | 74 const base::WeakPtr<ExternalProcessImporterHost> host_; |
77 | 75 |
78 DISALLOW_COPY_AND_ASSIGN(InProcessImporterBridge); | 76 DISALLOW_COPY_AND_ASSIGN(InProcessImporterBridge); |
79 }; | 77 }; |
80 | 78 |
81 #endif // CHROME_BROWSER_IMPORTER_IN_PROCESS_IMPORTER_BRIDGE_H_ | 79 #endif // CHROME_BROWSER_IMPORTER_IN_PROCESS_IMPORTER_BRIDGE_H_ |
OLD | NEW |