summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/api/developer_private/developer_private_mangle.h
blob: 12f38e4544b5276cc2f221d0017115a8ec757bcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright 2015 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_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_MANGLE_H_
#define CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_MANGLE_H_

#include "base/memory/linked_ptr.h"

namespace extensions {

namespace api {
namespace developer_private {
struct ItemInfo;
struct ExtensionInfo;
}
}

namespace developer_private_mangle {

// Converts a developer_private::ExtensionInfo into a
// developer_private::ItemInfo for compatability with deprecated API
// functions.
linked_ptr<api::developer_private::ItemInfo> MangleExtensionInfo(
    const api::developer_private::ExtensionInfo& info);

}  // namespace developer_private_mangle
}  // namespace extensions

#endif  // CHROME_BROWSER_EXTENSIONS_API_DEVELOPER_PRIVATE_DEVELOPER_PRIVATE_MANGLE_H_