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

Unified Diff: chrome/browser/browsing_data/passwords_counter.h

Issue 2153863002: Move counters for passwords, history and autofill to components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@separate_build_targets_in_components_bd
Patch Set: Addressed comments Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/browsing_data/passwords_counter.h
diff --git a/chrome/browser/browsing_data/passwords_counter.h b/chrome/browser/browsing_data/passwords_counter.h
deleted file mode 100644
index 499a5024656d0e507b4802acfd6273fde3fa315a..0000000000000000000000000000000000000000
--- a/chrome/browser/browsing_data/passwords_counter.h
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright (c) 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_
-
-#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;
-
-class PasswordsCounter : public browsing_data::BrowsingDataCounter,
- public password_manager::PasswordStoreConsumer,
- public password_manager::PasswordStore::Observer {
- public:
- explicit PasswordsCounter(Profile* profile);
- ~PasswordsCounter() override;
-
- private:
- base::CancelableTaskTracker cancelable_task_tracker_;
- scoped_refptr<password_manager::PasswordStore> store_;
-
- Profile* profile_;
-
- void OnInitialized() override;
-
- // Counting is done asynchronously in a request to PasswordStore.
- // This callback returns the results, which are subsequently reported.
- void OnGetPasswordStoreResults(
- ScopedVector<autofill::PasswordForm> results) override;
-
- // Called when the contents of the password store change. Triggers new
- // counting.
- void OnLoginsChanged(
- const password_manager::PasswordStoreChangeList& changes) override;
-
- void Count() override;
-};
-
-#endif // CHROME_BROWSER_BROWSING_DATA_PASSWORDS_COUNTER_H_
« no previous file with comments | « chrome/browser/browsing_data/media_licenses_counter.cc ('k') | chrome/browser/browsing_data/passwords_counter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698