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 #include "content/renderer/render_frame_impl.h" | 5 #include "content/renderer/render_frame_impl.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
(...skipping 3754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3765 params.referrer = | 3765 params.referrer = |
3766 Referrer(params.redirects[0], ds->request().referrerPolicy()); | 3766 Referrer(params.redirects[0], ds->request().referrerPolicy()); |
3767 params.transition = ui::PageTransitionFromInt( | 3767 params.transition = ui::PageTransitionFromInt( |
3768 params.transition | ui::PAGE_TRANSITION_CLIENT_REDIRECT); | 3768 params.transition | ui::PAGE_TRANSITION_CLIENT_REDIRECT); |
3769 } else { | 3769 } else { |
3770 params.referrer = RenderViewImpl::GetReferrerFromRequest( | 3770 params.referrer = RenderViewImpl::GetReferrerFromRequest( |
3771 frame, ds->request()); | 3771 frame, ds->request()); |
3772 } | 3772 } |
3773 | 3773 |
3774 base::string16 method = request.httpMethod(); | 3774 base::string16 method = request.httpMethod(); |
3775 if (EqualsASCII(method, "POST")) { | 3775 if (entry && EqualsASCII(method, "POST")) { |
3776 params.is_post = true; | 3776 params.is_post = true; |
Charlie Reis
2015/02/17 21:26:59
Good catch. I don't think we should skip this lin
Sunil Ratnu
2015/02/18 09:04:45
Done.
| |
3777 params.post_id = ExtractPostId(entry->root()); | 3777 params.post_id = ExtractPostId(entry->root()); |
3778 } | 3778 } |
3779 | 3779 |
3780 // Send the user agent override back. | 3780 // Send the user agent override back. |
3781 params.is_overriding_user_agent = internal_data->is_overriding_user_agent(); | 3781 params.is_overriding_user_agent = internal_data->is_overriding_user_agent(); |
3782 | 3782 |
3783 // Track the URL of the original request. We use the first entry of the | 3783 // Track the URL of the original request. We use the first entry of the |
3784 // redirect chain if it exists because the chain may have started in another | 3784 // redirect chain if it exists because the chain may have started in another |
3785 // process. | 3785 // process. |
3786 params.original_request_url = GetOriginalRequestURL(ds); | 3786 params.original_request_url = GetOriginalRequestURL(ds); |
(...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4439 | 4439 |
4440 #if defined(ENABLE_BROWSER_CDMS) | 4440 #if defined(ENABLE_BROWSER_CDMS) |
4441 RendererCdmManager* RenderFrameImpl::GetCdmManager() { | 4441 RendererCdmManager* RenderFrameImpl::GetCdmManager() { |
4442 if (!cdm_manager_) | 4442 if (!cdm_manager_) |
4443 cdm_manager_ = new RendererCdmManager(this); | 4443 cdm_manager_ = new RendererCdmManager(this); |
4444 return cdm_manager_; | 4444 return cdm_manager_; |
4445 } | 4445 } |
4446 #endif // defined(ENABLE_BROWSER_CDMS) | 4446 #endif // defined(ENABLE_BROWSER_CDMS) |
4447 | 4447 |
4448 } // namespace content | 4448 } // namespace content |
OLD | NEW |