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

Side by Side Diff: components/password_manager/core/browser/stub_password_manager_driver.h

Issue 611383002: Replace OVERRIDE with its C++11 counterpart in components/password_manager/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_STUB_PASSWORD_MANAGER_DRIVER_H_ 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_STUB_PASSWORD_MANAGER_DRIVER_H_
6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_STUB_PASSWORD_MANAGER_DRIVER_H_ 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_STUB_PASSWORD_MANAGER_DRIVER_H_
7 7
8 #include "components/password_manager/core/browser/password_manager_driver.h" 8 #include "components/password_manager/core/browser/password_manager_driver.h"
9 9
10 namespace password_manager { 10 namespace password_manager {
11 11
12 // Use this class as a base for mock or test drivers to avoid stubbing 12 // Use this class as a base for mock or test drivers to avoid stubbing
13 // uninteresting pure virtual methods. All the implemented methods are just 13 // uninteresting pure virtual methods. All the implemented methods are just
14 // trivial stubs. Do NOT use in production, only use in tests. 14 // trivial stubs. Do NOT use in production, only use in tests.
15 class StubPasswordManagerDriver : public PasswordManagerDriver { 15 class StubPasswordManagerDriver : public PasswordManagerDriver {
16 public: 16 public:
17 StubPasswordManagerDriver(); 17 StubPasswordManagerDriver();
18 virtual ~StubPasswordManagerDriver(); 18 virtual ~StubPasswordManagerDriver();
19 19
20 // PasswordManagerDriver: 20 // PasswordManagerDriver:
21 virtual void FillPasswordForm( 21 virtual void FillPasswordForm(
22 const autofill::PasswordFormFillData& form_data) OVERRIDE; 22 const autofill::PasswordFormFillData& form_data) override;
23 virtual bool DidLastPageLoadEncounterSSLErrors() OVERRIDE; 23 virtual bool DidLastPageLoadEncounterSSLErrors() override;
24 virtual bool IsOffTheRecord() OVERRIDE; 24 virtual bool IsOffTheRecord() override;
25 virtual void AllowPasswordGenerationForForm( 25 virtual void AllowPasswordGenerationForForm(
26 const autofill::PasswordForm& form) OVERRIDE; 26 const autofill::PasswordForm& form) override;
27 virtual void AccountCreationFormsFound( 27 virtual void AccountCreationFormsFound(
28 const std::vector<autofill::FormData>& forms) OVERRIDE; 28 const std::vector<autofill::FormData>& forms) override;
29 virtual void FillSuggestion(const base::string16& username, 29 virtual void FillSuggestion(const base::string16& username,
30 const base::string16& password) OVERRIDE; 30 const base::string16& password) override;
31 virtual void PreviewSuggestion(const base::string16& username, 31 virtual void PreviewSuggestion(const base::string16& username,
32 const base::string16& password) OVERRIDE; 32 const base::string16& password) override;
33 virtual void ClearPreviewedForm() OVERRIDE; 33 virtual void ClearPreviewedForm() override;
34 virtual PasswordGenerationManager* GetPasswordGenerationManager() OVERRIDE; 34 virtual PasswordGenerationManager* GetPasswordGenerationManager() override;
35 virtual PasswordManager* GetPasswordManager() OVERRIDE; 35 virtual PasswordManager* GetPasswordManager() override;
36 virtual PasswordAutofillManager* GetPasswordAutofillManager() OVERRIDE; 36 virtual PasswordAutofillManager* GetPasswordAutofillManager() override;
37 virtual autofill::AutofillManager* GetAutofillManager() OVERRIDE; 37 virtual autofill::AutofillManager* GetAutofillManager() override;
38 38
39 private: 39 private:
40 DISALLOW_COPY_AND_ASSIGN(StubPasswordManagerDriver); 40 DISALLOW_COPY_AND_ASSIGN(StubPasswordManagerDriver);
41 }; 41 };
42 42
43 } // namespace password_manager 43 } // namespace password_manager
44 44
45 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_STUB_PASSWORD_MANAGER_DRIVER _H_ 45 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_STUB_PASSWORD_MANAGER_DRIVER _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698