| OLD | NEW |
| 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 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 | 118 |
| 119 // TODO(ojan): Remove this override and have this class use a non-null | 119 // TODO(ojan): Remove this override and have this class use a non-null |
| 120 // layerTreeView. | 120 // layerTreeView. |
| 121 virtual bool allowsBrokenNullLayerTreeView() const; | 121 virtual bool allowsBrokenNullLayerTreeView() const; |
| 122 | 122 |
| 123 // WebWidgetClient methods: | 123 // WebWidgetClient methods: |
| 124 virtual void didInvalidateRect(const blink::WebRect&); | 124 virtual void didInvalidateRect(const blink::WebRect&); |
| 125 virtual void didChangeCursor(const blink::WebCursorInfo& cursor); | 125 virtual void didChangeCursor(const blink::WebCursorInfo& cursor); |
| 126 | 126 |
| 127 // WebFrameClient methods: | 127 // WebFrameClient methods: |
| 128 virtual void didClearWindowObject(blink::WebLocalFrame* frame, int world_id); | 128 virtual void didClearWindowObject(blink::WebLocalFrame* frame); |
| 129 | 129 |
| 130 // This method is defined in WebPlugin as well as in WebFrameClient, but with | 130 // This method is defined in WebPlugin as well as in WebFrameClient, but with |
| 131 // different parameters. We only care about implementing the WebPlugin | 131 // different parameters. We only care about implementing the WebPlugin |
| 132 // version, so we implement this method and call the default in WebFrameClient | 132 // version, so we implement this method and call the default in WebFrameClient |
| 133 // (which does nothing) to correctly overload it. | 133 // (which does nothing) to correctly overload it. |
| 134 virtual void didReceiveResponse(blink::WebLocalFrame* frame, | 134 virtual void didReceiveResponse(blink::WebLocalFrame* frame, |
| 135 unsigned identifier, | 135 unsigned identifier, |
| 136 const blink::WebURLResponse& response); | 136 const blink::WebURLResponse& response); |
| 137 | 137 |
| 138 private: | 138 private: |
| (...skipping 17 matching lines...) Expand all Loading... |
| 156 | 156 |
| 157 blink::WebURLResponse response_; | 157 blink::WebURLResponse response_; |
| 158 std::list<std::string> data_; | 158 std::list<std::string> data_; |
| 159 bool finished_loading_; | 159 bool finished_loading_; |
| 160 scoped_ptr<blink::WebURLError> error_; | 160 scoped_ptr<blink::WebURLError> error_; |
| 161 blink::WebString old_title_; | 161 blink::WebString old_title_; |
| 162 bool focused_; | 162 bool focused_; |
| 163 }; | 163 }; |
| 164 | 164 |
| 165 #endif // COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_ | 165 #endif // COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_ |
| OLD | NEW |