OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_impl.h" | 5 #include "content/renderer/render_view_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cmath> | 8 #include <cmath> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/debug/trace_event.h" | 14 #include "base/debug/trace_event.h" |
15 #include "base/json/json_reader.h" | 15 #include "base/json/json_reader.h" |
16 #include "base/json/json_writer.h" | 16 #include "base/json/json_writer.h" |
17 #include "base/lazy_instance.h" | 17 #include "base/lazy_instance.h" |
18 #include "base/memory/scoped_ptr.h" | 18 #include "base/memory/scoped_ptr.h" |
19 #include "base/message_loop_proxy.h" | 19 #include "base/message_loop_proxy.h" |
20 #include "base/metrics/histogram.h" | 20 #include "base/metrics/histogram.h" |
21 #include "base/path_service.h" | 21 #include "base/path_service.h" |
22 #include "base/process_util.h" | 22 #include "base/process_util.h" |
23 #include "base/string_number_conversions.h" | 23 #include "base/string_number_conversions.h" |
24 #include "base/string_piece.h" | 24 #include "base/string_piece.h" |
25 #include "base/string_split.h" | 25 #include "base/string_split.h" |
26 #include "base/string_util.h" | 26 #include "base/string_util.h" |
27 #include "base/sys_string_conversions.h" | 27 #include "base/sys_string_conversions.h" |
28 #include "base/time.h" | 28 #include "base/time.h" |
29 #include "base/utf_string_conversions.h" | 29 #include "base/utf_string_conversions.h" |
| 30 #include "cc/output_surface.h" |
30 #include "cc/switches.h" | 31 #include "cc/switches.h" |
31 #include "content/common/appcache/appcache_dispatcher.h" | 32 #include "content/common/appcache/appcache_dispatcher.h" |
32 #include "content/common/child_thread.h" | 33 #include "content/common/child_thread.h" |
33 #include "content/common/clipboard_messages.h" | 34 #include "content/common/clipboard_messages.h" |
34 #include "content/common/content_constants_internal.h" | 35 #include "content/common/content_constants_internal.h" |
35 #include "content/common/database_messages.h" | 36 #include "content/common/database_messages.h" |
36 #include "content/common/drag_messages.h" | 37 #include "content/common/drag_messages.h" |
37 #include "content/common/fileapi/file_system_dispatcher.h" | 38 #include "content/common/fileapi/file_system_dispatcher.h" |
38 #include "content/common/fileapi/webfilesystem_callback_dispatcher.h" | 39 #include "content/common/fileapi/webfilesystem_callback_dispatcher.h" |
39 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" | 40 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 #include "media/base/filter_collection.h" | 115 #include "media/base/filter_collection.h" |
115 #include "media/base/media_switches.h" | 116 #include "media/base/media_switches.h" |
116 #include "media/base/message_loop_factory.h" | 117 #include "media/base/message_loop_factory.h" |
117 #include "media/filters/audio_renderer_impl.h" | 118 #include "media/filters/audio_renderer_impl.h" |
118 #include "media/filters/gpu_video_decoder.h" | 119 #include "media/filters/gpu_video_decoder.h" |
119 #include "net/base/data_url.h" | 120 #include "net/base/data_url.h" |
120 #include "net/base/escape.h" | 121 #include "net/base/escape.h" |
121 #include "net/base/net_errors.h" | 122 #include "net/base/net_errors.h" |
122 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" | 123 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
123 #include "net/http/http_util.h" | 124 #include "net/http/http_util.h" |
124 #include "third_party/WebKit/Source/Platform/chromium/public/WebCompositorOutput
Surface.h" | |
125 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAccessibilityObjec
t.h" | 125 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAccessibilityObjec
t.h" |
126 #include "third_party/WebKit/Source/WebKit/chromium/public/WebColorName.h" | 126 #include "third_party/WebKit/Source/WebKit/chromium/public/WebColorName.h" |
127 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDOMEvent.h" | 127 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDOMEvent.h" |
128 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDOMMessageEvent.h" | 128 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDOMMessageEvent.h" |
129 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" | 129 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" |
130 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 130 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
131 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" | 131 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" |
132 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileChooserParams.
h" | 132 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileChooserParams.
h" |
133 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemCallback
s.h" | 133 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemCallback
s.h" |
134 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" | 134 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" |
(...skipping 6346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6481 } | 6481 } |
6482 #endif | 6482 #endif |
6483 | 6483 |
6484 void RenderViewImpl::OnReleaseDisambiguationPopupDIB( | 6484 void RenderViewImpl::OnReleaseDisambiguationPopupDIB( |
6485 TransportDIB::Handle dib_handle) { | 6485 TransportDIB::Handle dib_handle) { |
6486 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); | 6486 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); |
6487 RenderProcess::current()->ReleaseTransportDIB(dib); | 6487 RenderProcess::current()->ReleaseTransportDIB(dib); |
6488 } | 6488 } |
6489 | 6489 |
6490 } // namespace content | 6490 } // namespace content |
OLD | NEW |