app: api to import client certificate

This commit is contained in:
deepak1556 2016-04-18 10:41:31 +05:30
parent 0bf1e56156
commit e81cec4058
6 changed files with 374 additions and 31 deletions

View file

@ -11,9 +11,11 @@
#include "atom/browser/atom_browser_client.h"
#include "atom/browser/browser_observer.h"
#include "atom/common/native_mate_converters/callback.h"
#include "chrome/browser/certificate_manager_model.h"
#include "chrome/browser/process_singleton.h"
#include "content/public/browser/gpu_data_manager_observer.h"
#include "native_mate/handle.h"
#include "net/base/completion_callback.h"
namespace base {
class FilePath;
@ -41,6 +43,13 @@ class App : public AtomBrowserClient::Delegate,
int render_process_id,
int render_frame_id);
void OnCertificateManagerModelCreated(
const base::FilePath& path,
const base::FilePath& ca_path,
const base::string16& password,
const net::CompletionCallback& callback,
scoped_ptr<CertificateManagerModel> model);
protected:
App();
virtual ~App();
@ -97,12 +106,14 @@ class App : public AtomBrowserClient::Delegate,
bool MakeSingleInstance(
const ProcessSingleton::NotificationCallback& callback);
std::string GetLocale();
void ImportClientCertificate(const base::FilePath& path, const base::FilePath& ca_path, const base::string16& password, const net::CompletionCallback& callback);
#if defined(OS_WIN)
bool IsAeroGlassEnabled();
#endif
scoped_ptr<ProcessSingleton> process_singleton_;
scoped_ptr<CertificateManagerModel> certificate_manager_model_;
DISALLOW_COPY_AND_ASSIGN(App);
};