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

Side by Side Diff: content/browser/frame_host/navigation_handle_impl.h

Issue 2745363004: PlzNavigate: send SourceLocation when mixed content is found (Closed)
Patch Set: Created 3 years, 9 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_
7 7
8 #include "content/public/browser/navigation_handle.h" 8 #include "content/public/browser/navigation_handle.h"
9 9
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 348
349 void set_complete_callback_for_testing( 349 void set_complete_callback_for_testing(
350 const ThrottleChecksFinishedCallback& callback) { 350 const ThrottleChecksFinishedCallback& callback) {
351 complete_callback_for_testing_ = callback; 351 complete_callback_for_testing_ = callback;
352 } 352 }
353 353
354 void set_base_url_for_data_url(const GURL& url) { 354 void set_base_url_for_data_url(const GURL& url) {
355 base_url_for_data_url_ = url; 355 base_url_for_data_url_ = url;
356 } 356 }
357 357
358 const SourceLocation& source_location() const { return source_location_; }
359 void set_source_location(const SourceLocation& source_location) {
360 source_location_ = source_location;
361 }
362
358 private: 363 private:
359 friend class NavigationHandleImplTest; 364 friend class NavigationHandleImplTest;
360 365
361 NavigationHandleImpl(const GURL& url, 366 NavigationHandleImpl(const GURL& url,
362 const std::vector<GURL>& redirect_chain, 367 const std::vector<GURL>& redirect_chain,
363 FrameTreeNode* frame_tree_node, 368 FrameTreeNode* frame_tree_node,
364 bool is_renderer_initiated, 369 bool is_renderer_initiated,
365 bool is_same_page, 370 bool is_same_page,
366 const base::TimeTicks& navigation_start, 371 const base::TimeTicks& navigation_start,
367 int pending_nav_entry_id, 372 int pending_nav_entry_id,
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 518
514 GURL searchable_form_url_; 519 GURL searchable_form_url_;
515 std::string searchable_form_encoding_; 520 std::string searchable_form_encoding_;
516 521
517 GURL previous_url_; 522 GURL previous_url_;
518 GURL base_url_; 523 GURL base_url_;
519 GURL base_url_for_data_url_; 524 GURL base_url_for_data_url_;
520 net::HostPortPair socket_address_; 525 net::HostPortPair socket_address_;
521 NavigationType navigation_type_; 526 NavigationType navigation_type_;
522 527
528 // PlzNavigate
529 // Information about the Javascript that started the navigation. for
nasko 2017/03/15 18:29:08 nit: JavaScript nit: For
clamy 2017/03/16 15:07:03 Done.
530 // navigations initiated by Javascript.
531 SourceLocation source_location_;
532
523 base::WeakPtrFactory<NavigationHandleImpl> weak_factory_; 533 base::WeakPtrFactory<NavigationHandleImpl> weak_factory_;
524 534
525 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl); 535 DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl);
526 }; 536 };
527 537
528 } // namespace content 538 } // namespace content
529 539
530 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_ 540 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_HANDLE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698