forked from Pissandshittium/pissandshittium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaw_render_thread_observer.h
33 lines (23 loc) · 1019 Bytes
/
aw_render_thread_observer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright (c) 2012 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 ANDROID_WEBVIEW_RENDERER_AW_RENDER_THREAD_OBSERVER_H_
#define ANDROID_WEBVIEW_RENDERER_AW_RENDER_THREAD_OBSERVER_H_
#include "content/public/renderer/render_thread_observer.h"
#include "base/compiler_specific.h"
namespace android_webview {
// A RenderThreadObserver implementation used for handling android_webview
// specific render-process wide IPC messages.
class AwRenderThreadObserver : public content::RenderThreadObserver {
public:
AwRenderThreadObserver();
~AwRenderThreadObserver() override;
// content::RenderThreadObserver implementation.
bool OnControlMessageReceived(const IPC::Message& message) override;
private:
void OnClearCache();
void OnKillProcess();
void OnSetJsOnlineProperty(bool network_up);
};
} // namespace android_webview
#endif // ANDROID_WEBVIEW_RENDERER_AW_RENDER_THREAD_OBSERVER_H_