blob: 79c6b1b4d8d8f7cb9f2a55da28e29716fec76194 [file] [log] [blame]
// 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_EXTENSION_INSTALL_ERROR_MENU_ITEM_ID_PROVIDER_H_
#define CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_ERROR_MENU_ITEM_ID_PROVIDER_H_
#include "base/macros.h"
namespace extensions {
// Helper class to generate not-in-use and unique menu item id for GlobalErrors
// that require items in hotdog menu.
//
// The generated ids lie within the interval:
// [IDC_EXTENSION_INSTALL_ERROR_FIRST, IDC_EXTENSIONS_CONTEXT_CUSTOM_LAST].
class ExtensionInstallErrorMenuItemIdProvider {
public:
ExtensionInstallErrorMenuItemIdProvider();
~ExtensionInstallErrorMenuItemIdProvider();
int menu_command_id() { return menu_command_id_; }
private:
int menu_command_id_;
DISALLOW_COPY_AND_ASSIGN(ExtensionInstallErrorMenuItemIdProvider);
};
} // namespace extensions
#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INSTALL_ERROR_MENU_ITEM_ID_PROVIDER_H_