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

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 11266008: Fix certificate and keychain installation on Android. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: move some code to chrome/browser/ssl/ Created 8 years, 1 month 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
OLDNEW
1 // Copyright (c) 2012 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/chrome_content_browser_client.h" 5 #include "chrome/browser/chrome_content_browser_client.h"
6 6
7 #include <set> 7 #include <set>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 #include "chrome/browser/profiles/profile.h" 56 #include "chrome/browser/profiles/profile.h"
57 #include "chrome/browser/profiles/profile_io_data.h" 57 #include "chrome/browser/profiles/profile_io_data.h"
58 #include "chrome/browser/profiles/profile_manager.h" 58 #include "chrome/browser/profiles/profile_manager.h"
59 #include "chrome/browser/renderer_host/chrome_render_message_filter.h" 59 #include "chrome/browser/renderer_host/chrome_render_message_filter.h"
60 #include "chrome/browser/renderer_host/chrome_render_view_host_observer.h" 60 #include "chrome/browser/renderer_host/chrome_render_view_host_observer.h"
61 #include "chrome/browser/renderer_host/pepper/chrome_browser_pepper_host_factory .h" 61 #include "chrome/browser/renderer_host/pepper/chrome_browser_pepper_host_factory .h"
62 #include "chrome/browser/renderer_host/plugin_info_message_filter.h" 62 #include "chrome/browser/renderer_host/plugin_info_message_filter.h"
63 #include "chrome/browser/search_engines/search_provider_install_state_message_fi lter.h" 63 #include "chrome/browser/search_engines/search_provider_install_state_message_fi lter.h"
64 #include "chrome/browser/speech/chrome_speech_recognition_manager_delegate.h" 64 #include "chrome/browser/speech/chrome_speech_recognition_manager_delegate.h"
65 #include "chrome/browser/spellchecker/spellcheck_message_filter.h" 65 #include "chrome/browser/spellchecker/spellcheck_message_filter.h"
66 #include "chrome/browser/ssl/ssl_add_cert_handler.h" 66 #include "chrome/browser/ssl/ssl_add_certificate.h"
67 #include "chrome/browser/ssl/ssl_blocking_page.h" 67 #include "chrome/browser/ssl/ssl_blocking_page.h"
68 #include "chrome/browser/ssl/ssl_tab_helper.h" 68 #include "chrome/browser/ssl/ssl_tab_helper.h"
69 #include "chrome/browser/tab_contents/tab_util.h" 69 #include "chrome/browser/tab_contents/tab_util.h"
70 #include "chrome/browser/toolkit_extra_parts.h" 70 #include "chrome/browser/toolkit_extra_parts.h"
71 #include "chrome/browser/ui/tab_contents/chrome_web_contents_view_delegate.h" 71 #include "chrome/browser/ui/tab_contents/chrome_web_contents_view_delegate.h"
72 #include "chrome/browser/ui/tab_contents/tab_contents.h" 72 #include "chrome/browser/ui/tab_contents/tab_contents.h"
73 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h" 73 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h"
74 #include "chrome/browser/user_style_sheet_watcher.h" 74 #include "chrome/browser/user_style_sheet_watcher.h"
75 #include "chrome/browser/user_style_sheet_watcher_factory.h" 75 #include "chrome/browser/user_style_sheet_watcher_factory.h"
76 #include "chrome/browser/view_type_utils.h" 76 #include "chrome/browser/view_type_utils.h"
(...skipping 21 matching lines...) Expand all
98 #include "content/public/browser/resource_context.h" 98 #include "content/public/browser/resource_context.h"
99 #include "content/public/browser/site_instance.h" 99 #include "content/public/browser/site_instance.h"
100 #include "content/public/browser/web_contents.h" 100 #include "content/public/browser/web_contents.h"
101 #include "content/public/browser/web_contents_view.h" 101 #include "content/public/browser/web_contents_view.h"
102 #include "content/public/common/child_process_host.h" 102 #include "content/public/common/child_process_host.h"
103 #include "content/public/common/content_descriptors.h" 103 #include "content/public/common/content_descriptors.h"
104 #include "extensions/common/constants.h" 104 #include "extensions/common/constants.h"
105 #include "grit/generated_resources.h" 105 #include "grit/generated_resources.h"
106 #include "grit/ui_resources.h" 106 #include "grit/ui_resources.h"
107 #include "net/base/escape.h" 107 #include "net/base/escape.h"
108 #include "net/base/mime_util.h"
108 #include "net/base/ssl_cert_request_info.h" 109 #include "net/base/ssl_cert_request_info.h"
109 #include "net/cookies/canonical_cookie.h" 110 #include "net/cookies/canonical_cookie.h"
110 #include "net/cookies/cookie_options.h" 111 #include "net/cookies/cookie_options.h"
111 #include "ppapi/host/ppapi_host.h" 112 #include "ppapi/host/ppapi_host.h"
112 #include "ui/base/l10n/l10n_util.h" 113 #include "ui/base/l10n/l10n_util.h"
113 #include "ui/base/resource/resource_bundle.h" 114 #include "ui/base/resource/resource_bundle.h"
114 #include "webkit/glue/webpreferences.h" 115 #include "webkit/glue/webpreferences.h"
115 #include "webkit/plugins/plugin_switches.h" 116 #include "webkit/plugins/plugin_switches.h"
116 117
117 #if defined(OS_WIN) 118 #if defined(OS_WIN)
(...skipping 1207 matching lines...) Expand 10 before | Expand all | Expand 10 after
1325 // If there is no SSLTabHelper for the given WebContents then we can't 1326 // If there is no SSLTabHelper for the given WebContents then we can't
1326 // show the user a dialog to select a client certificate. So we simply 1327 // show the user a dialog to select a client certificate. So we simply
1327 // proceed with no client certificate. 1328 // proceed with no client certificate.
1328 callback.Run(NULL); 1329 callback.Run(NULL);
1329 return; 1330 return;
1330 } 1331 }
1331 ssl_tab_helper->ShowClientCertificateRequestDialog( 1332 ssl_tab_helper->ShowClientCertificateRequestDialog(
1332 network_session, cert_request_info, callback); 1333 network_session, cert_request_info, callback);
1333 } 1334 }
1334 1335
1335 void ChromeContentBrowserClient::AddNewCertificate( 1336 void ChromeContentBrowserClient::AddCertificate(
1336 net::URLRequest* request, 1337 net::URLRequest* request,
1337 net::X509Certificate* cert, 1338 net::CertificateType cert_type,
1339 const void* cert_data,
1340 size_t cert_size,
1338 int render_process_id, 1341 int render_process_id,
1339 int render_view_id) { 1342 int render_view_id) {
1340 // The handler will run the UI and delete itself when it's finished. 1343 chrome::SSLAddCertificate(request, cert_type, cert_data, cert_size,
1341 new SSLAddCertHandler(request, cert, render_process_id, render_view_id); 1344 render_process_id, render_view_id);
1342 } 1345 }
1343 1346
1344 content::MediaObserver* ChromeContentBrowserClient::GetMediaObserver() { 1347 content::MediaObserver* ChromeContentBrowserClient::GetMediaObserver() {
1345 return MediaInternals::GetInstance(); 1348 return MediaInternals::GetInstance();
1346 } 1349 }
1347 1350
1348 void ChromeContentBrowserClient::RequestDesktopNotificationPermission( 1351 void ChromeContentBrowserClient::RequestDesktopNotificationPermission(
1349 const GURL& source_origin, 1352 const GURL& source_origin,
1350 int callback_context, 1353 int callback_context,
1351 int render_process_id, 1354 int render_process_id,
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
1934 io_thread_application_locale_ = locale; 1937 io_thread_application_locale_ = locale;
1935 } 1938 }
1936 1939
1937 void ChromeContentBrowserClient::SetApplicationLocaleOnIOThread( 1940 void ChromeContentBrowserClient::SetApplicationLocaleOnIOThread(
1938 const std::string& locale) { 1941 const std::string& locale) {
1939 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 1942 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
1940 io_thread_application_locale_ = locale; 1943 io_thread_application_locale_ = locale;
1941 } 1944 }
1942 1945
1943 } // namespace chrome 1946 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698