Chromium Code Reviews| Index: components/browsing_data/core/counters/passwords_counter.h |
| diff --git a/chrome/browser/browsing_data/passwords_counter.h b/components/browsing_data/core/counters/passwords_counter.h |
| similarity index 70% |
| rename from chrome/browser/browsing_data/passwords_counter.h |
| rename to components/browsing_data/core/counters/passwords_counter.h |
| index 499a5024656d0e507b4802acfd6273fde3fa315a..a2d1a8751a9526662dc3dda8761398cefe0e2c83 100644 |
| --- a/chrome/browser/browsing_data/passwords_counter.h |
| +++ b/components/browsing_data/core/counters/passwords_counter.h |
| @@ -1,29 +1,27 @@ |
| -// Copyright (c) 2015 The Chromium Authors. All rights reserved. |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| -#ifndef CHROME_BROWSER_BROWSING_DATA_PASSWORDS_COUNTER_H_ |
| -#define CHROME_BROWSER_BROWSING_DATA_PASSWORDS_COUNTER_H_ |
| +#ifndef COMPONENTS_BROWSING_DATA_CORE_COUNTERS_PASSWORDS_COUNTER_H_ |
| +#define COMPONENTS_BROWSING_DATA_CORE_COUNTERS_PASSWORDS_COUNTER_H_ |
| #include "components/browsing_data/core/counters/browsing_data_counter.h" |
| #include "components/password_manager/core/browser/password_store.h" |
| #include "components/password_manager/core/browser/password_store_consumer.h" |
| -class Profile; |
| +namespace browsing_data { |
| class PasswordsCounter : public browsing_data::BrowsingDataCounter, |
| public password_manager::PasswordStoreConsumer, |
| public password_manager::PasswordStore::Observer { |
| public: |
| - explicit PasswordsCounter(Profile* profile); |
| + explicit PasswordsCounter( |
| + scoped_refptr<password_manager::PasswordStore> store); |
| ~PasswordsCounter() override; |
| - private: |
| - base::CancelableTaskTracker cancelable_task_tracker_; |
| - scoped_refptr<password_manager::PasswordStore> store_; |
| - |
| - Profile* profile_; |
| + const std::string& GetPrefName() const override; |
| + private: |
| void OnInitialized() override; |
| // Counting is done asynchronously in a request to PasswordStore. |
| @@ -37,6 +35,11 @@ class PasswordsCounter : public browsing_data::BrowsingDataCounter, |
| const password_manager::PasswordStoreChangeList& changes) override; |
| void Count() override; |
| + |
| + const std::string pref_name_; |
| + base::CancelableTaskTracker cancelable_task_tracker_; |
| + scoped_refptr<password_manager::PasswordStore> store_; |
| }; |
| -#endif // CHROME_BROWSER_BROWSING_DATA_PASSWORDS_COUNTER_H_ |
| +} // namespace browsing_data |
|
msramek
2016/07/20 13:41:16
nit: Empty line
ioanap
2016/07/20 17:50:37
Done.
|
| +#endif // COMPONENTS_BROWSING_DATA_CORE_COUNTERS_PASSWORDS_COUNTER_H_ |