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

Side by Side Diff: components/autofill/browser/autocheckout_page_meta_data.h

Issue 16611003: Ignore ajax on specified pages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove some debug statements I missed before Created 7 years, 6 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_BROWSER_AUTOCHECKOUT_PAGE_META_DATA_H_ 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_AUTOCHECKOUT_PAGE_META_DATA_H_
6 #define COMPONENTS_AUTOFILL_BROWSER_AUTOCHECKOUT_PAGE_META_DATA_H_ 6 #define COMPONENTS_AUTOFILL_BROWSER_AUTOCHECKOUT_PAGE_META_DATA_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 20 matching lines...) Expand all
31 31
32 // Page number of the multipage Autofill flow this form belongs to 32 // Page number of the multipage Autofill flow this form belongs to
33 // (zero-indexed). If this form doesn't belong to any autofill flow, it is set 33 // (zero-indexed). If this form doesn't belong to any autofill flow, it is set
34 // to -1. 34 // to -1.
35 int current_page_number; 35 int current_page_number;
36 36
37 // Total number of pages in the multipage Autofill flow. If this form doesn't 37 // Total number of pages in the multipage Autofill flow. If this form doesn't
38 // belong to any autofill flow, it is set to -1. 38 // belong to any autofill flow, it is set to -1.
39 int total_pages; 39 int total_pages;
40 40
41 bool ignore_ajax;
ahutter 2013/06/07 17:37:47 docs
Dane Wallinga 2013/06/07 21:06:47 Done.
42
41 // A list of elements to click before filling form fields. Elements have to be 43 // A list of elements to click before filling form fields. Elements have to be
42 // clicked in order. 44 // clicked in order.
43 std::vector<WebElementDescriptor> click_elements_before_form_fill; 45 std::vector<WebElementDescriptor> click_elements_before_form_fill;
44 46
45 // A list of elements to click after filling form fields, and before clicking 47 // A list of elements to click after filling form fields, and before clicking
46 // page_advance_button. Elements have to be clicked in order. 48 // page_advance_button. Elements have to be clicked in order.
47 std::vector<WebElementDescriptor> click_elements_after_form_fill; 49 std::vector<WebElementDescriptor> click_elements_after_form_fill;
48 50
49 // The proceed element of the multipage Autofill flow. It can be empty 51 // The proceed element of the multipage Autofill flow. It can be empty
50 // if current page is the last page of a flow or isn't a member of a flow. 52 // if current page is the last page of a flow or isn't a member of a flow.
51 // 53 //
52 // We do expect page navigation when click on |proceed_element_descriptor|, 54 // We do expect page navigation when click on |proceed_element_descriptor|,
53 // and report an error if it doesn't. Oppositely, we do not expect page 55 // and report an error if it doesn't. Oppositely, we do not expect page
54 // navigation when click elements in |click_elements_before_form_fill| and 56 // navigation when click elements in |click_elements_before_form_fill| and
55 // |click_elements_after_form_fill|. Because of this behavior difference and 57 // |click_elements_after_form_fill|. Because of this behavior difference and
56 // |proceed_element_descriptor| is optional, we separate it from 58 // |proceed_element_descriptor| is optional, we separate it from
57 // |click_elements_after_form_fill|. 59 // |click_elements_after_form_fill|.
58 WebElementDescriptor proceed_element_descriptor; 60 WebElementDescriptor proceed_element_descriptor;
59 61
60 private: 62 private:
61 DISALLOW_COPY_AND_ASSIGN(AutocheckoutPageMetaData); 63 DISALLOW_COPY_AND_ASSIGN(AutocheckoutPageMetaData);
62 }; 64 };
63 65
64 } // namespace autofill 66 } // namespace autofill
65 67
66 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOCHECKOUT_PAGE_META_DATA_H_ 68 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOCHECKOUT_PAGE_META_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698