| 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/render_view_context_menu_controller.h" | 5 #include "chrome/browser/render_view_context_menu_controller.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
| 9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
| 10 #include "chrome/app/chrome_dll_resource.h" | 10 #include "chrome/app/chrome_dll_resource.h" |
| 11 #include "chrome/common/chrome_paths.h" | 11 #include "chrome/common/chrome_paths.h" |
| 12 #include "chrome/common/pref_names.h" | 12 #include "chrome/common/pref_names.h" |
| 13 #include "chrome/common/pref_service.h" | 13 #include "chrome/common/pref_service.h" |
| 14 #include "chrome/browser/browser_process.h" | 14 #include "chrome/browser/browser_process.h" |
| 15 #include "chrome/browser/download/download_manager.h" | 15 #include "chrome/browser/download/download_manager.h" |
| 16 #include "chrome/browser/download/save_package.h" |
| 16 #include "chrome/browser/navigation_controller.h" | 17 #include "chrome/browser/navigation_controller.h" |
| 17 #include "chrome/browser/navigation_entry.h" | 18 #include "chrome/browser/navigation_entry.h" |
| 18 #include "chrome/browser/profile.h" | 19 #include "chrome/browser/profile.h" |
| 19 #include "chrome/browser/save_package.h" | |
| 20 #include "chrome/browser/template_url_model.h" | 20 #include "chrome/browser/template_url_model.h" |
| 21 #include "chrome/browser/web_contents.h" | 21 #include "chrome/browser/web_contents.h" |
| 22 #include "chrome/common/chrome_switches.h" | 22 #include "chrome/common/chrome_switches.h" |
| 23 #include "chrome/common/clipboard_service.h" | 23 #include "chrome/common/clipboard_service.h" |
| 24 #include "chrome/common/l10n_util.h" | 24 #include "chrome/common/l10n_util.h" |
| 25 #include "chrome/common/win_util.h" | 25 #include "chrome/common/win_util.h" |
| 26 #include "net/base/escape.h" | 26 #include "net/base/escape.h" |
| 27 #include "net/base/net_util.h" | 27 #include "net/base/net_util.h" |
| 28 #include "net/url_request/url_request.h" | 28 #include "net/url_request/url_request.h" |
| 29 | 29 |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 if (id == IDS_CONTENT_CONTEXT_INSPECTELEMENT) { | 407 if (id == IDS_CONTENT_CONTEXT_INSPECTELEMENT) { |
| 408 PrefService* prefs = source_web_contents_->profile()->GetPrefs(); | 408 PrefService* prefs = source_web_contents_->profile()->GetPrefs(); |
| 409 if (!prefs->GetBoolean(prefs::kWebKitJavascriptEnabled) || | 409 if (!prefs->GetBoolean(prefs::kWebKitJavascriptEnabled) || |
| 410 command_line.HasSwitch(switches::kDisableJavaScript)) | 410 command_line.HasSwitch(switches::kDisableJavaScript)) |
| 411 return false; | 411 return false; |
| 412 } | 412 } |
| 413 | 413 |
| 414 return true; | 414 return true; |
| 415 } | 415 } |
| 416 | 416 |
| OLD | NEW |