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

Side by Side Diff: chrome/browser/importer/profile_writer.h

Issue 11000016: Move forms/ out of webkit/. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Response to review Created 8 years, 2 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
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_IMPORTER_PROFILE_WRITER_H_ 5 #ifndef CHROME_BROWSER_IMPORTER_PROFILE_WRITER_H_
6 #define CHROME_BROWSER_IMPORTER_PROFILE_WRITER_H_ 6 #define CHROME_BROWSER_IMPORTER_PROFILE_WRITER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_vector.h" 12 #include "base/memory/scoped_vector.h"
13 #include "base/string16.h" 13 #include "base/string16.h"
14 #include "base/time.h" 14 #include "base/time.h"
15 #include "build/build_config.h" 15 #include "build/build_config.h"
16 #include "chrome/browser/history/history_types.h" 16 #include "chrome/browser/history/history_types.h"
17 #include "googleurl/src/gurl.h" 17 #include "googleurl/src/gurl.h"
18 18
19 class Profile; 19 class Profile;
20 class TemplateURL; 20 class TemplateURL;
21 21
22 namespace webkit { 22 namespace content {
23 namespace forms {
24 struct PasswordForm; 23 struct PasswordForm;
25 } 24 }
26 }
27 25
28 #if defined(OS_WIN) 26 #if defined(OS_WIN)
29 struct IE7PasswordInfo; 27 struct IE7PasswordInfo;
30 #endif 28 #endif
31 29
32 // ProfileWriter encapsulates profile for writing entries into it. 30 // ProfileWriter encapsulates profile for writing entries into it.
33 // This object must be invoked on UI thread. 31 // This object must be invoked on UI thread.
34 class ProfileWriter : public base::RefCountedThreadSafe<ProfileWriter> { 32 class ProfileWriter : public base::RefCountedThreadSafe<ProfileWriter> {
35 public: 33 public:
36 struct BookmarkEntry { 34 struct BookmarkEntry {
(...skipping 11 matching lines...) Expand all
48 46
49 explicit ProfileWriter(Profile* profile); 47 explicit ProfileWriter(Profile* profile);
50 48
51 // These functions return true if the corresponding model has been loaded. 49 // These functions return true if the corresponding model has been loaded.
52 // If the models haven't been loaded, the importer waits to run until they've 50 // If the models haven't been loaded, the importer waits to run until they've
53 // completed. 51 // completed.
54 virtual bool BookmarkModelIsLoaded() const; 52 virtual bool BookmarkModelIsLoaded() const;
55 virtual bool TemplateURLServiceIsLoaded() const; 53 virtual bool TemplateURLServiceIsLoaded() const;
56 54
57 // Helper methods for adding data to local stores. 55 // Helper methods for adding data to local stores.
58 virtual void AddPasswordForm(const webkit::forms::PasswordForm& form); 56 virtual void AddPasswordForm(const content::PasswordForm& form);
59 57
60 #if defined(OS_WIN) 58 #if defined(OS_WIN)
61 virtual void AddIE7PasswordInfo(const IE7PasswordInfo& info); 59 virtual void AddIE7PasswordInfo(const IE7PasswordInfo& info);
62 #endif 60 #endif
63 61
64 virtual void AddHistoryPage(const history::URLRows& page, 62 virtual void AddHistoryPage(const history::URLRows& page,
65 history::VisitSource visit_source); 63 history::VisitSource visit_source);
66 64
67 virtual void AddHomepage(const GURL& homepage); 65 virtual void AddHomepage(const GURL& homepage);
68 66
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 104
107 virtual ~ProfileWriter(); 105 virtual ~ProfileWriter();
108 106
109 private: 107 private:
110 Profile* const profile_; 108 Profile* const profile_;
111 109
112 DISALLOW_COPY_AND_ASSIGN(ProfileWriter); 110 DISALLOW_COPY_AND_ASSIGN(ProfileWriter);
113 }; 111 };
114 112
115 #endif // CHROME_BROWSER_IMPORTER_PROFILE_WRITER_H_ 113 #endif // CHROME_BROWSER_IMPORTER_PROFILE_WRITER_H_
OLDNEW
« no previous file with comments | « chrome/browser/importer/profile_import_process_messages.h ('k') | chrome/browser/importer/profile_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698