1090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson// Copyright 2014 The Chromium Authors. All rights reserved.
21d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert// Use of this source code is governed by a BSD-style license that can be
3090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson// found in the LICENSE file.
4090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson
5090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson#ifndef CHROME_BROWSER_UI_COCOA_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_BLACKLIST_VIEW_CONTROLLER_H_
6090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson#define CHROME_BROWSER_UI_COCOA_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_BLACKLIST_VIEW_CONTROLLER_H_
7090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson
8090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson#import <Cocoa/Cocoa.h>
9090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson
10090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson#include "base/mac/scoped_nsobject.h"
11090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson#include "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_content_view_controller.h"
12090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson
13090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson@class BubbleCombobox;
14090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilsonclass ManagePasswordsBubbleModel;
15090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson@class ManagePasswordItemViewController;
16090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson
17090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson// Manages the view that informs the user that the current site is blacklisted
18090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson// from the password manager and offers to un-blacklist it.
19090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson@interface ManagePasswordsBubbleBlacklistViewController
20090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson    : ManagePasswordsBubbleContentViewController {
21090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson @private
22090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson  ManagePasswordsBubbleModel* model_;  // weak
23090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson  id<ManagePasswordsBubbleContentViewDelegate> delegate_;  // weak
24090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson  base::scoped_nsobject<NSButton> doneButton_;
25090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson  base::scoped_nsobject<NSButton> undoBlacklistButton_;
26090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson}
27090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson- (id)initWithModel:(ManagePasswordsBubbleModel*)model
28090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson           delegate:(id<ManagePasswordsBubbleContentViewDelegate>)delegate;
29090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson@end
301d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert
311d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert@interface ManagePasswordsBubbleBlacklistViewController (Testing)
32090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson@property(readonly) NSButton* doneButton;
331d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert@property(readonly) NSButton* undoBlacklistButton;
341d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert@end
351d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert
36090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson#endif  // CHROME_BROWSER_UI_COCOA_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_BLACKLIST_VIEW_CONTROLLER_H_
37090f9b4c879985bc747c214f82c62471e60c7742Jesse Wilson