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/renderer/render_view.h" | 5 #include "chrome/renderer/render_view.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cmath> | 8 #include <cmath> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 17 matching lines...) Expand all Loading... |
28 #include "chrome/common/child_process_logging.h" | 28 #include "chrome/common/child_process_logging.h" |
29 #include "chrome/common/chrome_constants.h" | 29 #include "chrome/common/chrome_constants.h" |
30 #include "chrome/common/chrome_paths.h" | 30 #include "chrome/common/chrome_paths.h" |
31 #include "chrome/common/chrome_switches.h" | 31 #include "chrome/common/chrome_switches.h" |
32 #include "chrome/common/database_messages.h" | 32 #include "chrome/common/database_messages.h" |
33 #include "chrome/common/extensions/extension.h" | 33 #include "chrome/common/extensions/extension.h" |
34 #include "chrome/common/extensions/extension_constants.h" | 34 #include "chrome/common/extensions/extension_constants.h" |
35 #include "chrome/common/extensions/extension_set.h" | 35 #include "chrome/common/extensions/extension_set.h" |
36 #include "chrome/common/json_value_serializer.h" | 36 #include "chrome/common/json_value_serializer.h" |
37 #include "chrome/common/jstemplate_builder.h" | 37 #include "chrome/common/jstemplate_builder.h" |
38 #include "chrome/common/notification_service.h" | |
39 #include "chrome/common/page_zoom.h" | 38 #include "chrome/common/page_zoom.h" |
40 #include "chrome/common/pepper_messages.h" | 39 #include "chrome/common/pepper_messages.h" |
41 #include "chrome/common/pepper_plugin_registry.h" | 40 #include "chrome/common/pepper_plugin_registry.h" |
42 #include "chrome/common/render_messages.h" | 41 #include "chrome/common/render_messages.h" |
43 #include "chrome/common/render_messages_params.h" | 42 #include "chrome/common/render_messages_params.h" |
44 #include "chrome/common/render_view_commands.h" | 43 #include "chrome/common/render_view_commands.h" |
45 #include "chrome/common/renderer_preferences.h" | 44 #include "chrome/common/renderer_preferences.h" |
46 #include "chrome/common/thumbnail_score.h" | 45 #include "chrome/common/thumbnail_score.h" |
47 #include "chrome/common/url_constants.h" | 46 #include "chrome/common/url_constants.h" |
48 #include "chrome/common/web_apps.h" | 47 #include "chrome/common/web_apps.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 #include "chrome/renderer/visitedlink_slave.h" | 97 #include "chrome/renderer/visitedlink_slave.h" |
99 #include "chrome/renderer/web_ui_bindings.h" | 98 #include "chrome/renderer/web_ui_bindings.h" |
100 #include "chrome/renderer/webgraphicscontext3d_command_buffer_impl.h" | 99 #include "chrome/renderer/webgraphicscontext3d_command_buffer_impl.h" |
101 #include "chrome/renderer/webplugin_delegate_pepper.h" | 100 #include "chrome/renderer/webplugin_delegate_pepper.h" |
102 #include "chrome/renderer/webplugin_delegate_proxy.h" | 101 #include "chrome/renderer/webplugin_delegate_proxy.h" |
103 #include "chrome/renderer/websharedworker_proxy.h" | 102 #include "chrome/renderer/websharedworker_proxy.h" |
104 #include "chrome/renderer/webworker_proxy.h" | 103 #include "chrome/renderer/webworker_proxy.h" |
105 #include "content/common/content_constants.h" | 104 #include "content/common/content_constants.h" |
106 #include "content/common/file_system/file_system_dispatcher.h" | 105 #include "content/common/file_system/file_system_dispatcher.h" |
107 #include "content/common/file_system/webfilesystem_callback_dispatcher.h" | 106 #include "content/common/file_system/webfilesystem_callback_dispatcher.h" |
| 107 #include "content/common/notification_service.h" |
108 #include "grit/generated_resources.h" | 108 #include "grit/generated_resources.h" |
109 #include "grit/renderer_resources.h" | 109 #include "grit/renderer_resources.h" |
110 #include "media/base/filter_collection.h" | 110 #include "media/base/filter_collection.h" |
111 #include "media/base/media_switches.h" | 111 #include "media/base/media_switches.h" |
112 #include "media/base/message_loop_factory_impl.h" | 112 #include "media/base/message_loop_factory_impl.h" |
113 #include "net/base/data_url.h" | 113 #include "net/base/data_url.h" |
114 #include "net/base/escape.h" | 114 #include "net/base/escape.h" |
115 #include "net/base/net_errors.h" | 115 #include "net/base/net_errors.h" |
116 #include "net/http/http_util.h" | 116 #include "net/http/http_util.h" |
117 #include "ppapi/c/private/ppb_flash_net_connector.h" | 117 #include "ppapi/c/private/ppb_flash_net_connector.h" |
(...skipping 5593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5711 const webkit_glue::CustomContextMenuContext& custom_context) { | 5711 const webkit_glue::CustomContextMenuContext& custom_context) { |
5712 if (custom_context.is_pepper_menu) | 5712 if (custom_context.is_pepper_menu) |
5713 pepper_delegate_.OnContextMenuClosed(custom_context); | 5713 pepper_delegate_.OnContextMenuClosed(custom_context); |
5714 else | 5714 else |
5715 context_menu_node_.reset(); | 5715 context_menu_node_.reset(); |
5716 } | 5716 } |
5717 | 5717 |
5718 void RenderView::OnNetworkStateChanged(bool online) { | 5718 void RenderView::OnNetworkStateChanged(bool online) { |
5719 WebNetworkStateNotifier::setOnLine(online); | 5719 WebNetworkStateNotifier::setOnLine(online); |
5720 } | 5720 } |
OLD | NEW |