1// Copyright 2014 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 CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_MESSAGE_FILTER_ANDROID_H_ 6#define CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_MESSAGE_FILTER_ANDROID_H_ 7 8#include "content/public/browser/browser_message_filter.h" 9 10namespace content { 11 12class ScreenOrientationMessageFilterAndroid : public BrowserMessageFilter { 13 public: 14 ScreenOrientationMessageFilterAndroid(); 15 16 // BrowserMessageFilter implementation. 17 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 18 19 private: 20 virtual ~ScreenOrientationMessageFilterAndroid(); 21 22 void OnStartListening(); 23 void OnStopListening(); 24 25 int listeners_count_; 26 27 DISALLOW_COPY_AND_ASSIGN(ScreenOrientationMessageFilterAndroid); 28}; 29 30} // namespace content 31 32#endif // CONTENT_BROWSER_SCREEN_ORIENTATION_SCREEN_ORIENTATION_MESSAGE_FILTER_ANDROID_H_ 33