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

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
Index: chrome/common/extensions/extension.h
===================================================================
--- chrome/common/extensions/extension.h (revision 81212)
+++ 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 FileBrowserAction;
+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<FileBrowserAction> > FileBrowserActionList;
// What an extension was loaded from.
// NOTE: These values are stored as integers in the preferences and used
@@ -504,6 +508,9 @@
ExtensionSidebarDefaults* sidebar_defaults() const {
return sidebar_defaults_.get();
}
+ const FileBrowserActionList* file_browser_actions() const {
+ return file_browser_actions_.get();
+ }
const std::vector<PluginInfo>& plugins() const { return plugins_; }
const std::vector<NaClModuleInfo>& nacl_modules() const {
return nacl_modules_;
@@ -632,6 +639,13 @@
ExtensionAction* LoadExtensionActionHelper(
const DictionaryValue* extension_action, std::string* error);
+ // Helper method to load an FileBrowserActionList from the manifest.
+ FileBrowserActionList* LoadFileBrowserActions(
+ const ListValue* extension_actions, std::string* error);
Aaron Boodman 2011/04/12 22:47:21 Similarly to my comment in extension_api.json, the
+ // Helper method to load an FileBrowserAction from manifest.
+ FileBrowserAction* LoadFileBrowserAction(
+ const DictionaryValue* file_browser_actions, std::string* error);
+
// Helper method to load an ExtensionSidebarDefaults from the sidebar manifest
// entry.
ExtensionSidebarDefaults* LoadExtensionSidebarDefaults(
@@ -734,6 +748,9 @@
// The extension's browser action, if any.
scoped_ptr<ExtensionAction> browser_action_;
+ // The extension's file browser actions, if any.
+ scoped_ptr<FileBrowserActionList> file_browser_actions_;
+
// The extension's sidebar, if any.
scoped_ptr<ExtensionSidebarDefaults> sidebar_defaults_;

Powered by Google App Engine
This is Rietveld 408576698