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

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

Issue 18121007: *WIP* Store NSS slots per profile. Move keygen to chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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) 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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 // Note that it's up to the embedder to verify that the data is 398 // Note that it's up to the embedder to verify that the data is
399 // well-formed. |cert_data| will be NULL if file_size is 0. 399 // well-formed. |cert_data| will be NULL if file_size is 0.
400 virtual void AddCertificate( 400 virtual void AddCertificate(
401 net::URLRequest* request, 401 net::URLRequest* request,
402 net::CertificateMimeType cert_type, 402 net::CertificateMimeType cert_type,
403 const void* cert_data, 403 const void* cert_data,
404 size_t cert_size, 404 size_t cert_size,
405 int render_process_id, 405 int render_process_id,
406 int render_view_id) {} 406 int render_view_id) {}
407 407
408 // XXX comment
409 virtual void Keygen(
410 ResourceContext* context,
411 int key_size_in_bits,
412 const std::string& challenge,
413 const GURL& url,
414 const base::Callback<void(const std::string*)>& callback) {}
415
408 // Returns a class to get notifications about media event. The embedder can 416 // Returns a class to get notifications about media event. The embedder can
409 // return NULL if they're not interested. 417 // return NULL if they're not interested.
410 virtual MediaObserver* GetMediaObserver(); 418 virtual MediaObserver* GetMediaObserver();
411 419
412 // Asks permission to show desktop notifications. 420 // Asks permission to show desktop notifications.
413 virtual void RequestDesktopNotificationPermission( 421 virtual void RequestDesktopNotificationPermission(
414 const GURL& source_origin, 422 const GURL& source_origin,
415 int callback_context, 423 int callback_context,
416 int render_process_id, 424 int render_process_id,
417 int render_view_id) {} 425 int render_view_id) {}
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 #if defined(OS_WIN) 577 #if defined(OS_WIN)
570 // Returns the name of the dll that contains cursors and other resources. 578 // Returns the name of the dll that contains cursors and other resources.
571 virtual const wchar_t* GetResourceDllName(); 579 virtual const wchar_t* GetResourceDllName();
572 580
573 // This is called on the PROCESS_LAUNCHER thread before the renderer process 581 // This is called on the PROCESS_LAUNCHER thread before the renderer process
574 // is launched. It gives the embedder a chance to add loosen the sandbox 582 // is launched. It gives the embedder a chance to add loosen the sandbox
575 // policy. 583 // policy.
576 virtual void PreSpawnRenderer(sandbox::TargetPolicy* policy, 584 virtual void PreSpawnRenderer(sandbox::TargetPolicy* policy,
577 bool* success) {} 585 bool* success) {}
578 #endif 586 #endif
579
580 #if defined(USE_NSS)
581 // Return a delegate to authenticate and unlock |module|.
582 // This is called on a worker thread.
583 virtual
584 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
585 const GURL& url);
586 #endif
587 }; 587 };
588 588
589 } // namespace content 589 } // namespace content
590 590
591 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 591 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698