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

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

Issue 11031043: Fix handling of user and CA certificates on Android. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 2 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
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>
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 // Adds a downloaded client cert. The embedder should ensure that there's 327 // Adds a downloaded client cert. The embedder should ensure that there's
328 // a private key for the cert, displays the cert to the user, and adds it upon 328 // a private key for the cert, displays the cert to the user, and adds it upon
329 // user approval. If the downloaded data could not be interpreted as a valid 329 // user approval. If the downloaded data could not be interpreted as a valid
330 // certificate, |cert| will be NULL. 330 // certificate, |cert| will be NULL.
331 virtual void AddNewCertificate( 331 virtual void AddNewCertificate(
332 net::URLRequest* request, 332 net::URLRequest* request,
333 net::X509Certificate* cert, 333 net::X509Certificate* cert,
334 int render_process_id, 334 int render_process_id,
335 int render_view_id) {} 335 int render_view_id) {}
336 336
337 #if defined(OS_ANDROID)
338 // Adds either a DER-encoded X-509 certificate or PKCS#12 keychain
339 // through the Android system's CertInstaller activity.
340 virtual void AddNewCertificateOrKeychainAndroid(
341 net::URLRequest* request,
342 const char* data,
343 size_t data_len,
344 bool is_pkcs12) {}
345 #endif
346
337 // Returns a a class to get notifications about media event. The embedder can 347 // Returns a a class to get notifications about media event. The embedder can
338 // return NULL if they're not interested. 348 // return NULL if they're not interested.
339 virtual MediaObserver* GetMediaObserver(); 349 virtual MediaObserver* GetMediaObserver();
340 350
341 // Asks permission to show desktop notifications. 351 // Asks permission to show desktop notifications.
342 virtual void RequestDesktopNotificationPermission( 352 virtual void RequestDesktopNotificationPermission(
343 const GURL& source_origin, 353 const GURL& source_origin,
344 int callback_context, 354 int callback_context,
345 int render_process_id, 355 int render_process_id,
346 int render_view_id) {} 356 int render_view_id) {}
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 // This is called on a worker thread. 477 // This is called on a worker thread.
468 virtual 478 virtual
469 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 479 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
470 const GURL& url); 480 const GURL& url);
471 #endif 481 #endif
472 }; 482 };
473 483
474 } // namespace content 484 } // namespace content
475 485
476 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 486 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698