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

Side by Side Diff: chrome/browser/ui/browser.cc

Issue 2410043003: Add a console messsage for HTTP-bad (Closed)
Patch Set: de-const other WebContentsDelegates 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
« no previous file with comments | « chrome/browser/ui/browser.h ('k') | chrome/test/data/ssl/page_with_frame.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 #include "chrome/browser/ui/browser.h" 5 #include "chrome/browser/ui/browser.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <string> 10 #include <string>
(...skipping 1406 matching lines...) Expand 10 before | Expand all | Expand 10 after
1417 // actions in the face of slow-to-commit pages. 1417 // actions in the face of slow-to-commit pages.
1418 if (changed_flags & (content::INVALIDATE_TYPE_URL | 1418 if (changed_flags & (content::INVALIDATE_TYPE_URL |
1419 content::INVALIDATE_TYPE_LOAD | 1419 content::INVALIDATE_TYPE_LOAD |
1420 content::INVALIDATE_TYPE_TAB)) 1420 content::INVALIDATE_TYPE_TAB))
1421 command_controller_->TabStateChanged(); 1421 command_controller_->TabStateChanged();
1422 1422
1423 if (hosted_app_controller_) 1423 if (hosted_app_controller_)
1424 hosted_app_controller_->UpdateLocationBarVisibility(true); 1424 hosted_app_controller_->UpdateLocationBarVisibility(true);
1425 } 1425 }
1426 1426
1427 void Browser::VisibleSSLStateChanged(const WebContents* source) { 1427 void Browser::VisibleSSLStateChanged(WebContents* source) {
1428 // When the current tab's SSL state changes, we need to update the URL 1428 // When the current tab's SSL state changes, we need to update the URL
1429 // bar to reflect the new state. 1429 // bar to reflect the new state.
1430 DCHECK(source); 1430 DCHECK(source);
1431 if (tab_strip_model_->GetActiveWebContents() == source) 1431 if (tab_strip_model_->GetActiveWebContents() == source)
1432 UpdateToolbar(false); 1432 UpdateToolbar(false);
1433
1434 ChromeSecurityStateModelClient* security_model =
1435 ChromeSecurityStateModelClient::FromWebContents(source);
felt 2016/10/17 16:59:33 To make sure I understand: (1) Something triggers
estark 2016/10/17 17:14:20 CSSMC::VisibleSSLStateChanged() computes the Secur
felt 2016/10/17 17:18:36 Oh I see, I missed that there was a call to GetSec
1436 security_model->VisibleSSLStateChanged();
1433 } 1437 }
1434 1438
1435 void Browser::AddNewContents(WebContents* source, 1439 void Browser::AddNewContents(WebContents* source,
1436 WebContents* new_contents, 1440 WebContents* new_contents,
1437 WindowOpenDisposition disposition, 1441 WindowOpenDisposition disposition,
1438 const gfx::Rect& initial_rect, 1442 const gfx::Rect& initial_rect,
1439 bool user_gesture, 1443 bool user_gesture,
1440 bool* was_blocked) { 1444 bool* was_blocked) {
1441 chrome::AddWebContents(this, source, new_contents, disposition, initial_rect, 1445 chrome::AddWebContents(this, source, new_contents, disposition, initial_rect,
1442 user_gesture, was_blocked); 1446 user_gesture, was_blocked);
(...skipping 1127 matching lines...) Expand 10 before | Expand all | Expand 10 after
2570 if (contents && !allow_js_access) { 2574 if (contents && !allow_js_access) {
2571 contents->web_contents()->GetController().LoadURL( 2575 contents->web_contents()->GetController().LoadURL(
2572 target_url, 2576 target_url,
2573 content::Referrer(), 2577 content::Referrer(),
2574 ui::PAGE_TRANSITION_LINK, 2578 ui::PAGE_TRANSITION_LINK,
2575 std::string()); // No extra headers. 2579 std::string()); // No extra headers.
2576 } 2580 }
2577 2581
2578 return contents != NULL; 2582 return contents != NULL;
2579 } 2583 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser.h ('k') | chrome/test/data/ssl/page_with_frame.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698