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

Side by Side Diff: components/autofill/core/browser/test_autofill_client.h

Issue 1136473006: Don't autofill credit cards on non-secure pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add period Created 5 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 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_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 const std::vector<base::string16>& labels) override; 49 const std::vector<base::string16>& labels) override;
50 void HideAutofillPopup() override; 50 void HideAutofillPopup() override;
51 bool IsAutocompleteEnabled() override; 51 bool IsAutocompleteEnabled() override;
52 void PropagateAutofillPredictions( 52 void PropagateAutofillPredictions(
53 content::RenderFrameHost* rfh, 53 content::RenderFrameHost* rfh,
54 const std::vector<autofill::FormStructure*>& forms) override; 54 const std::vector<autofill::FormStructure*>& forms) override;
55 void DidFillOrPreviewField(const base::string16& autofilled_value, 55 void DidFillOrPreviewField(const base::string16& autofilled_value,
56 const base::string16& profile_full_name) override; 56 const base::string16& profile_full_name) override;
57 void OnFirstUserGestureObserved() override; 57 void OnFirstUserGestureObserved() override;
58 void LinkClicked(const GURL& url, WindowOpenDisposition disposition) override; 58 void LinkClicked(const GURL& url, WindowOpenDisposition disposition) override;
59 bool IsContextSecure(const GURL& form_origin) override;
60
61 void set_is_context_secure(bool is_context_secure) {
62 is_context_secure_ = is_context_secure;
63 };
59 64
60 void SetPrefs(scoped_ptr<PrefService> prefs) { prefs_ = prefs.Pass(); } 65 void SetPrefs(scoped_ptr<PrefService> prefs) { prefs_ = prefs.Pass(); }
61 66
62 rappor::TestRapporService* test_rappor_service() { 67 rappor::TestRapporService* test_rappor_service() {
63 return rappor_service_.get(); 68 return rappor_service_.get();
64 } 69 }
65 70
66 private: 71 private:
67 // NULL by default. 72 // NULL by default.
68 scoped_ptr<PrefService> prefs_; 73 scoped_ptr<PrefService> prefs_;
69 scoped_ptr<FakeOAuth2TokenService> token_service_; 74 scoped_ptr<FakeOAuth2TokenService> token_service_;
70 scoped_ptr<FakeIdentityProvider> identity_provider_; 75 scoped_ptr<FakeIdentityProvider> identity_provider_;
71 scoped_ptr<rappor::TestRapporService> rappor_service_; 76 scoped_ptr<rappor::TestRapporService> rappor_service_;
72 77
78 bool is_context_secure_;
79
73 DISALLOW_COPY_AND_ASSIGN(TestAutofillClient); 80 DISALLOW_COPY_AND_ASSIGN(TestAutofillClient);
74 }; 81 };
75 82
76 } // namespace autofill 83 } // namespace autofill
77 84
78 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_ 85 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698