| 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/custom_handlers/protocol_handler_registry.h" | 5 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "chrome/browser/custom_handlers/register_protocol_handler_infobar_deleg
ate.h" | 12 #include "chrome/browser/custom_handlers/register_protocol_handler_infobar_deleg
ate.h" |
| 13 #include "chrome/browser/net/chrome_url_request_context.h" | 13 #include "chrome/browser/net/chrome_url_request_context.h" |
| 14 #include "chrome/browser/prefs/pref_service.h" | 14 #include "chrome/browser/prefs/pref_service.h" |
| 15 #include "chrome/browser/profiles/profile_io_data.h" | 15 #include "chrome/browser/profiles/profile_io_data.h" |
| 16 #include "chrome/common/chrome_notification_types.h" | 16 #include "chrome/common/chrome_notification_types.h" |
| 17 #include "chrome/common/chrome_switches.h" | 17 #include "chrome/common/chrome_switches.h" |
| 18 #include "chrome/common/custom_handlers/protocol_handler.h" | 18 #include "chrome/common/custom_handlers/protocol_handler.h" |
| 19 #include "chrome/common/pref_names.h" | 19 #include "chrome/common/pref_names.h" |
| 20 #include "content/browser/child_process_security_policy.h" | 20 #include "content/browser/child_process_security_policy.h" |
| 21 #include "content/public/browser/browser_thread.h" | 21 #include "content/public/browser/browser_thread.h" |
| 22 #include "content/public/browser/notification_service.h" | 22 #include "content/public/browser/notification_service.h" |
| 23 #include "net/base/network_delegate.h" | 23 #include "net/base/network_delegate.h" |
| 24 #include "net/url_request/url_request_redirect_job.h" | 24 #include "net/url_request/url_request_redirect_job.h" |
| 25 | 25 |
| 26 using content::BrowserThread; |
| 27 |
| 26 // ProtocolHandlerRegistry ----------------------------------------------------- | 28 // ProtocolHandlerRegistry ----------------------------------------------------- |
| 27 | 29 |
| 28 ProtocolHandlerRegistry::ProtocolHandlerRegistry(Profile* profile, | 30 ProtocolHandlerRegistry::ProtocolHandlerRegistry(Profile* profile, |
| 29 Delegate* delegate) | 31 Delegate* delegate) |
| 30 : profile_(profile), | 32 : profile_(profile), |
| 31 delegate_(delegate), | 33 delegate_(delegate), |
| 32 enabled_(true), | 34 enabled_(true), |
| 33 enabled_io_(enabled_), | 35 enabled_io_(enabled_), |
| 34 is_loading_(false) { | 36 is_loading_(false) { |
| 35 } | 37 } |
| (...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 704 } | 706 } |
| 705 } else { | 707 } else { |
| 706 NOTREACHED(); | 708 NOTREACHED(); |
| 707 } | 709 } |
| 708 } | 710 } |
| 709 | 711 |
| 710 void ProtocolHandlerRegistry::DefaultClientObserver::SetWorker( | 712 void ProtocolHandlerRegistry::DefaultClientObserver::SetWorker( |
| 711 ShellIntegration::DefaultProtocolClientWorker* worker) { | 713 ShellIntegration::DefaultProtocolClientWorker* worker) { |
| 712 worker_ = worker; | 714 worker_ = worker; |
| 713 } | 715 } |
| OLD | NEW |