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

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

Issue 50703013: fileSystemProvider: First cut at implementing fileSystemProvider API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: switch to two-callback approach 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/file_system_provider_natives.h
diff --git a/chrome/renderer/extensions/file_system_provider_natives.h b/chrome/renderer/extensions/file_system_provider_natives.h
new file mode 100644
index 0000000000000000000000000000000000000000..ee356568ca942c75861e29c3862864de798a98a4
--- /dev/null
+++ b/chrome/renderer/extensions/file_system_provider_natives.h
@@ -0,0 +1,27 @@
+// 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_FILE_SYSTEM_PROVIDER_NATIVES_H_
+#define CHROME_RENDERER_EXTENSIONS_FILE_SYSTEM_PROVIDER_NATIVES_H_
+
+#include "chrome/renderer/extensions/object_backed_native_handler.h"
+#include "v8/include/v8.h"
+
+namespace extensions {
+
+// Implements custom bindings for fileSystemProvider API.
+class fileSystemProviderNatives : public ObjectBackedNativeHandler {
+ public:
+ explicit fileSystemProviderNatives(ChromeV8Context* context);
+
+ private:
+ // Constructs a DOMError object to be used in JavaScript.
+ void GetDOMError(const v8::FunctionCallbackInfo<v8::Value>& args);
+
+ DISALLOW_COPY_AND_ASSIGN(fileSystemProviderNatives);
+};
+
+} // namespace extensions
+
+#endif // CHROME_RENDERER_EXTENSIONS_FILE_SYSTEM_PROVIDER_NATIVES_H_

Powered by Google App Engine
This is Rietveld 408576698