| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
| 8 #include <shellapi.h> | 8 #include <shellapi.h> |
| 9 #include <windows.h> | 9 #include <windows.h> |
| 10 #endif // OS_WIN | 10 #endif // OS_WIN |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 #include "app/win/shell.h" | 138 #include "app/win/shell.h" |
| 139 #include "chrome/browser/autofill/autofill_ie_toolbar_import_win.h" | 139 #include "chrome/browser/autofill/autofill_ie_toolbar_import_win.h" |
| 140 #include "chrome/browser/shell_integration.h" | 140 #include "chrome/browser/shell_integration.h" |
| 141 #include "chrome/browser/ssl/ssl_error_info.h" | 141 #include "chrome/browser/ssl/ssl_error_info.h" |
| 142 #include "chrome/browser/task_manager/task_manager.h" | 142 #include "chrome/browser/task_manager/task_manager.h" |
| 143 #include "chrome/browser/ui/view_ids.h" | 143 #include "chrome/browser/ui/view_ids.h" |
| 144 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" | 144 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" |
| 145 #endif // OS_WIN | 145 #endif // OS_WIN |
| 146 | 146 |
| 147 #if defined(OS_MACOSX) | 147 #if defined(OS_MACOSX) |
| 148 #include "chrome/browser/ui/cocoa/find_pasteboard.h" | 148 #include "content/browser/find_pasteboard.h" |
| 149 #endif | 149 #endif |
| 150 | 150 |
| 151 #if defined(OS_CHROMEOS) | 151 #if defined(OS_CHROMEOS) |
| 152 #include "chrome/browser/chromeos/boot_times_loader.h" | 152 #include "chrome/browser/chromeos/boot_times_loader.h" |
| 153 #include "chrome/browser/extensions/file_manager_util.h" | 153 #include "chrome/browser/extensions/file_manager_util.h" |
| 154 #endif | 154 #endif |
| 155 | 155 |
| 156 using base::TimeDelta; | 156 using base::TimeDelta; |
| 157 | 157 |
| 158 /////////////////////////////////////////////////////////////////////////////// | 158 /////////////////////////////////////////////////////////////////////////////// |
| (...skipping 4551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4710 TabContents* current_tab = GetSelectedTabContents(); | 4710 TabContents* current_tab = GetSelectedTabContents(); |
| 4711 if (current_tab) { | 4711 if (current_tab) { |
| 4712 content_restrictions = current_tab->content_restrictions(); | 4712 content_restrictions = current_tab->content_restrictions(); |
| 4713 NavigationEntry* active_entry = current_tab->controller().GetActiveEntry(); | 4713 NavigationEntry* active_entry = current_tab->controller().GetActiveEntry(); |
| 4714 // See comment in UpdateCommandsForTabState about why we call url(). | 4714 // See comment in UpdateCommandsForTabState about why we call url(). |
| 4715 if (!SavePackage::IsSavableURL(active_entry ? active_entry->url() : GURL())) | 4715 if (!SavePackage::IsSavableURL(active_entry ? active_entry->url() : GURL())) |
| 4716 content_restrictions |= CONTENT_RESTRICTION_SAVE; | 4716 content_restrictions |= CONTENT_RESTRICTION_SAVE; |
| 4717 } | 4717 } |
| 4718 return content_restrictions; | 4718 return content_restrictions; |
| 4719 } | 4719 } |
| OLD | NEW |