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

Unified 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: Feedback. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/passwords/manage_passwords_bubble.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/passwords/manage_passwords_bubble.h
diff --git a/chrome/browser/ui/passwords/manage_passwords_bubble.h b/chrome/browser/ui/passwords/manage_passwords_bubble.h
new file mode 100644
index 0000000000000000000000000000000000000000..f759ea9402032952a4ed5f2802b0e9bb12294dd0
--- /dev/null
+++ b/chrome/browser/ui/passwords/manage_passwords_bubble.h
@@ -0,0 +1,40 @@
+// Copyright 2014 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_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_H_
+#define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_H_
+
+#include "base/basictypes.h"
+#include "base/memory/scoped_ptr.h"
+#include "components/password_manager/core/browser/password_manager_metrics_util.h"
+
+class ManagePasswordsBubbleModel;
+
+namespace content {
+class WebContents;
+} // namespace content
+
+// Base class for platform-specific password management bubble views. This class
+// is responsible for creating and destroying the model associated with the view
+// and providing a platform-agnostic interface to the bubble.
+class ManagePasswordsBubble {
+ public:
+ enum DisplayReason { AUTOMATIC, USER_ACTION };
+
+ protected:
+ // Creates a ManagePasswordsBubble. |contents| is used only to create a
+ // ManagePasswordsBubbleModel; this class neither takes ownership of the
+ // object nor stores the pointer.
+ ManagePasswordsBubble(content::WebContents* contents, DisplayReason reason);
+ ~ManagePasswordsBubble();
+
+ ManagePasswordsBubbleModel* model() { return model_.get(); }
+
+ private:
+ scoped_ptr<ManagePasswordsBubbleModel> model_;
+
+ DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubble);
+};
+
+#endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_H_
« no previous file with comments | « no previous file | chrome/browser/ui/passwords/manage_passwords_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698