Home | History | Annotate | Download | only in browser
      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.
      4 
      5 #ifndef COMPONENTS_AUTOFILL_BROWSER_AUTOCHECKOUT_STEPS_H_
      6 #define COMPONENTS_AUTOFILL_BROWSER_AUTOCHECKOUT_STEPS_H_
      7 
      8 namespace autofill {
      9 
     10 // Stages of a buy flow that may be encountered on an Autocheckout-supported
     11 // site, used primarily for display purposes.
     12 // Indexed for easy conversion from int values returned by Autofill server.
     13 enum AutocheckoutStepType {
     14   AUTOCHECKOUT_STEP_MIN_VALUE = 1,
     15   AUTOCHECKOUT_STEP_SHIPPING = AUTOCHECKOUT_STEP_MIN_VALUE,
     16   AUTOCHECKOUT_STEP_DELIVERY = 2,
     17   AUTOCHECKOUT_STEP_BILLING = 3,
     18   AUTOCHECKOUT_STEP_PROXY_CARD = 4,
     19   AUTOCHECKOUT_STEP_MAX_VALUE = AUTOCHECKOUT_STEP_PROXY_CARD,
     20 };
     21 
     22 // Possible statuses for the above step types, again used primarily for display.
     23 enum AutocheckoutStepStatus {
     24   AUTOCHECKOUT_STEP_UNSTARTED,
     25   AUTOCHECKOUT_STEP_STARTED,
     26   AUTOCHECKOUT_STEP_COMPLETED,
     27   AUTOCHECKOUT_STEP_FAILED,
     28 };
     29 
     30 }  // namespace autofill
     31 
     32 #endif  // COMPONENTS_AUTOFILL_BROWSER_AUTOCHECKOUT_STEPS_H_
     33