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

Side by Side Diff: android_webview/browser/renderer_host/aw_render_view_host_ext.h

Issue 1890203002: Implement Web Restrictions in WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respond to comments, and fix a possible race in displaying error page Created 4 years, 7 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_BROWSER_RENDER_HOST_RENDER_VIEW_HOST_EXT_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_RENDER_HOST_RENDER_VIEW_HOST_EXT_H_
6 #define ANDROID_WEBVIEW_BROWSER_RENDER_HOST_RENDER_VIEW_HOST_EXT_H_ 6 #define ANDROID_WEBVIEW_BROWSER_RENDER_HOST_RENDER_VIEW_HOST_EXT_H_
7 7
8 #include "content/public/browser/web_contents_observer.h" 8 #include "content/public/browser/web_contents_observer.h"
9 9
10 #include "android_webview/common/aw_hit_test_data.h" 10 #include "android_webview/common/aw_hit_test_data.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 void SetInitialPageScale(double page_scale_factor); 80 void SetInitialPageScale(double page_scale_factor);
81 void SetBackgroundColor(SkColor c); 81 void SetBackgroundColor(SkColor c);
82 void SetJsOnlineProperty(bool network_up); 82 void SetJsOnlineProperty(bool network_up);
83 83
84 void SmoothScroll(int target_x, int target_y, long duration_ms); 84 void SmoothScroll(int target_x, int target_y, long duration_ms);
85 85
86 private: 86 private:
87 // content::WebContentsObserver implementation. 87 // content::WebContentsObserver implementation.
88 void RenderViewCreated(content::RenderViewHost* view_host) override; 88 void RenderViewCreated(content::RenderViewHost* view_host) override;
89 void RenderProcessGone(base::TerminationStatus status) override; 89 void RenderProcessGone(base::TerminationStatus status) override;
90 void RenderFrameCreated(content::RenderFrameHost* frame_host) override;
90 void DidNavigateAnyFrame(content::RenderFrameHost* render_frame_host, 91 void DidNavigateAnyFrame(content::RenderFrameHost* render_frame_host,
91 const content::LoadCommittedDetails& details, 92 const content::LoadCommittedDetails& details,
92 const content::FrameNavigateParams& params) override; 93 const content::FrameNavigateParams& params) override;
93 void OnPageScaleFactorChanged(float page_scale_factor) override; 94 void OnPageScaleFactorChanged(float page_scale_factor) override;
94 bool OnMessageReceived(const IPC::Message& message, 95 bool OnMessageReceived(const IPC::Message& message,
95 content::RenderFrameHost* render_frame_host) override; 96 content::RenderFrameHost* render_frame_host) override;
96 97
97 void OnDocumentHasImagesResponse(content::RenderFrameHost* render_frame_host, 98 void OnDocumentHasImagesResponse(content::RenderFrameHost* render_frame_host,
98 int msg_id, 99 int msg_id,
99 bool has_images); 100 bool has_images);
(...skipping 16 matching lines...) Expand all
116 AwHitTestData last_hit_test_data_; 117 AwHitTestData last_hit_test_data_;
117 118
118 bool has_new_hit_test_data_; 119 bool has_new_hit_test_data_;
119 120
120 DISALLOW_COPY_AND_ASSIGN(AwRenderViewHostExt); 121 DISALLOW_COPY_AND_ASSIGN(AwRenderViewHostExt);
121 }; 122 };
122 123
123 } // namespace android_webview 124 } // namespace android_webview
124 125
125 #endif // ANDROID_WEBVIEW_BROWSER_RENDER_HOST_RENDER_VIEW_HOST_EXT_H_ 126 #endif // ANDROID_WEBVIEW_BROWSER_RENDER_HOST_RENDER_VIEW_HOST_EXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698