Include all dupe types (event when value is zero) in scan stats.
[chromium-blink-merge.git] / components / autofill / core / common / web_element_descriptor.h
blob6f41cbb5d732f0d8d138a6031de8784827a7509f
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
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_AUTOFILL_CORE_COMMON_WEB_ELEMENT_DESCRIPTOR_H_
6 #define COMPONENTS_AUTOFILL_CORE_COMMON_WEB_ELEMENT_DESCRIPTOR_H_
8 #include <string>
10 namespace autofill {
12 // Holds information that can be used to retrieve an element.
13 struct WebElementDescriptor {
14 enum RetrievalMethod {
15 CSS_SELECTOR,
16 ID,
17 NONE,
20 WebElementDescriptor();
22 // Information to retrieve element with.
23 std::string descriptor;
25 // Which retrieval method to use.
26 RetrievalMethod retrieval_method;
29 } // namespace autofill
31 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_WEB_ELEMENT_DESCRIPTOR_H_