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/memory/weak_ptr.h" 9 10 class Browser; 11 class GlobalErrorWithStandardBubble; 12 13 class GlobalErrorBubbleViewBase { 14 public: 15 static GlobalErrorBubbleViewBase* ShowStandardBubbleView( 16 Browser* browser, 17 const base::WeakPtr<GlobalErrorWithStandardBubble>& error); 18 ~GlobalErrorBubbleViewBase()19 virtual ~GlobalErrorBubbleViewBase() {} 20 21 // Close the bubble view. 22 virtual void CloseBubbleView() = 0; 23 }; 24 25 #endif // CHROME_BROWSER_UI_GLOBAL_ERROR_GLOBAL_ERROR_BUBBLE_VIEW_BASE_H_ 26