Chromium Code Reviews| Index: chrome/browser/validation_message_message_filter.h |
| diff --git a/chrome/browser/validation_message_message_filter.h b/chrome/browser/validation_message_message_filter.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f675e87c02c82f309aa6a1d6b6aad53867bd884d |
| --- /dev/null |
| +++ b/chrome/browser/validation_message_message_filter.h |
| @@ -0,0 +1,42 @@ |
| +// 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_BROWSER_VALIDATION_MESSAGE_MESSAGE_FILTER_H_ |
| +#define CHROME_BROWSER_VALIDATION_MESSAGE_MESSAGE_FILTER_H_ |
| + |
| +#include "content/public/browser/browser_message_filter.h" |
| + |
| +namespace chrome { |
| +class ValidationMessageBubble; |
| +} |
| + |
| +namespace gfx { |
| +class Rect; |
| +} |
| + |
| +class ValidationMessageMessageFilter : public content::BrowserMessageFilter { |
|
Nico
2013/04/25 22:57:49
Class comment
tkent
2013/04/29 22:24:19
Done.
|
| + public: |
| + explicit ValidationMessageMessageFilter(int renderer_id); |
| + |
| + // content::BrowserMessageFilter implementation. |
| + virtual bool OnMessageReceived(const IPC::Message& message, |
| + bool* message_was_ok) OVERRIDE; |
| + virtual void OverrideThreadForMessage( |
| + const IPC::Message& message, content::BrowserThread::ID* thread) OVERRIDE; |
| + |
| + private: |
| + virtual ~ValidationMessageMessageFilter(); |
| + void OnShowValidationMessage(int route_id, |
| + const gfx::Rect& anchor_in_screen, |
| + const string16& main_text, |
| + const string16& sub_text); |
| + void OnHideValidationMessage(); |
| + |
| + scoped_ptr<chrome::ValidationMessageBubble> validation_message_bubble_; |
| + int renderer_id_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(ValidationMessageMessageFilter); |
| +}; |
| + |
| +#endif // CHROME_BROWSER_VALIDATION_MESSAGE_MESSAGE_FILTER_H_ |