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/renderer/render_view.h" | 5 #include "content/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> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
15 #include "base/lazy_instance.h" | 15 #include "base/lazy_instance.h" |
16 #include "base/metrics/histogram.h" | 16 #include "base/metrics/histogram.h" |
17 #include "base/path_service.h" | 17 #include "base/path_service.h" |
18 #include "base/process_util.h" | 18 #include "base/process_util.h" |
19 #include "base/string_piece.h" | 19 #include "base/string_piece.h" |
20 #include "base/string_util.h" | 20 #include "base/string_util.h" |
21 #include "base/sys_string_conversions.h" | 21 #include "base/sys_string_conversions.h" |
22 #include "base/time.h" | 22 #include "base/time.h" |
23 #include "base/utf_string_conversions.h" | 23 #include "base/utf_string_conversions.h" |
24 #include "chrome/common/render_messages.h" | |
25 #include "content/common/appcache/appcache_dispatcher.h" | 24 #include "content/common/appcache/appcache_dispatcher.h" |
26 #include "content/common/bindings_policy.h" | 25 #include "content/common/bindings_policy.h" |
27 #include "content/common/clipboard_messages.h" | 26 #include "content/common/clipboard_messages.h" |
28 #include "content/common/content_constants.h" | 27 #include "content/common/content_constants.h" |
29 #include "content/common/content_switches.h" | 28 #include "content/common/content_switches.h" |
30 #include "content/common/database_messages.h" | 29 #include "content/common/database_messages.h" |
31 #include "content/common/drag_messages.h" | 30 #include "content/common/drag_messages.h" |
32 #include "content/common/file_system/file_system_dispatcher.h" | 31 #include "content/common/file_system/file_system_dispatcher.h" |
33 #include "content/common/file_system/webfilesystem_callback_dispatcher.h" | 32 #include "content/common/file_system/webfilesystem_callback_dispatcher.h" |
34 #include "content/common/json_value_serializer.h" | 33 #include "content/common/json_value_serializer.h" |
(...skipping 4204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4239 const webkit_glue::CustomContextMenuContext& custom_context) { | 4238 const webkit_glue::CustomContextMenuContext& custom_context) { |
4240 if (custom_context.is_pepper_menu) | 4239 if (custom_context.is_pepper_menu) |
4241 pepper_delegate_.OnContextMenuClosed(custom_context); | 4240 pepper_delegate_.OnContextMenuClosed(custom_context); |
4242 else | 4241 else |
4243 context_menu_node_.reset(); | 4242 context_menu_node_.reset(); |
4244 } | 4243 } |
4245 | 4244 |
4246 void RenderView::OnNetworkStateChanged(bool online) { | 4245 void RenderView::OnNetworkStateChanged(bool online) { |
4247 WebNetworkStateNotifier::setOnLine(online); | 4246 WebNetworkStateNotifier::setOnLine(online); |
4248 } | 4247 } |
OLD | NEW |