| 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 | 136 |
| 137 // WebFrameClient methods: | 137 // WebFrameClient methods: |
| 138 void didClearWindowObject(blink::WebLocalFrame* frame) override; | 138 void didClearWindowObject(blink::WebLocalFrame* frame) override; |
| 139 | 139 |
| 140 // This method is defined in WebPlugin as well as in WebFrameClient, but with | 140 // This method is defined in WebPlugin as well as in WebFrameClient, but with |
| 141 // different parameters. We only care about implementing the WebPlugin | 141 // different parameters. We only care about implementing the WebPlugin |
| 142 // version, so we implement this method and call the default in WebFrameClient | 142 // version, so we implement this method and call the default in WebFrameClient |
| 143 // (which does nothing) to correctly overload it. | 143 // (which does nothing) to correctly overload it. |
| 144 void didReceiveResponse(unsigned identifier, | 144 void didReceiveResponse(unsigned identifier, |
| 145 const blink::WebURLResponse& response) override; | 145 const blink::WebURLResponse& response) override; |
| 146 void checkIfAudioSinkExistsAndIsAuthorized( |
| 147 const blink::WebString& sinkId, |
| 148 const blink::WebSecurityOrigin&, |
| 149 blink::WebSetSinkIdCallbacks*) override; |
| 146 | 150 |
| 147 private: | 151 private: |
| 148 friend class base::DeleteHelper<WebViewPlugin>; | 152 friend class base::DeleteHelper<WebViewPlugin>; |
| 149 WebViewPlugin(content::RenderView* render_view, | 153 WebViewPlugin(content::RenderView* render_view, |
| 150 Delegate* delegate, | 154 Delegate* delegate, |
| 151 const content::WebPreferences& preferences); | 155 const content::WebPreferences& preferences); |
| 152 ~WebViewPlugin() override; | 156 ~WebViewPlugin() override; |
| 153 | 157 |
| 154 // content::RenderViewObserver methods: | 158 // content::RenderViewObserver methods: |
| 155 void OnDestruct() override; | 159 void OnDestruct() override; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 177 std::list<std::string> data_; | 181 std::list<std::string> data_; |
| 178 scoped_ptr<blink::WebURLError> error_; | 182 scoped_ptr<blink::WebURLError> error_; |
| 179 blink::WebString old_title_; | 183 blink::WebString old_title_; |
| 180 bool finished_loading_; | 184 bool finished_loading_; |
| 181 bool focused_; | 185 bool focused_; |
| 182 bool is_painting_; | 186 bool is_painting_; |
| 183 bool is_resizing_; | 187 bool is_resizing_; |
| 184 }; | 188 }; |
| 185 | 189 |
| 186 #endif // COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_ | 190 #endif // COMPONENTS_PLUGINS_RENDERER_WEBVIEW_PLUGIN_H_ |
| OLD | NEW |