// Copyright 2016 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_PERMISSIONS_CHOOSER_CONTROLLER_H_ #define COMPONENTS_PERMISSIONS_CHOOSER_CONTROLLER_H_ #include <string> #include <vector> #include "base/memory/raw_ptr.h" namespace permissions { // Subclass ChooserController to implement a chooser, which has some // introductory text and a list of options that users can pick one of. // Your subclass must define the set of options users can pick from; // the actions taken after users select an item or press the 'Cancel' // button or the chooser is closed. // After Select/Cancel/Close is called, this object is destroyed and // calls back into it are not allowed. class ChooserController { … }; } // namespace permissions #endif // COMPONENTS_PERMISSIONS_CHOOSER_CONTROLLER_H_