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 #include "chrome/browser/external_protocol/external_protocol_observer.h" | 5 #include "chrome/browser/external_protocol/external_protocol_observer.h" |
6 | 6 |
7 #include "chrome/browser/external_protocol/external_protocol_handler.h" | 7 #include "chrome/browser/external_protocol/external_protocol_handler.h" |
8 | 8 |
9 using content::WebContents; | 9 using content::WebContents; |
10 | 10 |
| 11 int ExternalProtocolObserver::kUserDataKey; |
| 12 |
11 ExternalProtocolObserver::ExternalProtocolObserver(WebContents* web_contents) | 13 ExternalProtocolObserver::ExternalProtocolObserver(WebContents* web_contents) |
12 : content::WebContentsObserver(web_contents) { | 14 : content::WebContentsObserver(web_contents) { |
13 } | 15 } |
14 | 16 |
15 ExternalProtocolObserver::~ExternalProtocolObserver() { | 17 ExternalProtocolObserver::~ExternalProtocolObserver() { |
16 } | 18 } |
17 | 19 |
18 void ExternalProtocolObserver::DidGetUserGesture() { | 20 void ExternalProtocolObserver::DidGetUserGesture() { |
19 ExternalProtocolHandler::PermitLaunchUrl(); | 21 ExternalProtocolHandler::PermitLaunchUrl(); |
20 } | 22 } |
OLD | NEW |