Home | History | Annotate | Download | only in global_error
      1 // Copyright (c) 2012 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_GLOBAL_ERROR_GLOBAL_ERROR_BUBBLE_VIEW_BASE_H_
      6 #define CHROME_BROWSER_UI_GLOBAL_ERROR_GLOBAL_ERROR_BUBBLE_VIEW_BASE_H_
      7 
      8 #include "base/basictypes.h"
      9 #include "base/memory/weak_ptr.h"
     10 
     11 class Browser;
     12 class GlobalErrorWithStandardBubble;
     13 
     14 class GlobalErrorBubbleViewBase {
     15  public:
     16   static GlobalErrorBubbleViewBase* ShowStandardBubbleView(
     17       Browser* browser,
     18       const base::WeakPtr<GlobalErrorWithStandardBubble>& error);
     19 
     20   virtual ~GlobalErrorBubbleViewBase() {}
     21 
     22   // Close the bubble view.
     23   virtual void CloseBubbleView() = 0;
     24 };
     25 
     26 #endif  // CHROME_BROWSER_UI_GLOBAL_ERROR_GLOBAL_ERROR_BUBBLE_VIEW_BASE_H_
     27