| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_PROXY_OVERRIDDEN_BUBBLE_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_PROXY_OVERRIDDEN_BUBBLE_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_PROXY_OVERRIDDEN_BUBBLE_DELEGATE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_PROXY_OVERRIDDEN_BUBBLE_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "chrome/browser/extensions/extension_message_bubble_controller.h" | 13 #include "chrome/browser/extensions/extension_message_bubble_controller.h" |
| 14 | 14 |
| 15 class Browser; | |
| 16 | |
| 17 namespace extensions { | 15 namespace extensions { |
| 18 | 16 |
| 19 class ProxyOverriddenBubbleDelegate | 17 class ProxyOverriddenBubbleDelegate |
| 20 : public ExtensionMessageBubbleController::Delegate { | 18 : public ExtensionMessageBubbleController::Delegate { |
| 21 public: | 19 public: |
| 22 explicit ProxyOverriddenBubbleDelegate(Profile* profile); | 20 explicit ProxyOverriddenBubbleDelegate(Profile* profile); |
| 23 ~ProxyOverriddenBubbleDelegate() override; | 21 ~ProxyOverriddenBubbleDelegate() override; |
| 24 | 22 |
| 25 // ExtensionMessageBubbleController::Delegate methods. | 23 // ExtensionMessageBubbleController::Delegate methods. |
| 26 bool ShouldIncludeExtension(const Extension* extension) override; | 24 bool ShouldIncludeExtension(const Extension* extension) override; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 48 private: | 46 private: |
| 49 // The ID of the extension we are showing the bubble for. | 47 // The ID of the extension we are showing the bubble for. |
| 50 std::string extension_id_; | 48 std::string extension_id_; |
| 51 | 49 |
| 52 DISALLOW_COPY_AND_ASSIGN(ProxyOverriddenBubbleDelegate); | 50 DISALLOW_COPY_AND_ASSIGN(ProxyOverriddenBubbleDelegate); |
| 53 }; | 51 }; |
| 54 | 52 |
| 55 } // namespace extensions | 53 } // namespace extensions |
| 56 | 54 |
| 57 #endif // CHROME_BROWSER_EXTENSIONS_PROXY_OVERRIDDEN_BUBBLE_DELEGATE_H_ | 55 #endif // CHROME_BROWSER_EXTENSIONS_PROXY_OVERRIDDEN_BUBBLE_DELEGATE_H_ |
| OLD | NEW |