Index: chrome/renderer/one_click_signin_agent.h |
diff --git a/chrome/renderer/one_click_signin_agent.h b/chrome/renderer/one_click_signin_agent.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..be79af702cfd47463cef4c1c4c9c13e14f7bf5dd |
--- /dev/null |
+++ b/chrome/renderer/one_click_signin_agent.h |
@@ -0,0 +1,30 @@ |
+// Copyright (c) 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_RENDERER_ONE_CLICK_SIGNIN_AGENT_H_ |
+#define CHROME_RENDERER_ONE_CLICK_SIGNIN_AGENT_H_ |
+ |
+#include "content/public/renderer/render_view_observer.h" |
+ |
+namespace WebKit { |
+class WebFormElement; |
+class WebFrame; |
jam
2013/02/01 02:45:59
nit: don't need these forward declares since they'
|
+} |
+ |
+// OneClickSigninAgent deals with oneclick signin related communications between |
+// the renderer and the browser. There is one OneClickSigninAgent per |
+// RenderView. |
+class OneClickSigninAgent : public content::RenderViewObserver { |
+ public: |
+ explicit OneClickSigninAgent(content::RenderView* render_view); |
+ virtual ~OneClickSigninAgent(); |
+ |
+ private: |
+ virtual void WillSubmitForm(WebKit::WebFrame* frame, |
+ const WebKit::WebFormElement& form) OVERRIDE; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(OneClickSigninAgent); |
+}; |
+ |
+#endif // CHROME_RENDERER_ONE_CLICK_SIGNIN_AGENT_H_ |