1 // Copyright (c) 2013 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_RENDERER_ONE_CLICK_SIGNIN_AGENT_H_ 6 #define CHROME_RENDERER_ONE_CLICK_SIGNIN_AGENT_H_ 7 8 #include "content/public/renderer/render_view_observer.h" 9 10 // OneClickSigninAgent deals with oneclick signin related communications between 11 // the renderer and the browser. There is one OneClickSigninAgent per 12 // RenderView. 13 class OneClickSigninAgent : public content::RenderViewObserver { 14 public: 15 explicit OneClickSigninAgent(content::RenderView* render_view); 16 virtual ~OneClickSigninAgent(); 17 18 private: 19 virtual void WillSubmitForm(WebKit::WebFrame* frame, 20 const WebKit::WebFormElement& form) OVERRIDE; 21 22 DISALLOW_COPY_AND_ASSIGN(OneClickSigninAgent); 23 }; 24 25 #endif // CHROME_RENDERER_ONE_CLICK_SIGNIN_AGENT_H_ 26