OLD | NEW |
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 CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 virtual void willPerformClientRedirect(WebKit::WebFrame* frame, | 462 virtual void willPerformClientRedirect(WebKit::WebFrame* frame, |
463 const WebKit::WebURL& from, | 463 const WebKit::WebURL& from, |
464 const WebKit::WebURL& to, | 464 const WebKit::WebURL& to, |
465 double interval, | 465 double interval, |
466 double fire_time); | 466 double fire_time); |
467 virtual void didCancelClientRedirect(WebKit::WebFrame* frame); | 467 virtual void didCancelClientRedirect(WebKit::WebFrame* frame); |
468 virtual void didCompleteClientRedirect(WebKit::WebFrame* frame, | 468 virtual void didCompleteClientRedirect(WebKit::WebFrame* frame, |
469 const WebKit::WebURL& from); | 469 const WebKit::WebURL& from); |
470 virtual void didCreateDataSource(WebKit::WebFrame* frame, | 470 virtual void didCreateDataSource(WebKit::WebFrame* frame, |
471 WebKit::WebDataSource* datasource); | 471 WebKit::WebDataSource* datasource); |
| 472 virtual void didSetNextNavigationPolicy( |
| 473 WebKit::WebNavigationPolicy policy); |
472 virtual void didStartProvisionalLoad(WebKit::WebFrame* frame); | 474 virtual void didStartProvisionalLoad(WebKit::WebFrame* frame); |
473 virtual void didReceiveServerRedirectForProvisionalLoad( | 475 virtual void didReceiveServerRedirectForProvisionalLoad( |
474 WebKit::WebFrame* frame); | 476 WebKit::WebFrame* frame); |
475 virtual void didFailProvisionalLoad(WebKit::WebFrame* frame, | 477 virtual void didFailProvisionalLoad(WebKit::WebFrame* frame, |
476 const WebKit::WebURLError& error); | 478 const WebKit::WebURLError& error); |
477 virtual void didReceiveDocumentData(WebKit::WebFrame* frame, | 479 virtual void didReceiveDocumentData(WebKit::WebFrame* frame, |
478 const char* data, size_t length, | 480 const char* data, size_t length, |
479 bool& prevent_default); | 481 bool& prevent_default); |
480 virtual void didCommitProvisionalLoad(WebKit::WebFrame* frame, | 482 virtual void didCommitProvisionalLoad(WebKit::WebFrame* frame, |
481 bool is_new_navigation); | 483 bool is_new_navigation); |
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1016 | 1018 |
1017 // Used for popups. | 1019 // Used for popups. |
1018 bool opened_by_user_gesture_; | 1020 bool opened_by_user_gesture_; |
1019 GURL creator_url_; | 1021 GURL creator_url_; |
1020 | 1022 |
1021 // Whether this RenderView was created by a frame that was suppressing its | 1023 // Whether this RenderView was created by a frame that was suppressing its |
1022 // opener. If so, we may want to load pages in a separate process. See | 1024 // opener. If so, we may want to load pages in a separate process. See |
1023 // decidePolicyForNavigation for details. | 1025 // decidePolicyForNavigation for details. |
1024 bool opener_suppressed_; | 1026 bool opener_suppressed_; |
1025 | 1027 |
| 1028 // The disposition for the window that is about to be opened. |
| 1029 // Set to WebNavigationPolicyIgnore otherwise. |
| 1030 WebKit::WebNavigationPolicy new_window_navigation_policy_; |
| 1031 |
1026 // If we are handling a top-level client-side redirect, this tracks the URL | 1032 // If we are handling a top-level client-side redirect, this tracks the URL |
1027 // of the page that initiated it. Specifically, when a load is committed this | 1033 // of the page that initiated it. Specifically, when a load is committed this |
1028 // is used to determine if that load originated from a client-side redirect. | 1034 // is used to determine if that load originated from a client-side redirect. |
1029 // It is empty if there is no top-level client-side redirect. | 1035 // It is empty if there is no top-level client-side redirect. |
1030 content::Referrer completed_client_redirect_src_; | 1036 content::Referrer completed_client_redirect_src_; |
1031 | 1037 |
1032 // Holds state pertaining to a navigation that we initiated. This is held by | 1038 // Holds state pertaining to a navigation that we initiated. This is held by |
1033 // the WebDataSource::ExtraData attribute. We use pending_navigation_state_ | 1039 // the WebDataSource::ExtraData attribute. We use pending_navigation_state_ |
1034 // as a temporary holder for the state until the WebDataSource corresponding | 1040 // as a temporary holder for the state until the WebDataSource corresponding |
1035 // to the new navigation is created. See DidCreateDataSource. | 1041 // to the new navigation is created. See DidCreateDataSource. |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1265 // bunch of stuff, you should probably create a helper class and put your | 1271 // bunch of stuff, you should probably create a helper class and put your |
1266 // data and methods on that to avoid bloating RenderView more. You can | 1272 // data and methods on that to avoid bloating RenderView more. You can |
1267 // use the Observer interface to filter IPC messages and receive frame change | 1273 // use the Observer interface to filter IPC messages and receive frame change |
1268 // notifications. | 1274 // notifications. |
1269 // --------------------------------------------------------------------------- | 1275 // --------------------------------------------------------------------------- |
1270 | 1276 |
1271 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1277 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1272 }; | 1278 }; |
1273 | 1279 |
1274 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1280 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |