OLD | NEW |
---|---|
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 Loading... | |
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; | |
Evan Stade
2015/06/29 17:38:54
nit: is_context_secure() const (and inline the imp
sigbjorn
2015/06/30 07:12:13
This is an override, so that means I'd have to cha
Evan Stade
2015/06/30 15:47:13
ah, yea, nevermind about that one
| |
59 | 60 |
61 void SetContextSecurity(bool is_context_secure); | |
Evan Stade
2015/06/29 17:38:54
nit: set_is_context_secure() (and inline the impl)
| |
60 void SetPrefs(scoped_ptr<PrefService> prefs) { prefs_ = prefs.Pass(); } | 62 void SetPrefs(scoped_ptr<PrefService> prefs) { prefs_ = prefs.Pass(); } |
61 | 63 |
62 rappor::TestRapporService* test_rappor_service() { | 64 rappor::TestRapporService* test_rappor_service() { |
63 return rappor_service_.get(); | 65 return rappor_service_.get(); |
64 } | 66 } |
65 | 67 |
66 private: | 68 private: |
67 // NULL by default. | 69 // NULL by default. |
68 scoped_ptr<PrefService> prefs_; | 70 scoped_ptr<PrefService> prefs_; |
69 scoped_ptr<FakeOAuth2TokenService> token_service_; | 71 scoped_ptr<FakeOAuth2TokenService> token_service_; |
70 scoped_ptr<FakeIdentityProvider> identity_provider_; | 72 scoped_ptr<FakeIdentityProvider> identity_provider_; |
71 scoped_ptr<rappor::TestRapporService> rappor_service_; | 73 scoped_ptr<rappor::TestRapporService> rappor_service_; |
72 | 74 |
75 bool is_context_secure_; | |
76 | |
73 DISALLOW_COPY_AND_ASSIGN(TestAutofillClient); | 77 DISALLOW_COPY_AND_ASSIGN(TestAutofillClient); |
74 }; | 78 }; |
75 | 79 |
76 } // namespace autofill | 80 } // namespace autofill |
77 | 81 |
78 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_ | 82 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_CLIENT_H_ |
OLD | NEW |