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

Unified Diff: chrome/renderer/extensions/enterprise_certificates_natives.h

Issue 214863002: Extension API enterprise.platformKeys. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changed to OO-style API with Token object. Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/extensions/enterprise_certificates_natives.h
diff --git a/chrome/renderer/extensions/enterprise_certificates_natives.h b/chrome/renderer/extensions/enterprise_certificates_natives.h
new file mode 100644
index 0000000000000000000000000000000000000000..40d86d169624aa5eaeb8bff79474d2e155974e55
--- /dev/null
+++ b/chrome/renderer/extensions/enterprise_certificates_natives.h
@@ -0,0 +1,33 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_RENDERER_EXTENSIONS_ENTERPRISE_CERTIFICATES_NATIVES_H_
+#define CHROME_RENDERER_EXTENSIONS_ENTERPRISE_CERTIFICATES_NATIVES_H_
+
+#include "base/compiler_specific.h"
+#include "chrome/renderer/extensions/object_backed_native_handler.h"
+#include "chrome/renderer/extensions/request_sender.h"
+
+namespace extensions {
+
+class ChromeV8Context;
+class RequestSender;
+
+// Custom bindings for the enterprise.certificates API.
+class EnterpriseCertificatesNatives : public ObjectBackedNativeHandler {
+ public:
+ explicit EnterpriseCertificatesNatives(RequestSender* request_sender,
+ ChromeV8Context* context);
+
+ private:
+ void ImportNative(const v8::FunctionCallbackInfo<v8::Value>& call_info);
+
+ RequestSender* request_sender_;
+
+ DISALLOW_COPY_AND_ASSIGN(EnterpriseCertificatesNatives);
+};
+
+} // namespace extensions
+
+#endif // CHROME_RENDERER_EXTENSIONS_ENTERPRISE_CERTIFICATES_NATIVES_H_

Powered by Google App Engine
This is Rietveld 408576698