| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_DEVICE_ORIENTATION_ORIENTATION_MESSAGE_FILTER_H_ | 5 #ifndef CONTENT_BROWSER_DEVICE_ORIENTATION_ORIENTATION_MESSAGE_FILTER_H_ |
| 6 #define CONTENT_BROWSER_DEVICE_ORIENTATION_ORIENTATION_MESSAGE_FILTER_H_ | 6 #define CONTENT_BROWSER_DEVICE_ORIENTATION_ORIENTATION_MESSAGE_FILTER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "content/browser/device_orientation/message_filter.h" | 10 #include "content/browser/device_orientation/message_filter.h" |
| 11 | 11 |
| 12 namespace device_orientation { | 12 namespace device_orientation { |
| 13 | 13 |
| 14 class OrientationMessageFilter : public MessageFilter { | 14 class OrientationMessageFilter : public MessageFilter { |
| 15 public: | 15 public: |
| 16 OrientationMessageFilter(); | 16 OrientationMessageFilter(); |
| 17 | 17 |
| 18 // content::BrowserMessageFilter implementation. | 18 // MessageFilter implementation. |
| 19 virtual bool OnMessageReceived(const IPC::Message& message, | 19 virtual bool OnMessageReceived(const IPC::Message& message, |
| 20 bool* message_was_ok) OVERRIDE; | 20 bool* message_was_ok) OVERRIDE; |
| 21 | 21 |
| 22 private: | 22 private: |
| 23 virtual ~OrientationMessageFilter(); | 23 virtual ~OrientationMessageFilter(); |
| 24 | 24 |
| 25 DISALLOW_COPY_AND_ASSIGN(OrientationMessageFilter); | 25 DISALLOW_COPY_AND_ASSIGN(OrientationMessageFilter); |
| 26 }; | 26 }; |
| 27 | 27 |
| 28 } // namespace device_orientation | 28 } // namespace device_orientation |
| 29 | 29 |
| 30 #endif // CONTENT_BROWSER_DEVICE_ORIENTATION_ORIENTATION_MESSAGE_FILTER_H_ | 30 #endif // CONTENT_BROWSER_DEVICE_ORIENTATION_ORIENTATION_MESSAGE_FILTER_H_ |
| OLD | NEW |