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

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: Implement Ryan's suggested improvements 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 #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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 318
318 // Selects a SSL client certificate and returns it to the |callback|. If no 319 // Selects a SSL client certificate and returns it to the |callback|. If no
319 // certificate was selected NULL is returned to the |callback|. 320 // certificate was selected NULL is returned to the |callback|.
320 virtual void SelectClientCertificate( 321 virtual void SelectClientCertificate(
321 int render_process_id, 322 int render_process_id,
322 int render_view_id, 323 int render_view_id,
323 const net::HttpNetworkSession* network_session, 324 const net::HttpNetworkSession* network_session,
324 net::SSLCertRequestInfo* cert_request_info, 325 net::SSLCertRequestInfo* cert_request_info,
325 const base::Callback<void(net::X509Certificate*)>& callback) {} 326 const base::Callback<void(net::X509Certificate*)>& callback) {}
326 327
327 // Adds a downloaded client cert. The embedder should ensure that there's 328 // Adds a new installable certificate or private key. This is a
328 // a private key for the cert, displays the cert to the user, and adds it upon 329 // downloaded resource which satisfies
329 // user approval. If the downloaded data could not be interpreted as a valid 330 // net::IsSupportedCertificateMimeType(mime_type).
330 // certificate, |cert| will be NULL. 331 // Typically used to install an X.509 user certificate.
331 virtual void AddNewCertificate( 332 // Note that it's up to the embedder to parse the data.
333 // |cert_data| will be NULL if file_size is 0.
334 virtual void AddCertificates(
332 net::URLRequest* request, 335 net::URLRequest* request,
333 net::X509Certificate* cert, 336 net::CertificateType cert_type,
337 const void* cert_data,
338 size_t cert_size,
334 int render_process_id, 339 int render_process_id,
335 int render_view_id) {} 340 int render_view_id) {}
336 341
337 // Returns a a class to get notifications about media event. The embedder can 342 // Returns a a class to get notifications about media event. The embedder can
338 // return NULL if they're not interested. 343 // return NULL if they're not interested.
339 virtual MediaObserver* GetMediaObserver(); 344 virtual MediaObserver* GetMediaObserver();
340 345
341 // Asks permission to show desktop notifications. 346 // Asks permission to show desktop notifications.
342 virtual void RequestDesktopNotificationPermission( 347 virtual void RequestDesktopNotificationPermission(
343 const GURL& source_origin, 348 const GURL& source_origin,
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 // This is called on a worker thread. 481 // This is called on a worker thread.
477 virtual 482 virtual
478 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 483 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
479 const GURL& url); 484 const GURL& url);
480 #endif 485 #endif
481 }; 486 };
482 487
483 } // namespace content 488 } // namespace content
484 489
485 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 490 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698