| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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_EXTERNAL_PROTOCOL_EXTERNAL_PROTOCOL_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_EXTERNAL_PROTOCOL_EXTERNAL_PROTOCOL_HANDLER_H_ |
| 6 #define CHROME_BROWSER_EXTERNAL_PROTOCOL_EXTERNAL_PROTOCOL_HANDLER_H_ | 6 #define CHROME_BROWSER_EXTERNAL_PROTOCOL_EXTERNAL_PROTOCOL_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 // to protect against this scenario. | 133 // to protect against this scenario. |
| 134 // This is implemented separately on each platform. | 134 // This is implemented separately on each platform. |
| 135 // TODO(davidsac): Consider refactoring this to take a WebContents directly. | 135 // TODO(davidsac): Consider refactoring this to take a WebContents directly. |
| 136 // crbug.com/668289 | 136 // crbug.com/668289 |
| 137 static void RunExternalProtocolDialog(const GURL& url, | 137 static void RunExternalProtocolDialog(const GURL& url, |
| 138 int render_process_host_id, | 138 int render_process_host_id, |
| 139 int routing_id, | 139 int routing_id, |
| 140 ui::PageTransition page_transition, | 140 ui::PageTransition page_transition, |
| 141 bool has_user_gesture); | 141 bool has_user_gesture); |
| 142 | 142 |
| 143 // Clears the external protocol handling data. |
| 144 static void ClearData(Profile* profile); |
| 145 |
| 143 private: | 146 private: |
| 144 DISALLOW_COPY_AND_ASSIGN(ExternalProtocolHandler); | 147 DISALLOW_COPY_AND_ASSIGN(ExternalProtocolHandler); |
| 145 }; | 148 }; |
| 146 | 149 |
| 147 #endif // CHROME_BROWSER_EXTERNAL_PROTOCOL_EXTERNAL_PROTOCOL_HANDLER_H_ | 150 #endif // CHROME_BROWSER_EXTERNAL_PROTOCOL_EXTERNAL_PROTOCOL_HANDLER_H_ |
| OLD | NEW |