Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
|
grt (UTC plus 2)
2012/06/19 20:43:09
2012
motek.
2012/06/20 16:02:15
Done.
| |
| 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_handler.h" | 5 #include "chrome/browser/external_protocol/external_protocol_handler.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 87 int tab_contents_id, | 87 int tab_contents_id, |
| 88 bool prompt_user, | 88 bool prompt_user, |
| 89 ExternalProtocolHandler::Delegate* delegate) | 89 ExternalProtocolHandler::Delegate* delegate) |
| 90 : delegate_(delegate), | 90 : delegate_(delegate), |
| 91 escaped_url_(escaped_url), | 91 escaped_url_(escaped_url), |
| 92 render_process_host_id_(render_process_host_id), | 92 render_process_host_id_(render_process_host_id), |
| 93 tab_contents_id_(tab_contents_id), | 93 tab_contents_id_(tab_contents_id), |
| 94 prompt_user_(prompt_user) {} | 94 prompt_user_(prompt_user) {} |
| 95 | 95 |
| 96 virtual void SetDefaultWebClientUIState( | 96 virtual void SetDefaultWebClientUIState( |
| 97 ShellIntegration::DefaultWebClientUIState state) OVERRIDE { | 97 ShellIntegration::DefaultWebClientUIState state, |
| 98 ShellIntegration::SetDefaultWebClientResult unused_result) OVERRIDE { | |
| 98 DCHECK_EQ(MessageLoop::TYPE_UI, MessageLoop::current()->type()); | 99 DCHECK_EQ(MessageLoop::TYPE_UI, MessageLoop::current()->type()); |
| 99 | 100 |
| 100 // If we are still working out if we're the default, or we've found | 101 // If we are still working out if we're the default, or we've found |
| 101 // out we definately are the default, we end here. | 102 // out we definately are the default, we end here. |
| 102 if (state == ShellIntegration::STATE_PROCESSING) { | 103 if (state == ShellIntegration::STATE_PROCESSING) { |
| 103 return; | 104 return; |
| 104 } | 105 } |
| 105 | 106 |
| 106 if (delegate_) | 107 if (delegate_) |
| 107 delegate_->FinishedProcessingCheck(); | 108 delegate_->FinishedProcessingCheck(); |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 296 // static | 297 // static |
| 297 void ExternalProtocolHandler::RegisterPrefs(PrefService* prefs) { | 298 void ExternalProtocolHandler::RegisterPrefs(PrefService* prefs) { |
| 298 prefs->RegisterDictionaryPref(prefs::kExcludedSchemes); | 299 prefs->RegisterDictionaryPref(prefs::kExcludedSchemes); |
| 299 } | 300 } |
| 300 | 301 |
| 301 // static | 302 // static |
| 302 void ExternalProtocolHandler::PermitLaunchUrl() { | 303 void ExternalProtocolHandler::PermitLaunchUrl() { |
| 303 DCHECK_EQ(MessageLoop::TYPE_UI, MessageLoop::current()->type()); | 304 DCHECK_EQ(MessageLoop::TYPE_UI, MessageLoop::current()->type()); |
| 304 g_accept_requests = true; | 305 g_accept_requests = true; |
| 305 } | 306 } |
| OLD | NEW |