| 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/renderer_host/render_view_host.h" | 5 #include "content/browser/renderer_host/render_view_host.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
| 12 #include "base/i18n/rtl.h" | 12 #include "base/i18n/rtl.h" |
| 13 #include "base/json/json_reader.h" | 13 #include "base/json/json_reader.h" |
| 14 #include "base/string_util.h" | 14 #include "base/string_util.h" |
| 15 #include "base/time.h" | 15 #include "base/time.h" |
| 16 #include "base/utf_string_conversions.h" | 16 #include "base/utf_string_conversions.h" |
| 17 #include "base/values.h" | 17 #include "base/values.h" |
| 18 #include "chrome/browser/child_process_security_policy.h" | 18 #include "chrome/browser/child_process_security_policy.h" |
| 19 #include "chrome/browser/cross_site_request_manager.h" | 19 #include "chrome/browser/cross_site_request_manager.h" |
| 20 #include "chrome/browser/debugger/devtools_manager.h" | 20 #include "chrome/browser/debugger/devtools_manager.h" |
| 21 #include "chrome/browser/dom_operation_notification_details.h" | 21 #include "chrome/browser/dom_operation_notification_details.h" |
| 22 #include "chrome/browser/extensions/extension_message_service.h" | 22 #include "chrome/browser/extensions/extension_message_service.h" |
| 23 #include "chrome/browser/in_process_webkit/session_storage_namespace.h" | 23 #include "chrome/browser/in_process_webkit/session_storage_namespace.h" |
| 24 #include "chrome/browser/metrics/user_metrics.h" | 24 #include "chrome/browser/metrics/user_metrics.h" |
| 25 #include "chrome/browser/net/predictor_api.h" | 25 #include "chrome/browser/net/predictor_api.h" |
| 26 #include "chrome/browser/profiles/profile.h" | 26 #include "chrome/browser/profiles/profile.h" |
| 27 #include "chrome/browser/renderer_host/render_process_host.h" | |
| 28 #include "chrome/browser/renderer_host/render_view_host_delegate.h" | |
| 29 #include "chrome/browser/renderer_host/render_widget_host.h" | |
| 30 #include "chrome/browser/renderer_host/render_widget_host_view.h" | |
| 31 #include "chrome/browser/renderer_host/site_instance.h" | 27 #include "chrome/browser/renderer_host/site_instance.h" |
| 32 #include "chrome/common/bindings_policy.h" | 28 #include "chrome/common/bindings_policy.h" |
| 33 #include "chrome/common/chrome_constants.h" | 29 #include "chrome/common/chrome_constants.h" |
| 34 #include "chrome/common/chrome_switches.h" | 30 #include "chrome/common/chrome_switches.h" |
| 35 #include "chrome/common/native_web_keyboard_event.h" | 31 #include "chrome/common/native_web_keyboard_event.h" |
| 36 #include "chrome/common/net/url_request_context_getter.h" | 32 #include "chrome/common/net/url_request_context_getter.h" |
| 37 #include "chrome/common/notification_details.h" | 33 #include "chrome/common/notification_details.h" |
| 38 #include "chrome/common/notification_service.h" | 34 #include "chrome/common/notification_service.h" |
| 39 #include "chrome/common/notification_type.h" | 35 #include "chrome/common/notification_type.h" |
| 40 #include "chrome/common/render_messages.h" | 36 #include "chrome/common/render_messages.h" |
| 41 #include "chrome/common/render_messages_params.h" | 37 #include "chrome/common/render_messages_params.h" |
| 42 #include "chrome/common/result_codes.h" | 38 #include "chrome/common/result_codes.h" |
| 43 #include "chrome/common/thumbnail_score.h" | 39 #include "chrome/common/thumbnail_score.h" |
| 44 #include "chrome/common/translate_errors.h" | 40 #include "chrome/common/translate_errors.h" |
| 45 #include "chrome/common/url_constants.h" | 41 #include "chrome/common/url_constants.h" |
| 46 #include "chrome/common/web_apps.h" | 42 #include "chrome/common/web_apps.h" |
| 43 #include "content/browser/renderer_host/render_process_host.h" |
| 44 #include "content/browser/renderer_host/render_view_host_delegate.h" |
| 45 #include "content/browser/renderer_host/render_widget_host.h" |
| 46 #include "content/browser/renderer_host/render_widget_host_view.h" |
| 47 #include "net/base/net_util.h" | 47 #include "net/base/net_util.h" |
| 48 #include "printing/native_metafile.h" | 48 #include "printing/native_metafile.h" |
| 49 #include "third_party/skia/include/core/SkBitmap.h" | 49 #include "third_party/skia/include/core/SkBitmap.h" |
| 50 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" | 50 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" |
| 51 #include "ui/gfx/native_widget_types.h" | 51 #include "ui/gfx/native_widget_types.h" |
| 52 #include "webkit/glue/context_menu.h" | 52 #include "webkit/glue/context_menu.h" |
| 53 #include "webkit/glue/webaccessibility.h" | 53 #include "webkit/glue/webaccessibility.h" |
| 54 #include "webkit/glue/webdropdata.h" | 54 #include "webkit/glue/webdropdata.h" |
| 55 | 55 |
| 56 using base::TimeDelta; | 56 using base::TimeDelta; |
| (...skipping 1646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1703 LOG(DFATAL) << "Invalid checked state " << checked_state; | 1703 LOG(DFATAL) << "Invalid checked state " << checked_state; |
| 1704 return; | 1704 return; |
| 1705 } | 1705 } |
| 1706 | 1706 |
| 1707 CommandState state; | 1707 CommandState state; |
| 1708 state.is_enabled = is_enabled; | 1708 state.is_enabled = is_enabled; |
| 1709 state.checked_state = | 1709 state.checked_state = |
| 1710 static_cast<RenderViewCommandCheckedState>(checked_state); | 1710 static_cast<RenderViewCommandCheckedState>(checked_state); |
| 1711 command_states_[static_cast<RenderViewCommand>(command)] = state; | 1711 command_states_[static_cast<RenderViewCommand>(command)] = state; |
| 1712 } | 1712 } |
| OLD | NEW |