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 #include "chrome/browser/password_manager/login_database.h" | 5 #include "chrome/browser/password_manager/login_database.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/metrics/histogram.h" | 13 #include "base/metrics/histogram.h" |
14 #include "base/pickle.h" | 14 #include "base/pickle.h" |
15 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
16 #include "base/time.h" | 16 #include "base/time/time.h" |
17 #include "chrome/common/chrome_switches.h" | 17 #include "chrome/common/chrome_switches.h" |
18 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" | 18 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
19 #include "sql/connection.h" | 19 #include "sql/connection.h" |
20 #include "sql/statement.h" | 20 #include "sql/statement.h" |
21 #include "sql/transaction.h" | 21 #include "sql/transaction.h" |
22 | 22 |
23 using content::PasswordForm; | 23 using content::PasswordForm; |
24 | 24 |
25 static const int kCurrentVersionNumber = 3; | 25 static const int kCurrentVersionNumber = 3; |
26 static const int kCompatibleVersionNumber = 1; | 26 static const int kCompatibleVersionNumber = 1; |
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 std::vector<string16> LoginDatabase::DeserializeVector(const Pickle& p) const { | 549 std::vector<string16> LoginDatabase::DeserializeVector(const Pickle& p) const { |
550 std::vector<string16> ret; | 550 std::vector<string16> ret; |
551 string16 str; | 551 string16 str; |
552 | 552 |
553 PickleIterator iterator(p); | 553 PickleIterator iterator(p); |
554 while (iterator.ReadString16(&str)) { | 554 while (iterator.ReadString16(&str)) { |
555 ret.push_back(str); | 555 ret.push_back(str); |
556 } | 556 } |
557 return ret; | 557 return ret; |
558 } | 558 } |
OLD | NEW |