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

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

Issue 61383003: Pass pepper apps API calls through the existing js apps API bindings. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/extensions/pepper_request_natives.h
diff --git a/chrome/renderer/extensions/pepper_request_natives.h b/chrome/renderer/extensions/pepper_request_natives.h
new file mode 100644
index 0000000000000000000000000000000000000000..c559a25a9345f585030c3f949f0893fc1b67cfc1
--- /dev/null
+++ b/chrome/renderer/extensions/pepper_request_natives.h
@@ -0,0 +1,30 @@
+// Copyright 2013 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_PEPPER_REQUEST_NATIVES_H_
+#define CHROME_RENDERER_EXTENSIONS_PEPPER_REQUEST_NATIVES_H_
+
+#include "base/compiler_specific.h"
+#include "chrome/renderer/extensions/object_backed_native_handler.h"
+
+namespace base {
+class Value;
+}
+
+namespace extensions {
+
+// Custom bindings for the PepperRequestNatives API.
koz (OOO until 15th September) 2013/12/02 23:27:19 Could you change this comment to describe what the
Sam McNally 2013/12/02 23:57:10 Done.
+class PepperRequestNatives : public ObjectBackedNativeHandler {
+ public:
+ explicit PepperRequestNatives(ChromeV8Context* context);
+
+ private:
+ void SendResponse(const v8::FunctionCallbackInfo<v8::Value>& args);
koz (OOO until 15th September) 2013/12/02 23:27:19 Add a comment for this function and include what t
Sam McNally 2013/12/02 23:57:10 Done.
+
+ DISALLOW_COPY_AND_ASSIGN(PepperRequestNatives);
+};
+
+} // namespace extensions
+
+#endif // CHROME_RENDERER_EXTENSIONS_PEPPER_REQUEST_NATIVES_H_

Powered by Google App Engine
This is Rietveld 408576698