[Android] Implement 3-way sensor fallback for Device Orientation.
[chromium-blink-merge.git] / android_webview / renderer / aw_render_process_observer.h
blobb2df85d78ed4cff6ca374e52cb2b0914a02c419b
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
3 // found in the LICENSE file.
5 #ifndef ANDROID_WEBVIEW_RENDERER_AW_RENDER_PROCESS_OBSERVER_H_
6 #define ANDROID_WEBVIEW_RENDERER_AW_RENDER_PROCESS_OBSERVER_H_
8 #include "content/public/renderer/render_process_observer.h"
10 #include "base/compiler_specific.h"
12 namespace android_webview {
14 // A RenderProcessObserver implementation used for handling android_webview
15 // specific render-process wide IPC messages.
16 class AwRenderProcessObserver : public content::RenderProcessObserver {
17 public:
18 AwRenderProcessObserver();
19 ~AwRenderProcessObserver() override;
21 // content::RenderProcessObserver implementation.
22 bool OnControlMessageReceived(const IPC::Message& message) override;
23 void WebKitInitialized() override;
25 private:
26 void OnClearCache();
27 void OnSetJsOnlineProperty(bool network_up);
29 bool webkit_initialized_;
32 } // namespace android_webview
34 #endif // ANDROID_WEBVIEW_RENDERER_AW_RENDER_PROCESS_OBSERVER_H_