Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(497)

Side by Side Diff: chrome/browser/custom_handlers/protocol_handler_registry.cc

Issue 9360014: Create a content public browser API around the ChildProcessSecurityPolicy class. The implementati... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "chrome/browser/custom_handlers/register_protocol_handler_infobar_deleg ate.h" 13 #include "chrome/browser/custom_handlers/register_protocol_handler_infobar_deleg ate.h"
14 #include "chrome/browser/net/chrome_url_request_context.h" 14 #include "chrome/browser/net/chrome_url_request_context.h"
15 #include "chrome/browser/prefs/pref_service.h" 15 #include "chrome/browser/prefs/pref_service.h"
16 #include "chrome/browser/profiles/profile_io_data.h" 16 #include "chrome/browser/profiles/profile_io_data.h"
17 #include "chrome/common/chrome_notification_types.h" 17 #include "chrome/common/chrome_notification_types.h"
18 #include "chrome/common/chrome_switches.h" 18 #include "chrome/common/chrome_switches.h"
19 #include "chrome/common/custom_handlers/protocol_handler.h" 19 #include "chrome/common/custom_handlers/protocol_handler.h"
20 #include "chrome/common/pref_names.h" 20 #include "chrome/common/pref_names.h"
21 #include "content/browser/child_process_security_policy.h"
22 #include "content/public/browser/browser_thread.h" 21 #include "content/public/browser/browser_thread.h"
22 #include "content/public/browser/child_process_security_policy.h"
23 #include "content/public/browser/notification_service.h" 23 #include "content/public/browser/notification_service.h"
24 #include "net/base/network_delegate.h" 24 #include "net/base/network_delegate.h"
25 #include "net/url_request/url_request_redirect_job.h" 25 #include "net/url_request/url_request_redirect_job.h"
26 26
27 using content::BrowserThread; 27 using content::BrowserThread;
28 using content::ChildProcessSecurityPolicy;
28 29
29 // ProtocolHandlerRegistry ----------------------------------------------------- 30 // ProtocolHandlerRegistry -----------------------------------------------------
30 31
31 ProtocolHandlerRegistry::ProtocolHandlerRegistry(Profile* profile, 32 ProtocolHandlerRegistry::ProtocolHandlerRegistry(Profile* profile,
32 Delegate* delegate) 33 Delegate* delegate)
33 : profile_(profile), 34 : profile_(profile),
34 delegate_(delegate), 35 delegate_(delegate),
35 enabled_(true), 36 enabled_(true),
36 enabled_io_(enabled_), 37 enabled_io_(enabled_),
37 is_loading_(false) { 38 is_loading_(false) {
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 } 706 }
706 } else { 707 } else {
707 NOTREACHED(); 708 NOTREACHED();
708 } 709 }
709 } 710 }
710 711
711 void ProtocolHandlerRegistry::DefaultClientObserver::SetWorker( 712 void ProtocolHandlerRegistry::DefaultClientObserver::SetWorker(
712 ShellIntegration::DefaultProtocolClientWorker* worker) { 713 ShellIntegration::DefaultProtocolClientWorker* worker) {
713 worker_ = worker; 714 worker_ = worker;
714 } 715 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/registration_screen.cc ('k') | chrome/browser/extensions/extension_file_browser_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698