| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/tab_contents/tab_contents.h" | 5 #include "chrome/browser/tab_contents/tab_contents.h" |
| 6 | 6 |
| 7 #include "app/resource_bundle.h" | 7 #include "app/resource_bundle.h" |
| 8 #include "base/file_version_info.h" | 8 #include "base/file_version_info.h" |
| 9 #include "base/process_util.h" | 9 #include "base/process_util.h" |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| (...skipping 1901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1912 } | 1912 } |
| 1913 | 1913 |
| 1914 void TabContents::RequestOpenURL(const GURL& url, const GURL& referrer, | 1914 void TabContents::RequestOpenURL(const GURL& url, const GURL& referrer, |
| 1915 WindowOpenDisposition disposition) { | 1915 WindowOpenDisposition disposition) { |
| 1916 if (render_manager_.dom_ui()) { | 1916 if (render_manager_.dom_ui()) { |
| 1917 // When we're a DOM UI, it will provide a page transition type for us (this | 1917 // When we're a DOM UI, it will provide a page transition type for us (this |
| 1918 // is so the new tab page can specify AUTO_BOOKMARK for automatically | 1918 // is so the new tab page can specify AUTO_BOOKMARK for automatically |
| 1919 // generated suggestions). | 1919 // generated suggestions). |
| 1920 // | 1920 // |
| 1921 // Note also that we hide the referrer for DOM UI pages. We don't really | 1921 // Note also that we hide the referrer for DOM UI pages. We don't really |
| 1922 // want web sites to see a referrer of "chrome-ui://blah" (and some | 1922 // want web sites to see a referrer of "chrome://blah" (and some |
| 1923 // chrome-ui URLs might have search terms or other stuff we don't want to | 1923 // chrome: URLs might have search terms or other stuff we don't want to |
| 1924 // send to the site), so we send no referrer. | 1924 // send to the site), so we send no referrer. |
| 1925 OpenURL(url, GURL(), disposition, | 1925 OpenURL(url, GURL(), disposition, |
| 1926 render_manager_.dom_ui()->link_transition_type()); | 1926 render_manager_.dom_ui()->link_transition_type()); |
| 1927 } else { | 1927 } else { |
| 1928 OpenURL(url, referrer, disposition, PageTransition::LINK); | 1928 OpenURL(url, referrer, disposition, PageTransition::LINK); |
| 1929 } | 1929 } |
| 1930 } | 1930 } |
| 1931 | 1931 |
| 1932 void TabContents::DomOperationResponse(const std::string& json_string, | 1932 void TabContents::DomOperationResponse(const std::string& json_string, |
| 1933 int automation_id) { | 1933 int automation_id) { |
| (...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2416 NavigationController::LoadCommittedDetails& committed_details = | 2416 NavigationController::LoadCommittedDetails& committed_details = |
| 2417 *(Details<NavigationController::LoadCommittedDetails>(details).ptr()); | 2417 *(Details<NavigationController::LoadCommittedDetails>(details).ptr()); |
| 2418 ExpireInfoBars(committed_details); | 2418 ExpireInfoBars(committed_details); |
| 2419 break; | 2419 break; |
| 2420 } | 2420 } |
| 2421 | 2421 |
| 2422 default: | 2422 default: |
| 2423 NOTREACHED(); | 2423 NOTREACHED(); |
| 2424 } | 2424 } |
| 2425 } | 2425 } |
| OLD | NEW |