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

Unified Diff: chrome/browser/extensions/api/module/module.h

Issue 15051010: Move [Get|Set]UpdateURLData from ExtensionPrefs to ExtensionAPI (aka Module) (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 7 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/browser/extensions/api/module/module.h
diff --git a/chrome/browser/extensions/api/module/module.h b/chrome/browser/extensions/api/module/module.h
index 0436a1c5b0471cb44d1986807ffe29096a197199..8babb8f5616ebb7c35b1cb2759f321e976252378 100644
--- a/chrome/browser/extensions/api/module/module.h
+++ b/chrome/browser/extensions/api/module/module.h
@@ -2,14 +2,19 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_EXTENSIONS_API_MODULE_MODULE_H__
-#define CHROME_BROWSER_EXTENSIONS_API_MODULE_MODULE_H__
+#ifndef CHROME_BROWSER_EXTENSIONS_API_MODULE_MODULE_H_
+#define CHROME_BROWSER_EXTENSIONS_API_MODULE_MODULE_H_
#include "chrome/browser/extensions/extension_function.h"
namespace extensions {
-class ExtensionPrefs;
+namespace extension {
+// A preference for storing the extension's update URL data. If not empty, the
+// the ExtensionUpdater will append a ap= parameter to the URL when checking if
+// a new version of the extension is available.
+extern const char kUpdateURLData[];
+} // namespace extension
class ExtensionSetUpdateUrlDataFunction : public SyncExtensionFunction {
public:
@@ -21,9 +26,6 @@ class ExtensionSetUpdateUrlDataFunction : public SyncExtensionFunction {
// ExtensionFunction:
virtual bool RunImpl() OVERRIDE;
-
- private:
- ExtensionPrefs* extension_prefs();
};
class ExtensionIsAllowedIncognitoAccessFunction : public SyncExtensionFunction {
@@ -53,4 +55,4 @@ class ExtensionIsAllowedFileSchemeAccessFunction
} // namespace extensions
-#endif // CHROME_BROWSER_EXTENSIONS_API_MODULE_MODULE_H__
+#endif // CHROME_BROWSER_EXTENSIONS_API_MODULE_MODULE_H_
« no previous file with comments | « no previous file | chrome/browser/extensions/api/module/module.cc » ('j') | chrome/browser/extensions/updater/extension_updater.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698