Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1512)

Side by Side Diff: chrome/browser/extensions/extension_global_error.h

Issue 8176001: Warn user in case extension delays network traffic too much. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Cleanup Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2011 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_EXTENSIONS_EXTENSION_GLOBAL_ERROR_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_GLOBAL_ERROR_H_
7 #pragma once
8
9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h"
11 #include "chrome/browser/ui/global_error.h"
12
13 // GlobalError implementation that warns the user if extensions created
14 // warnings or errors. If the user clicks on the wrench menu, the user
15 // is redirected to chrome://extensions to inspect the errors.
16 class ExtensionGlobalError : public GlobalError {
17 public:
18 ExtensionGlobalError();
19 virtual ~ExtensionGlobalError();
20
21 // Implementation for GlobalError:
22 virtual bool HasBadge() OVERRIDE;
23
24 virtual bool HasMenuItem() OVERRIDE;
25 virtual int MenuItemCommandID() OVERRIDE;
26 virtual string16 MenuItemLabel() OVERRIDE;
27 virtual void ExecuteMenuItem(Browser* browser) OVERRIDE;
28
29 virtual bool HasBubbleView() OVERRIDE;
30 virtual string16 GetBubbleViewTitle() OVERRIDE;
31 virtual string16 GetBubbleViewMessage() OVERRIDE;
32 virtual string16 GetBubbleViewAcceptButtonLabel() OVERRIDE;
33 virtual string16 GetBubbleViewCancelButtonLabel() OVERRIDE;
34 virtual void BubbleViewDidClose() OVERRIDE;
35 virtual void BubbleViewAcceptButtonPressed() OVERRIDE;
36 virtual void BubbleViewCancelButtonPressed() OVERRIDE;
37
38 private:
39 DISALLOW_COPY_AND_ASSIGN(ExtensionGlobalError);
40 };
41
42 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_GLOBAL_ERROR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698