| 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_CUSTOM_HANDLERS_REGISTER_PROTOCOL_HANDLER_PERMISSION_REQU
EST_H_ | 5 #ifndef CHROME_BROWSER_CUSTOM_HANDLERS_REGISTER_PROTOCOL_HANDLER_PERMISSION_REQU
EST_H_ |
| 6 #define CHROME_BROWSER_CUSTOM_HANDLERS_REGISTER_PROTOCOL_HANDLER_PERMISSION_REQU
EST_H_ | 6 #define CHROME_BROWSER_CUSTOM_HANDLERS_REGISTER_PROTOCOL_HANDLER_PERMISSION_REQU
EST_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "chrome/browser/ui/website_settings/permission_bubble_request.h" | 9 #include "chrome/browser/ui/website_settings/permission_bubble_request.h" |
| 10 #include "chrome/common/custom_handlers/protocol_handler.h" | 10 #include "chrome/common/custom_handlers/protocol_handler.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 GURL url, | 23 GURL url, |
| 24 bool user_gesture); | 24 bool user_gesture); |
| 25 ~RegisterProtocolHandlerPermissionRequest() override; | 25 ~RegisterProtocolHandlerPermissionRequest() override; |
| 26 | 26 |
| 27 // PermissionBubbleRequest: | 27 // PermissionBubbleRequest: |
| 28 gfx::VectorIconId GetVectorIconId() const override; | 28 gfx::VectorIconId GetVectorIconId() const override; |
| 29 int GetIconId() const override; | 29 int GetIconId() const override; |
| 30 base::string16 GetMessageText() const override; | 30 base::string16 GetMessageText() const override; |
| 31 base::string16 GetMessageTextFragment() const override; | 31 base::string16 GetMessageTextFragment() const override; |
| 32 bool HasUserGesture() const override; | 32 bool HasUserGesture() const override; |
| 33 GURL GetRequestingHostname() const override; | 33 GURL GetOrigin() const override; |
| 34 void PermissionGranted() override; | 34 void PermissionGranted() override; |
| 35 void PermissionDenied() override; | 35 void PermissionDenied() override; |
| 36 void Cancelled() override; | 36 void Cancelled() override; |
| 37 void RequestFinished() override; | 37 void RequestFinished() override; |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 ProtocolHandlerRegistry* registry_; | 40 ProtocolHandlerRegistry* registry_; |
| 41 ProtocolHandler handler_; | 41 ProtocolHandler handler_; |
| 42 GURL url_; | 42 GURL origin_; |
| 43 bool user_gesture_; | 43 bool user_gesture_; |
| 44 | 44 |
| 45 DISALLOW_COPY_AND_ASSIGN(RegisterProtocolHandlerPermissionRequest); | 45 DISALLOW_COPY_AND_ASSIGN(RegisterProtocolHandlerPermissionRequest); |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 #endif // CHROME_BROWSER_CUSTOM_HANDLERS_REGISTER_PROTOCOL_HANDLER_PERMISSION_R
EQUEST_H_ | 48 #endif // CHROME_BROWSER_CUSTOM_HANDLERS_REGISTER_PROTOCOL_HANDLER_PERMISSION_R
EQUEST_H_ |
| OLD | NEW |