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

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

Issue 232753002: Password bubble: Deplatformify ManagePasswordsBubbleView. (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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_H_
6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_H_
7
8 #include "base/basictypes.h"
9 #include "components/password_manager/core/browser/password_manager_metrics_util .h"
10
11 class ManagePasswordsBubbleModel;
12
13 namespace content {
14 class WebContents;
15 } // namespace content
16
17 // Interface for platform-specific bubble code.
vabr (Chromium) 2014/04/10 09:30:24 nit: It's not purely an interface, because it also
Mike West 2014/04/10 09:53:46 Yeah, this was initially a pure interface. It grew
18 class ManagePasswordsBubble {
19 public:
20 enum DisplayReason { AUTOMATIC, USER_ACTION };
21
22 ManagePasswordsBubbleModel* model() const { return model_; }
vabr (Chromium) 2014/04/10 09:30:24 Is the |model_| owned by the ManagePasswordBubble?
vabr (Chromium) 2014/04/10 09:30:24 Could this be protected?
Mike West 2014/04/10 09:53:46 It could!
Mike West 2014/04/10 09:53:46 Well, it's const, in that the _bubble_ isn't modif
vabr (Chromium) 2014/04/10 10:24:44 I agree this is a fuzzy area. And different people
23
24 protected:
25 ManagePasswordsBubble(content::WebContents* contents, DisplayReason reason);
vabr (Chromium) 2014/04/10 09:30:24 nit: comment on the use of |contents|, i.e., that
Mike West 2014/04/10 09:53:46 I'll comment it for now, but I'm trying to get rid
vabr (Chromium) 2014/04/10 10:24:44 Fair enough. All these three ways of landing this
26 ~ManagePasswordsBubble();
27
28 private:
29 ManagePasswordsBubbleModel* model_;
vabr (Chromium) 2014/04/10 09:30:24 Please account for idiots like me, and comment on
Mike West 2014/04/10 09:53:46 You're right. This should be a scoped_ptr. It shou
30
31 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubble);
32 };
33
34 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698