Home | History | Annotate | Download | only in autofill
      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 CHROME_BROWSER_UI_AUTOFILL_AUTOCHECKOUT_BUBBLE_H_
      6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOCHECKOUT_BUBBLE_H_
      7 
      8 #include "base/memory/scoped_ptr.h"
      9 #include "base/memory/weak_ptr.h"
     10 
     11 namespace autofill {
     12 
     13 class AutocheckoutBubbleController;
     14 
     15 class AutocheckoutBubble : public base::SupportsWeakPtr<AutocheckoutBubble> {
     16  public:
     17   virtual ~AutocheckoutBubble();
     18 
     19   // Show the Autocheckout bubble.
     20   virtual void ShowBubble() = 0;
     21 
     22   // Hide the Autocheckout bubble.
     23   virtual void HideBubble() = 0;
     24 
     25   // Creates the Autocheckout bubble. The returned bubble owns itself.
     26   static base::WeakPtr<AutocheckoutBubble> Create(
     27       scoped_ptr<AutocheckoutBubbleController> controller);
     28 };
     29 
     30 }  // namespace autofill
     31 
     32 #endif  // CHROME_BROWSER_UI_AUTOFILL_AUTOCHECKOUT_BUBBLE_H_
     33