OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_handler.h" | 5 #include "chrome/browser/external_protocol_handler.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 #include <shellapi.h> | 8 #include <shellapi.h> |
9 #include <set> | 9 #include <set> |
10 | 10 |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
13 #include "base/registry.h" | 13 #include "base/registry.h" |
14 #include "base/scoped_ptr.h" | |
15 #include "base/string_util.h" | 14 #include "base/string_util.h" |
16 #include "base/thread.h" | 15 #include "base/thread.h" |
17 #include "chrome/browser/browser.h" | 16 #include "chrome/browser/browser.h" |
18 #include "chrome/browser/browser_process_impl.h" | 17 #include "chrome/browser/browser_process_impl.h" |
19 #include "chrome/browser/views/external_protocol_dialog.h" | 18 #include "chrome/browser/views/external_protocol_dialog.h" |
20 #include "chrome/common/pref_service.h" | 19 #include "chrome/common/pref_service.h" |
21 #include "chrome/common/pref_names.h" | 20 #include "chrome/common/pref_names.h" |
22 #include "googleurl/src/gurl.h" | 21 #include "googleurl/src/gurl.h" |
23 #include "net/base/escape.h" | 22 #include "net/base/escape.h" |
24 | 23 |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 // TODO(nsylvain): we should also add a dialog to warn on errors. See | 186 // TODO(nsylvain): we should also add a dialog to warn on errors. See |
188 // bug 1136923. | 187 // bug 1136923. |
189 return; | 188 return; |
190 } | 189 } |
191 } | 190 } |
192 | 191 |
193 // static | 192 // static |
194 void ExternalProtocolHandler::RegisterPrefs(PrefService* prefs) { | 193 void ExternalProtocolHandler::RegisterPrefs(PrefService* prefs) { |
195 prefs->RegisterDictionaryPref(prefs::kExcludedSchemes); | 194 prefs->RegisterDictionaryPref(prefs::kExcludedSchemes); |
196 } | 195 } |
OLD | NEW |