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

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

Issue 8680040: Group forms-related files in webkit/glue in a forms/ subdirectory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + another build fix Created 9 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 | Annotate | Revision Log
OLDNEW
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 #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 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.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_glue { 22 namespace webkit {
23 namespace forms {
23 struct PasswordForm; 24 struct PasswordForm;
24 } 25 }
26 }
25 27
26 #if defined(OS_WIN) 28 #if defined(OS_WIN)
27 struct IE7PasswordInfo; 29 struct IE7PasswordInfo;
28 #endif 30 #endif
29 31
30 // ProfileWriter encapsulates profile for writing entries into it. 32 // ProfileWriter encapsulates profile for writing entries into it.
31 // This object must be invoked on UI thread. 33 // This object must be invoked on UI thread.
32 class ProfileWriter : public base::RefCountedThreadSafe<ProfileWriter> { 34 class ProfileWriter : public base::RefCountedThreadSafe<ProfileWriter> {
33 public: 35 public:
34 struct BookmarkEntry { 36 struct BookmarkEntry {
(...skipping 10 matching lines...) Expand all
45 47
46 explicit ProfileWriter(Profile* profile); 48 explicit ProfileWriter(Profile* profile);
47 49
48 // These functions return true if the corresponding model has been loaded. 50 // These functions return true if the corresponding model has been loaded.
49 // If the models haven't been loaded, the importer waits to run until they've 51 // If the models haven't been loaded, the importer waits to run until they've
50 // completed. 52 // completed.
51 virtual bool BookmarkModelIsLoaded() const; 53 virtual bool BookmarkModelIsLoaded() const;
52 virtual bool TemplateURLServiceIsLoaded() const; 54 virtual bool TemplateURLServiceIsLoaded() const;
53 55
54 // Helper methods for adding data to local stores. 56 // Helper methods for adding data to local stores.
55 virtual void AddPasswordForm(const webkit_glue::PasswordForm& form); 57 virtual void AddPasswordForm(const webkit::forms::PasswordForm& form);
56 58
57 #if defined(OS_WIN) 59 #if defined(OS_WIN)
58 virtual void AddIE7PasswordInfo(const IE7PasswordInfo& info); 60 virtual void AddIE7PasswordInfo(const IE7PasswordInfo& info);
59 #endif 61 #endif
60 62
61 virtual void AddHistoryPage(const std::vector<history::URLRow>& page, 63 virtual void AddHistoryPage(const std::vector<history::URLRow>& page,
62 history::VisitSource visit_source); 64 history::VisitSource visit_source);
63 65
64 virtual void AddHomepage(const GURL& homepage); 66 virtual void AddHomepage(const GURL& homepage);
65 67
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 108
107 virtual ~ProfileWriter(); 109 virtual ~ProfileWriter();
108 110
109 private: 111 private:
110 Profile* const profile_; 112 Profile* const profile_;
111 113
112 DISALLOW_COPY_AND_ASSIGN(ProfileWriter); 114 DISALLOW_COPY_AND_ASSIGN(ProfileWriter);
113 }; 115 };
114 116
115 #endif // CHROME_BROWSER_IMPORTER_PROFILE_WRITER_H_ 117 #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