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

Unified Diff: chrome/browser/ui/extensions/web_auth_flow_window.cc

Issue 10178020: Start implementing an auth flow for platform apps to be able to do auth (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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
Index: chrome/browser/ui/extensions/web_auth_flow_window.cc
===================================================================
--- chrome/browser/ui/extensions/web_auth_flow_window.cc (revision 0)
+++ chrome/browser/ui/extensions/web_auth_flow_window.cc (revision 0)
@@ -0,0 +1,42 @@
+// Copyright (c) 2012 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.
+
+#include "chrome/browser/ui/extensions/web_auth_flow_window.h"
+
+#include "content/public/browser/browser_context.h"
+
+using content::BrowserContext;
+using content::WebContents;
+
+WebAuthFlowWindow* WebAuthFlowWindow::Create(
Mihai Parparita -not on Chrome 2012/05/14 20:59:39 If all this does is call WebAuthFlowWindow::Create
Munjal (Google) 2012/05/15 00:55:20 Done. Yeah, thought about it when I did this but
+ Delegate* delegate,
+ BrowserContext* browser_context,
+ WebContents* contents) {
+ // This object will delete itself when the window is closed.
+ return WebAuthFlowWindow::CreateWebAuthFlowWindow(
+ delegate, browser_context, contents);
+}
+
+WebAuthFlowWindow::WebAuthFlowWindow(
+ Delegate* delegate,
+ BrowserContext* browser_context,
+ WebContents* contents)
+ : delegate_(delegate),
+ browser_context_(browser_context),
+ contents_(contents) {
+}
+
+WebAuthFlowWindow::~WebAuthFlowWindow() {
+}
+
+// TODO(munjal): Remove this once we have mac/linux implementations.
+#ifndef TOOLKIT_VIEWS
+// static
+WebAuthFlowWindow* WebAuthFlowWindow::CreateWebAuthFlowWindow(
+ Delegate* delegate,
+ BrowserContext* browser_context,
+ WebContents* contents) {
+ return NULL;
+}
+#endif

Powered by Google App Engine
This is Rietveld 408576698