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

Side by Side Diff: chrome/browser/ui/extensions/extension_message_bubble_factory.h

Issue 1087713002: [Reland] [Extensions] Make extension message bubble factory platform-abstract (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Finnur's Created 5 years, 8 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 2015 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_EXTENSIONS_EXTENSION_MESSAGE_BUBBLE_FACTORY_H_
6 #define CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_MESSAGE_BUBBLE_FACTORY_H_
7
8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10
11 class Profile;
12
13 namespace extensions {
14 class ExtensionMessageBubbleController;
15 } // namespace extensions
16
17 // Create and show ExtensionMessageBubbles for either extensions that look
18 // suspicious and have therefore been disabled, or for extensions that are
19 // running in developer mode that we want to warn the user about.
20 class ExtensionMessageBubbleFactory {
21 public:
22 explicit ExtensionMessageBubbleFactory(Profile* profile);
23 ~ExtensionMessageBubbleFactory();
24
25 // Returns the controller for the bubble that should be shown, if any.
26 scoped_ptr<extensions::ExtensionMessageBubbleController> GetController();
27
28 // Enables the bubbles across all platforms for testing.
29 static void set_enabled_for_tests(bool enabled);
30
31 private:
32 Profile* profile_;
33
34 DISALLOW_COPY_AND_ASSIGN(ExtensionMessageBubbleFactory);
35 };
36
37 #endif // CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_MESSAGE_BUBBLE_FACTORY_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/extensions/OWNERS ('k') | chrome/browser/ui/extensions/extension_message_bubble_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698