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

Unified Diff: chrome/browser/sync/glue/password_model_associator.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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/glue/password_model_associator.h
diff --git a/chrome/browser/sync/glue/password_model_associator.h b/chrome/browser/sync/glue/password_model_associator.h
index c356a6395dbae4ed14adf21d176756e66622f527..22c1df8d394a5c488ca70b65d99967d2f7fce408 100644
--- a/chrome/browser/sync/glue/password_model_associator.h
+++ b/chrome/browser/sync/glue/password_model_associator.h
@@ -22,14 +22,16 @@ class MessageLoop;
class PasswordStore;
class ProfileSyncService;
-namespace webkit_glue {
+namespace webkit {
+namespace forms {
struct PasswordForm;
-};
+}
+}
namespace sync_api {
class WriteNode;
class WriteTransaction;
-};
+}
namespace browser_sync {
@@ -43,7 +45,7 @@ extern const char kPasswordTag[];
class PasswordModelAssociator
: public PerDataTypeAssociatorInterface<std::string, std::string> {
public:
- typedef std::vector<webkit_glue::PasswordForm> PasswordVector;
+ typedef std::vector<webkit::forms::PasswordForm> PasswordVector;
static syncable::ModelType model_type() { return syncable::PASSWORDS; }
PasswordModelAssociator(ProfileSyncService* sync_service,
@@ -96,7 +98,7 @@ class PasswordModelAssociator
const PasswordVector* updated_passwords,
const PasswordVector* deleted_passwords);
- static std::string MakeTag(const webkit_glue::PasswordForm& password);
+ static std::string MakeTag(const webkit::forms::PasswordForm& password);
static std::string MakeTag(const sync_pb::PasswordSpecificsData& password);
static std::string MakeTag(const std::string& origin_url,
const std::string& username_element,
@@ -105,12 +107,12 @@ class PasswordModelAssociator
const std::string& signon_realm);
static void CopyPassword(const sync_pb::PasswordSpecificsData& password,
- webkit_glue::PasswordForm* new_password);
+ webkit::forms::PasswordForm* new_password);
static bool MergePasswords(const sync_pb::PasswordSpecificsData& password,
- const webkit_glue::PasswordForm& password_form,
- webkit_glue::PasswordForm* new_password);
- static void WriteToSyncNode(const webkit_glue::PasswordForm& password_form,
+ const webkit::forms::PasswordForm& password_form,
+ webkit::forms::PasswordForm* new_password);
+ static void WriteToSyncNode(const webkit::forms::PasswordForm& password_form,
sync_api::WriteNode* node);
// Called at various points in model association to determine if the
« no previous file with comments | « chrome/browser/sync/glue/password_change_processor.cc ('k') | chrome/browser/sync/glue/password_model_associator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698