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

Side by Side Diff: content/public/browser/content_browser_client.h

Issue 11266008: Fix certificate and keychain installation on Android. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: separate android and openssl CertDatabase implementations Created 8 years 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
« no previous file with comments | « content/content_browser.gypi ('k') | net/android/java/CertificateMimeType.template » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/callback_forward.h" 12 #include "base/callback_forward.h"
13 #include "content/public/browser/file_descriptor_info.h" 13 #include "content/public/browser/file_descriptor_info.h"
14 #include "content/public/common/socket_permission_request.h" 14 #include "content/public/common/socket_permission_request.h"
15 #include "content/public/common/content_client.h" 15 #include "content/public/common/content_client.h"
16 #include "content/public/common/window_container_type.h" 16 #include "content/public/common/window_container_type.h"
17 #include "net/base/mime_util.h"
17 #include "net/cookies/canonical_cookie.h" 18 #include "net/cookies/canonical_cookie.h"
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresen ter.h" 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresen ter.h"
19 20
20 #if defined(OS_POSIX) && !defined(OS_MACOSX) 21 #if defined(OS_POSIX) && !defined(OS_MACOSX)
21 #include "base/posix/global_descriptors.h" 22 #include "base/posix/global_descriptors.h"
22 #endif 23 #endif
23 24
24 25
25 class CommandLine; 26 class CommandLine;
26 class FilePath; 27 class FilePath;
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 326
326 // Selects a SSL client certificate and returns it to the |callback|. If no 327 // Selects a SSL client certificate and returns it to the |callback|. If no
327 // certificate was selected NULL is returned to the |callback|. 328 // certificate was selected NULL is returned to the |callback|.
328 virtual void SelectClientCertificate( 329 virtual void SelectClientCertificate(
329 int render_process_id, 330 int render_process_id,
330 int render_view_id, 331 int render_view_id,
331 const net::HttpNetworkSession* network_session, 332 const net::HttpNetworkSession* network_session,
332 net::SSLCertRequestInfo* cert_request_info, 333 net::SSLCertRequestInfo* cert_request_info,
333 const base::Callback<void(net::X509Certificate*)>& callback) {} 334 const base::Callback<void(net::X509Certificate*)>& callback) {}
334 335
335 // Adds a downloaded client cert. The embedder should ensure that there's 336 // Adds a new installable certificate or private key.
336 // a private key for the cert, displays the cert to the user, and adds it upon 337 // Typically used to install an X.509 user certificate.
337 // user approval. If the downloaded data could not be interpreted as a valid 338 // Note that it's up to the embedder to verify that the data is
338 // certificate, |cert| will be NULL. 339 // well-formed. |cert_data| will be NULL if file_size is 0.
339 virtual void AddNewCertificate( 340 virtual void AddCertificate(
340 net::URLRequest* request, 341 net::URLRequest* request,
341 net::X509Certificate* cert, 342 net::CertificateMimeType cert_type,
343 const void* cert_data,
344 size_t cert_size,
342 int render_process_id, 345 int render_process_id,
343 int render_view_id) {} 346 int render_view_id) {}
344 347
345 // Returns a a class to get notifications about media event. The embedder can 348 // Returns a a class to get notifications about media event. The embedder can
346 // return NULL if they're not interested. 349 // return NULL if they're not interested.
347 virtual MediaObserver* GetMediaObserver(); 350 virtual MediaObserver* GetMediaObserver();
348 351
349 // Asks permission to show desktop notifications. 352 // Asks permission to show desktop notifications.
350 virtual void RequestDesktopNotificationPermission( 353 virtual void RequestDesktopNotificationPermission(
351 const GURL& source_origin, 354 const GURL& source_origin,
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 // This is called on a worker thread. 484 // This is called on a worker thread.
482 virtual 485 virtual
483 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 486 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
484 const GURL& url); 487 const GURL& url);
485 #endif 488 #endif
486 }; 489 };
487 490
488 } // namespace content 491 } // namespace content
489 492
490 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 493 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/content_browser.gypi ('k') | net/android/java/CertificateMimeType.template » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698