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

Side by Side Diff: content/renderer/render_frame_impl.cc

Issue 2421383003: Add operator==(const GURL&, const StringPiece&) to gurl.h (Closed)
Patch Set: remove comment Created 4 years, 2 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 #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 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 4725 matching lines...) Expand 10 before | Expand all | Expand 10 after
4736 params.origin = frame->document().getSecurityOrigin(); 4736 params.origin = frame->document().getSecurityOrigin();
4737 4737
4738 params.insecure_request_policy = frame->getInsecureRequestPolicy(); 4738 params.insecure_request_policy = frame->getInsecureRequestPolicy();
4739 4739
4740 params.has_potentially_trustworthy_unique_origin = 4740 params.has_potentially_trustworthy_unique_origin =
4741 frame->document().getSecurityOrigin().isUnique() && 4741 frame->document().getSecurityOrigin().isUnique() &&
4742 frame->document().getSecurityOrigin().isPotentiallyTrustworthy(); 4742 frame->document().getSecurityOrigin().isPotentiallyTrustworthy();
4743 4743
4744 // Set the URL to be displayed in the browser UI to the user. 4744 // Set the URL to be displayed in the browser UI to the user.
4745 params.url = GetLoadingUrl(); 4745 params.url = GetLoadingUrl();
4746 if (frame->document().baseURL() != params.url) 4746 if (GURL(frame->document().baseURL()) != params.url)
4747 params.base_url = frame->document().baseURL(); 4747 params.base_url = frame->document().baseURL();
4748 4748
4749 GetRedirectChain(ds, &params.redirects); 4749 GetRedirectChain(ds, &params.redirects);
4750 params.should_update_history = 4750 params.should_update_history =
4751 !ds->hasUnreachableURL() && response.httpStatusCode() != 404; 4751 !ds->hasUnreachableURL() && response.httpStatusCode() != 404;
4752 4752
4753 params.searchable_form_url = internal_data->searchable_form_url(); 4753 params.searchable_form_url = internal_data->searchable_form_url();
4754 params.searchable_form_encoding = internal_data->searchable_form_encoding(); 4754 params.searchable_form_encoding = internal_data->searchable_form_encoding();
4755 4755
4756 params.gesture = render_view_->navigation_gesture_; 4756 params.gesture = render_view_->navigation_gesture_;
(...skipping 1792 matching lines...) Expand 10 before | Expand all | Expand 10 after
6549 // event target. Potentially a Pepper plugin will receive the event. 6549 // event target. Potentially a Pepper plugin will receive the event.
6550 // In order to tell whether a plugin gets the last mouse event and which it 6550 // In order to tell whether a plugin gets the last mouse event and which it
6551 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets 6551 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets
6552 // the event, it will notify us via DidReceiveMouseEvent() and set itself as 6552 // the event, it will notify us via DidReceiveMouseEvent() and set itself as
6553 // |pepper_last_mouse_event_target_|. 6553 // |pepper_last_mouse_event_target_|.
6554 pepper_last_mouse_event_target_ = nullptr; 6554 pepper_last_mouse_event_target_ = nullptr;
6555 #endif 6555 #endif
6556 } 6556 }
6557 6557
6558 } // namespace content 6558 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/download/download_manager_impl_unittest.cc ('k') | extensions/renderer/script_injection_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698