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

Unified Diff: chrome/common/extensions/extension.h

Issue 6749021: Added new fileBrowserPrivate and fileHandler extension APIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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
« no previous file with comments | « chrome/common/extensions/api/extension_api.json ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/extension.h
===================================================================
--- chrome/common/extensions/extension.h (revision 81868)
+++ chrome/common/extensions/extension.h (working copy)
@@ -13,6 +13,7 @@
#include "base/file_path.h"
#include "base/gtest_prod_util.h"
+#include "base/memory/linked_ptr.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "chrome/common/extensions/extension_constants.h"
@@ -27,6 +28,8 @@
class ExtensionAction;
class ExtensionResource;
class ExtensionSidebarDefaults;
+class FileBrowserHandler;
+class ListValue;
class SkBitmap;
class Version;
@@ -35,6 +38,7 @@
public:
typedef std::map<const std::string, GURL> URLOverrideMap;
typedef std::vector<std::string> ScriptingWhitelist;
+ typedef std::vector<linked_ptr<FileBrowserHandler> > FileBrowserHandlerList;
// What an extension was loaded from.
// NOTE: These values are stored as integers in the preferences and used
@@ -207,7 +211,6 @@
static const char kDebuggerPermission[];
static const char kExperimentalPermission[];
static const char kFileBrowserHandlerPermission[];
- static const char kFileSystemPermission[];
static const char kFileBrowserPrivatePermission[];
static const char kGeolocationPermission[];
static const char kHistoryPermission[];
@@ -510,6 +513,9 @@
ExtensionSidebarDefaults* sidebar_defaults() const {
return sidebar_defaults_.get();
}
+ const FileBrowserHandlerList* file_browser_handlers() const {
+ return file_browser_handlers_.get();
+ }
const std::vector<PluginInfo>& plugins() const { return plugins_; }
const std::vector<NaClModuleInfo>& nacl_modules() const {
return nacl_modules_;
@@ -638,6 +644,13 @@
ExtensionAction* LoadExtensionActionHelper(
const DictionaryValue* extension_action, std::string* error);
+ // Helper method to load an FileBrowserHandlerList from the manifest.
+ FileBrowserHandlerList* LoadFileBrowserHandlers(
+ const ListValue* extension_actions, std::string* error);
+ // Helper method to load an FileBrowserHandler from manifest.
+ FileBrowserHandler* LoadFileBrowserHandler(
+ const DictionaryValue* file_browser_handlers, std::string* error);
+
// Helper method to load an ExtensionSidebarDefaults from the sidebar manifest
// entry.
ExtensionSidebarDefaults* LoadExtensionSidebarDefaults(
@@ -740,6 +753,9 @@
// The extension's browser action, if any.
scoped_ptr<ExtensionAction> browser_action_;
+ // The extension's file browser actions, if any.
+ scoped_ptr<FileBrowserHandlerList> file_browser_handlers_;
+
// The extension's sidebar, if any.
scoped_ptr<ExtensionSidebarDefaults> sidebar_defaults_;
« no previous file with comments | « chrome/common/extensions/api/extension_api.json ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698