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

Side by Side Diff: chrome/browser/ui/passwords/manage_passwords_bubble.h

Issue 246393004: Password bubble: Introduce a command to open the bubble. (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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_H_ 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_H_
6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_H_ 6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "components/password_manager/core/browser/password_manager_metrics_util .h" 10 #include "components/password_manager/core/browser/password_manager_metrics_util .h"
11 11
12 class ManagePasswordsBubbleModel; 12 class ManagePasswordsBubbleModel;
13 13
14 namespace content { 14 namespace content {
15 class WebContents; 15 class WebContents;
16 } // namespace content 16 } // namespace content
17 17
18 // Base class for platform-specific password management bubble views. This class 18 // Base class for platform-specific password management bubble views. This class
19 // is responsible for creating and destroying the model associated with the view 19 // is responsible for creating and destroying the model associated with the view
20 // and providing a platform-agnostic interface to the bubble. 20 // and providing a platform-agnostic interface to the bubble.
21 class ManagePasswordsBubble { 21 class ManagePasswordsBubble {
22 public: 22 public:
23 enum DisplayReason { AUTOMATIC, USER_ACTION }; 23 enum DisplayReason { AUTOMATIC, USER_ACTION };
24 24
25 protected: 25 protected:
26 // Creates a ManagePasswordsBubble. |contents| is used only to create a 26 // Creates a ManagePasswordsBubble. |contents| is used only to create a
27 // ManagePasswordsBubbleModel; this class neither takes ownership of the 27 // ManagePasswordsBubbleModel; this class neither takes ownership of the
28 // object nor stores the pointer. 28 // object nor stores the pointer.
29 ManagePasswordsBubble(content::WebContents* contents, DisplayReason reason); 29 ManagePasswordsBubble(content::WebContents* contents, DisplayReason reason);
30 ~ManagePasswordsBubble(); 30 virtual ~ManagePasswordsBubble();
vabr (Chromium) 2014/04/22 14:32:06 Seems like the destructor is the only virtual meth
31 31
32 ManagePasswordsBubbleModel* model() { return model_.get(); } 32 ManagePasswordsBubbleModel* model() { return model_.get(); }
33 33
34 private: 34 private:
35 scoped_ptr<ManagePasswordsBubbleModel> model_; 35 scoped_ptr<ManagePasswordsBubbleModel> model_;
36 36
37 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubble); 37 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubble);
38 }; 38 };
39 39
40 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_H_ 40 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698