Chromium Code Reviews| Index: chrome/browser/custom_handlers/register_protocol_handler_permission_delegate.h |
| diff --git a/chrome/browser/custom_handlers/register_protocol_handler_permission_delegate.h b/chrome/browser/custom_handlers/register_protocol_handler_permission_delegate.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..ba9f7b35da6fddf7fd1319c55650dc44a7ebee54 |
| --- /dev/null |
| +++ b/chrome/browser/custom_handlers/register_protocol_handler_permission_delegate.h |
| @@ -0,0 +1,38 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_CUSTOM_HANDLERS_REGISTER_PROTOCOL_HANDLER_PERMISSION_DELEGATE_H_ |
| +#define CHROME_BROWSER_CUSTOM_HANDLERS_REGISTER_PROTOCOL_HANDLER_PERMISSION_DELEGATE_H_ |
| + |
| +#include "chrome/browser/ui/website_settings/permission_bubble_delegate.h" |
| +#include "chrome/common/custom_handlers/protocol_handler.h" |
| + |
| +class ProtocolHandlerRegistry; |
| + |
| +class RegisterProtocolHandlerPermissionDelegate |
|
koz (OOO until 15th September)
2014/02/06 03:03:26
Could you add a class comment describing when this
Greg Billock
2014/02/06 22:23:49
Yeah, I didn't get the actual call site included.
|
| + : public PermissionBubbleDelegate { |
| + public: |
| + RegisterProtocolHandlerPermissionDelegate( |
| + ProtocolHandlerRegistry* registry, |
| + const ProtocolHandler& handler); |
| + virtual ~RegisterProtocolHandlerPermissionDelegate(); |
| + |
| + // PermissionBubbleDelegate: |
| + virtual base::string16 GetMessageText() const OVERRIDE; |
| + virtual base::string16 GetMessageTextFragment() const OVERRIDE; |
| + virtual base::string16 GetAlternateAcceptButtonText() const OVERRIDE; |
| + virtual base::string16 GetAlternateDenyButtonText() const OVERRIDE; |
| + virtual void PermissionGranted() OVERRIDE; |
| + virtual void PermissionDenied() OVERRIDE; |
| + virtual void Cancelled() OVERRIDE; |
| + virtual void RequestFinished() OVERRIDE; |
| + |
| + private: |
| + ProtocolHandlerRegistry* registry_; |
| + ProtocolHandler handler_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(RegisterProtocolHandlerPermissionDelegate); |
| +}; |
| + |
| +#endif // CHROME_BROWSER_CUSTOM_HANDLERS_REGISTER_PROTOCOL_HANDLER_PERMISSION_DELEGATE_H_ |