Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(511)

Side by Side Diff: android_webview/renderer/aw_render_process_observer.h

Issue 1821413003: Remove logic for lazy initialization of WebKit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 ANDROID_WEBVIEW_RENDERER_AW_RENDER_PROCESS_OBSERVER_H_ 5 #ifndef ANDROID_WEBVIEW_RENDERER_AW_RENDER_PROCESS_OBSERVER_H_
6 #define ANDROID_WEBVIEW_RENDERER_AW_RENDER_PROCESS_OBSERVER_H_ 6 #define ANDROID_WEBVIEW_RENDERER_AW_RENDER_PROCESS_OBSERVER_H_
7 7
8 #include "content/public/renderer/render_process_observer.h" 8 #include "content/public/renderer/render_process_observer.h"
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 11
12 namespace android_webview { 12 namespace android_webview {
13 13
14 // A RenderProcessObserver implementation used for handling android_webview 14 // A RenderProcessObserver implementation used for handling android_webview
15 // specific render-process wide IPC messages. 15 // specific render-process wide IPC messages.
16 class AwRenderProcessObserver : public content::RenderProcessObserver { 16 class AwRenderProcessObserver : public content::RenderProcessObserver {
17 public: 17 public:
18 AwRenderProcessObserver(); 18 AwRenderProcessObserver();
19 ~AwRenderProcessObserver() override; 19 ~AwRenderProcessObserver() override;
20 20
21 // content::RenderProcessObserver implementation. 21 // content::RenderProcessObserver implementation.
22 bool OnControlMessageReceived(const IPC::Message& message) override; 22 bool OnControlMessageReceived(const IPC::Message& message) override;
23 void WebKitInitialized() override;
24 23
25 private: 24 private:
26 void OnClearCache(); 25 void OnClearCache();
27 void OnSetJsOnlineProperty(bool network_up); 26 void OnSetJsOnlineProperty(bool network_up);
28
29 bool webkit_initialized_;
30 }; 27 };
31 28
32 } // namespace android_webview 29 } // namespace android_webview
33 30
34 #endif // ANDROID_WEBVIEW_RENDERER_AW_RENDER_PROCESS_OBSERVER_H_ 31 #endif // ANDROID_WEBVIEW_RENDERER_AW_RENDER_PROCESS_OBSERVER_H_
35 32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698