summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/external_extension_loader.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions/external_extension_loader.h')
-rw-r--r--chrome/browser/extensions/external_extension_loader.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/extensions/external_extension_loader.h b/chrome/browser/extensions/external_extension_loader.h
index 594fb9e..f4864cb 100644
--- a/chrome/browser/extensions/external_extension_loader.h
+++ b/chrome/browser/extensions/external_extension_loader.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_EXTENSIONS_EXTERNAL_EXTENSION_LOADER_H_
#pragma once
+#include "base/file_path.h"
#include "base/ref_counted.h"
#include "base/scoped_ptr.h"
@@ -41,6 +42,13 @@ class ExternalExtensionLoader
// in prefs_ and then call LoadFinished.
virtual void StartLoading() = 0;
+ // Some external providers allow relative file paths to local CRX files.
+ // Subclasses that want this behavior should override this method to
+ // return the absolute path from which relative paths should be resolved.
+ // By default, return an empty path, which indicates that relative paths
+ // are not allowed.
+ virtual const FilePath GetBaseCrxFilePath();
+
protected:
virtual ~ExternalExtensionLoader() {}