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

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

Issue 1028163002: Processing USERNAME reply from Autofill server in Password Manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed many reviewer comments Created 5 years, 9 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_DRIVER_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_DRIVER_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_DRIVER_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_DRIVER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 15 matching lines...) Expand all
26 bool IsOffTheRecord() const override; 26 bool IsOffTheRecord() const override;
27 // Returns the value passed in to the last call to |SetURLRequestContext()| 27 // Returns the value passed in to the last call to |SetURLRequestContext()|
28 // or NULL if that method has never been called. 28 // or NULL if that method has never been called.
29 net::URLRequestContextGetter* GetURLRequestContext() override; 29 net::URLRequestContextGetter* GetURLRequestContext() override;
30 base::SequencedWorkerPool* GetBlockingPool() override; 30 base::SequencedWorkerPool* GetBlockingPool() override;
31 bool RendererIsAvailable() override; 31 bool RendererIsAvailable() override;
32 void SendFormDataToRenderer(int query_id, 32 void SendFormDataToRenderer(int query_id,
33 RendererFormDataAction action, 33 RendererFormDataAction action,
34 const FormData& data) override; 34 const FormData& data) override;
35 void PingRenderer() override; 35 void PingRenderer() override;
36 void DetectAccountCreationForms( 36 void PropagateAutofillPredictions(
37 const std::vector<autofill::FormStructure*>& forms) override; 37 const std::vector<autofill::FormStructure*>& forms) override;
38 void SendAutofillTypePredictionsToRenderer( 38 void SendAutofillTypePredictionsToRenderer(
39 const std::vector<FormStructure*>& forms) override; 39 const std::vector<FormStructure*>& forms) override;
40 void RendererShouldAcceptDataListSuggestion( 40 void RendererShouldAcceptDataListSuggestion(
41 const base::string16& value) override; 41 const base::string16& value) override;
42 void RendererShouldClearFilledForm() override; 42 void RendererShouldClearFilledForm() override;
43 void RendererShouldClearPreviewedForm() override; 43 void RendererShouldClearPreviewedForm() override;
44 void RendererShouldFillFieldWithValue(const base::string16& value) override; 44 void RendererShouldFillFieldWithValue(const base::string16& value) override;
45 void RendererShouldPreviewFieldWithValue( 45 void RendererShouldPreviewFieldWithValue(
46 const base::string16& value) override; 46 const base::string16& value) override;
47 void PopupHidden() override; 47 void PopupHidden() override;
48 48
49 // Methods that tests can use to specialize functionality. 49 // Methods that tests can use to specialize functionality.
50 50
51 // Sets the URL request context for this instance. |url_request_context| 51 // Sets the URL request context for this instance. |url_request_context|
52 // should outlive this instance. 52 // should outlive this instance.
53 void SetURLRequestContext(net::URLRequestContextGetter* url_request_context); 53 void SetURLRequestContext(net::URLRequestContextGetter* url_request_context);
54 54
55 private: 55 private:
56 scoped_ptr<base::SequencedWorkerPoolOwner> blocking_pool_owner_; 56 scoped_ptr<base::SequencedWorkerPoolOwner> blocking_pool_owner_;
57 net::URLRequestContextGetter* url_request_context_; 57 net::URLRequestContextGetter* url_request_context_;
58 58
59 DISALLOW_COPY_AND_ASSIGN(TestAutofillDriver); 59 DISALLOW_COPY_AND_ASSIGN(TestAutofillDriver);
60 }; 60 };
61 61
62 } // namespace autofill 62 } // namespace autofill
63 63
64 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_DRIVER_H_ 64 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_AUTOFILL_DRIVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698