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

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

Issue 228603004: Move manifest_handler_helpers to //extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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/manifest_handler_helpers.h
diff --git a/chrome/common/extensions/manifest_handler_helpers.h b/chrome/common/extensions/manifest_handler_helpers.h
deleted file mode 100644
index 6226b9d41ecb1f1bfdfdceede5e742120f2428de..0000000000000000000000000000000000000000
--- a/chrome/common/extensions/manifest_handler_helpers.h
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLER_HELPERS_H_
-#define CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLER_HELPERS_H_
-
-#include <string>
-
-#include "base/memory/scoped_ptr.h"
-#include "base/strings/string16.h"
-
-class ExtensionIconSet;
-
-namespace base {
-class DictionaryValue;
-}
-
-namespace extensions {
-namespace manifest_handler_helpers {
-
-// Strips leading slashes from the file path. Returns true iff the final path is
-// non empty.
-bool NormalizeAndValidatePath(std::string* path);
-
-// Loads icon paths defined in dictionary |icons_value| into ExtensionIconSet
-// |icons|. |icons_value| is a dictionary value {icon size -> icon path}. Icons
-// in |icons_value| whose size is not in |icon_sizes| will be ignored.
-// Returns success. If load fails, |error| will be set.
-bool LoadIconsFromDictionary(const base::DictionaryValue* icons_value,
- const int* icon_sizes,
- size_t num_icon_sizes,
- ExtensionIconSet* icons,
- base::string16* error);
-
-} // namespace manifest_handler_helpers
-} // namespace extensions
-
-#endif // CHROME_COMMON_EXTENSIONS_MANIFEST_HANDLER_HELPERS_H_

Powered by Google App Engine
This is Rietveld 408576698