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

Side by Side Diff: components/plugins/renderer/webview_plugin.h

Issue 2349443003: Listen to didReceiveResponse() to get the response in WebViewPlugin. (Closed)
Patch Set: Created 4 years, 3 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_ 5 #ifndef COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_
6 #define COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_ 6 #define COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_
7 7
8 #include <list> 8 #include <list>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 const blink::WebVector<blink::WebRect>& cut_outs_rects, 101 const blink::WebVector<blink::WebRect>& cut_outs_rects,
102 bool is_visible) override; 102 bool is_visible) override;
103 103
104 void updateFocus(bool foucsed, blink::WebFocusType focus_type) override; 104 void updateFocus(bool foucsed, blink::WebFocusType focus_type) override;
105 void updateVisibility(bool) override {} 105 void updateVisibility(bool) override {}
106 106
107 blink::WebInputEventResult handleInputEvent( 107 blink::WebInputEventResult handleInputEvent(
108 const blink::WebInputEvent& event, 108 const blink::WebInputEvent& event,
109 blink::WebCursorInfo& cursor_info) override; 109 blink::WebCursorInfo& cursor_info) override;
110 110
111 void didReceiveResponse(const blink::WebURLResponse& response) override {} 111 void didReceiveResponse(const blink::WebURLResponse& response) override;
112 void didReceiveData(const char* data, int data_length) override; 112 void didReceiveData(const char* data, int data_length) override;
113 void didFinishLoading() override; 113 void didFinishLoading() override;
114 void didFailLoading(const blink::WebURLError& error) override; 114 void didFailLoading(const blink::WebURLError& error) override;
115 115
116 // WebViewClient methods: 116 // WebViewClient methods:
117 bool acceptsLoadDrops() override; 117 bool acceptsLoadDrops() override;
118 118
119 void setToolTipText(const blink::WebString&, 119 void setToolTipText(const blink::WebString&,
120 blink::WebTextDirection) override; 120 blink::WebTextDirection) override;
121 121
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 // Owned by us, deleted via |close()|. 162 // Owned by us, deleted via |close()|.
163 blink::WebView* web_view_; 163 blink::WebView* web_view_;
164 164
165 // Owned by us, deleted via |close()|. 165 // Owned by us, deleted via |close()|.
166 blink::WebFrameWidget* web_frame_widget_; 166 blink::WebFrameWidget* web_frame_widget_;
167 167
168 // Owned by us, deleted via |close()|. 168 // Owned by us, deleted via |close()|.
169 blink::WebFrame* web_frame_; 169 blink::WebFrame* web_frame_;
170 gfx::Rect rect_; 170 gfx::Rect rect_;
171 171
172 blink::WebURLResponse response_;
172 std::list<std::string> data_; 173 std::list<std::string> data_;
173 std::unique_ptr<blink::WebURLError> error_; 174 std::unique_ptr<blink::WebURLError> error_;
174 blink::WebString old_title_; 175 blink::WebString old_title_;
175 bool finished_loading_; 176 bool finished_loading_;
176 bool focused_; 177 bool focused_;
177 bool is_painting_; 178 bool is_painting_;
178 bool is_resizing_; 179 bool is_resizing_;
179 180
180 // Should be invalidated when destroy() is called. 181 // Should be invalidated when destroy() is called.
181 base::WeakPtrFactory<WebViewPlugin> weak_factory_; 182 base::WeakPtrFactory<WebViewPlugin> weak_factory_;
182 }; 183 };
183 184
184 #endif // COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_ 185 #endif // COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_
OLDNEW
« no previous file with comments | « no previous file | components/plugins/renderer/webview_plugin.cc » ('j') | components/plugins/renderer/webview_plugin.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698