summaryrefslogtreecommitdiff
path: root/chromium/components/autofill/core/common/web_element_descriptor.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/components/autofill/core/common/web_element_descriptor.h')
-rw-r--r--chromium/components/autofill/core/common/web_element_descriptor.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/chromium/components/autofill/core/common/web_element_descriptor.h b/chromium/components/autofill/core/common/web_element_descriptor.h
new file mode 100644
index 00000000000..6f41cbb5d73
--- /dev/null
+++ b/chromium/components/autofill/core/common/web_element_descriptor.h
@@ -0,0 +1,31 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_AUTOFILL_CORE_COMMON_WEB_ELEMENT_DESCRIPTOR_H_
+#define COMPONENTS_AUTOFILL_CORE_COMMON_WEB_ELEMENT_DESCRIPTOR_H_
+
+#include <string>
+
+namespace autofill {
+
+// Holds information that can be used to retrieve an element.
+struct WebElementDescriptor {
+ enum RetrievalMethod {
+ CSS_SELECTOR,
+ ID,
+ NONE,
+ };
+
+ WebElementDescriptor();
+
+ // Information to retrieve element with.
+ std::string descriptor;
+
+ // Which retrieval method to use.
+ RetrievalMethod retrieval_method;
+};
+
+} // namespace autofill
+
+#endif // COMPONENTS_AUTOFILL_CORE_COMMON_WEB_ELEMENT_DESCRIPTOR_H_