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

Unified Diff: chrome/browser/ui/auto_login_prompter.h

Issue 235863025: Remove desktop auto-login since we don't plan on shipping it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove redundant comment. 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 | « chrome/browser/ui/android/infobars/auto_login_prompter.cc ('k') | chrome/browser/ui/auto_login_prompter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/auto_login_prompter.h
diff --git a/chrome/browser/ui/auto_login_prompter.h b/chrome/browser/ui/auto_login_prompter.h
deleted file mode 100644
index 55607b4be7b5d9e16771d4181d95680447dd1498..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/auto_login_prompter.h
+++ /dev/null
@@ -1,69 +0,0 @@
-// 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_AUTO_LOGIN_PROMPTER_H_
-#define CHROME_BROWSER_UI_AUTO_LOGIN_PROMPTER_H_
-
-#include <string>
-
-#include "base/compiler_specific.h"
-#include "chrome/browser/ui/auto_login_infobar_delegate.h"
-#include "content/public/browser/web_contents_observer.h"
-#include "url/gurl.h"
-
-namespace content {
-class RenderViewHost;
-class WebContents;
-}
-
-namespace net {
-class URLRequest;
-}
-
-// This class displays an infobar that allows the user to automatically login to
-// the currently loaded page with one click. This is used when the browser
-// detects that the user has navigated to a login page and that there are stored
-// tokens that would allow a one-click login.
-class AutoLoginPrompter : public content::WebContentsObserver {
- public:
- typedef AutoLoginInfoBarDelegate::Params Params;
-
- // Looks for the X-Auto-Login response header in the request, and if found,
- // tries to display an infobar in the tab contents identified by the
- // child/route id.
- static void ShowInfoBarIfPossible(net::URLRequest* request,
- int child_id,
- int route_id);
-
- private:
- friend class AutoLoginPrompterTest;
-
- AutoLoginPrompter(content::WebContents* web_contents,
- const Params& params,
- const GURL& url);
-
- virtual ~AutoLoginPrompter();
-
- static void ShowInfoBarUIThread(Params params,
- const GURL& url,
- int child_id,
- int route_id);
-
- virtual void DidStopLoading(
- content::RenderViewHost* render_view_host) OVERRIDE;
-
- virtual void WebContentsDestroyed(
- content::WebContents* web_contents) OVERRIDE;
-
- // Add the infobar to the WebContents, if it's still needed.
- void AddInfoBarToWebContents();
-
- const Params params_;
- const GURL url_;
- bool infobar_shown_;
-
- DISALLOW_COPY_AND_ASSIGN(AutoLoginPrompter);
-};
-
-#endif // CHROME_BROWSER_UI_AUTO_LOGIN_PROMPTER_H_
« no previous file with comments | « chrome/browser/ui/android/infobars/auto_login_prompter.cc ('k') | chrome/browser/ui/auto_login_prompter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698