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 "content/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/debugger/devtools_manager.h" | 18 #include "chrome/browser/debugger/devtools_manager.h" |
19 #include "chrome/browser/dom_operation_notification_details.h" | 19 #include "chrome/browser/dom_operation_notification_details.h" |
20 #include "chrome/browser/extensions/extension_message_service.h" | 20 #include "chrome/browser/extensions/extension_message_service.h" |
21 #include "chrome/browser/metrics/user_metrics.h" | 21 #include "chrome/browser/metrics/user_metrics.h" |
22 #include "chrome/browser/net/predictor_api.h" | 22 #include "chrome/browser/net/predictor_api.h" |
23 #include "chrome/browser/profiles/profile.h" | 23 #include "chrome/browser/profiles/profile.h" |
24 #include "chrome/common/bindings_policy.h" | 24 #include "chrome/common/bindings_policy.h" |
25 #include "chrome/common/chrome_constants.h" | 25 #include "chrome/common/chrome_constants.h" |
26 #include "chrome/common/chrome_switches.h" | 26 #include "chrome/common/chrome_switches.h" |
27 #include "chrome/common/native_web_keyboard_event.h" | |
28 #include "chrome/common/net/url_request_context_getter.h" | 27 #include "chrome/common/net/url_request_context_getter.h" |
29 #include "chrome/common/render_messages.h" | 28 #include "chrome/common/render_messages.h" |
30 #include "chrome/common/render_messages_params.h" | 29 #include "chrome/common/render_messages_params.h" |
31 #include "chrome/common/result_codes.h" | |
32 #include "chrome/common/thumbnail_score.h" | 30 #include "chrome/common/thumbnail_score.h" |
33 #include "chrome/common/translate_errors.h" | 31 #include "chrome/common/translate_errors.h" |
34 #include "chrome/common/url_constants.h" | 32 #include "chrome/common/url_constants.h" |
35 #include "chrome/common/web_apps.h" | 33 #include "chrome/common/web_apps.h" |
36 #include "content/browser/child_process_security_policy.h" | 34 #include "content/browser/child_process_security_policy.h" |
37 #include "content/browser/cross_site_request_manager.h" | 35 #include "content/browser/cross_site_request_manager.h" |
38 #include "content/browser/in_process_webkit/session_storage_namespace.h" | 36 #include "content/browser/in_process_webkit/session_storage_namespace.h" |
39 #include "content/browser/renderer_host/render_process_host.h" | 37 #include "content/browser/renderer_host/render_process_host.h" |
40 #include "content/browser/renderer_host/render_view_host_delegate.h" | 38 #include "content/browser/renderer_host/render_view_host_delegate.h" |
41 #include "content/browser/renderer_host/render_widget_host.h" | 39 #include "content/browser/renderer_host/render_widget_host.h" |
42 #include "content/browser/renderer_host/render_widget_host_view.h" | 40 #include "content/browser/renderer_host/render_widget_host_view.h" |
43 #include "content/browser/site_instance.h" | 41 #include "content/browser/site_instance.h" |
| 42 #include "content/common/native_web_keyboard_event.h" |
44 #include "content/common/notification_details.h" | 43 #include "content/common/notification_details.h" |
45 #include "content/common/notification_service.h" | 44 #include "content/common/notification_service.h" |
46 #include "content/common/notification_type.h" | 45 #include "content/common/notification_type.h" |
| 46 #include "content/common/result_codes.h" |
47 #include "net/base/net_util.h" | 47 #include "net/base/net_util.h" |
48 #include "third_party/skia/include/core/SkBitmap.h" | 48 #include "third_party/skia/include/core/SkBitmap.h" |
49 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" | 49 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" |
50 #include "ui/gfx/native_widget_types.h" | 50 #include "ui/gfx/native_widget_types.h" |
51 #include "webkit/glue/context_menu.h" | 51 #include "webkit/glue/context_menu.h" |
52 #include "webkit/glue/webaccessibility.h" | 52 #include "webkit/glue/webaccessibility.h" |
53 #include "webkit/glue/webdropdata.h" | 53 #include "webkit/glue/webdropdata.h" |
54 | 54 |
55 using base::TimeDelta; | 55 using base::TimeDelta; |
56 using WebKit::WebConsoleMessage; | 56 using WebKit::WebConsoleMessage; |
(...skipping 1631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1688 LOG(DFATAL) << "Invalid checked state " << checked_state; | 1688 LOG(DFATAL) << "Invalid checked state " << checked_state; |
1689 return; | 1689 return; |
1690 } | 1690 } |
1691 | 1691 |
1692 CommandState state; | 1692 CommandState state; |
1693 state.is_enabled = is_enabled; | 1693 state.is_enabled = is_enabled; |
1694 state.checked_state = | 1694 state.checked_state = |
1695 static_cast<RenderViewCommandCheckedState>(checked_state); | 1695 static_cast<RenderViewCommandCheckedState>(checked_state); |
1696 command_states_[static_cast<RenderViewCommand>(command)] = state; | 1696 command_states_[static_cast<RenderViewCommand>(command)] = state; |
1697 } | 1697 } |
OLD | NEW |