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

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: Android Gypi 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
« no previous file with comments | « no previous file | chrome/browser/extensions/api/module/module.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..37f627d1413b4914a7495b4303f135dbb490d91c 100644
--- a/chrome/browser/extensions/api/module/module.h
+++ b/chrome/browser/extensions/api/module/module.h
@@ -2,15 +2,20 @@
// 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 {
+// Return the extension's update URL data, if any.
+std::string GetUpdateURLData(const ExtensionPrefs* prefs,
+ const std::string& extension_id);
+} // namespace extension
+
class ExtensionSetUpdateUrlDataFunction : public SyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("extension.setUpdateUrlData",
@@ -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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698