text: // Copyright 2013 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_WEBUI_SIGNIN_INLINE_LOGIN_UI_H_
  #define CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_UI_H_
  
  #include "base/memory/weak_ptr.h"
  #include "ui/web_dialogs/web_dialog_ui.h"
  
  // Inline login WebUI in various signin flows for ChromeOS and Chrome desktop.
  // Upon success, the profile of the webui should be populated with proper
  // cookies. Then this UI would fetch the oauth2 tokens using the cookies.
  class InlineLoginUI : public ui::WebDialogUI {
   public:
    explicit InlineLoginUI(content::WebUI* web_ui);
  
    InlineLoginUI(const InlineLoginUI&) = delete;
    InlineLoginUI& operator=(const InlineLoginUI&) = delete;
  
    ~InlineLoginUI() override;
  
   private:
    base::WeakPtrFactory<InlineLoginUI> weak_factory_{this};
  };
  
  #endif  // CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_UI_H_
  