Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(431)

Side by Side Diff: content/renderer/render_thread_impl.cc

Issue 22410007: Move appcache_frontend_impl.* to content/renderer/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_thread_impl.h" 5 #include "content/renderer/render_thread_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/allocator/allocator_extension.h" 12 #include "base/allocator/allocator_extension.h"
13 #include "base/command_line.h" 13 #include "base/command_line.h"
14 #include "base/debug/trace_event.h" 14 #include "base/debug/trace_event.h"
15 #include "base/lazy_instance.h" 15 #include "base/lazy_instance.h"
16 #include "base/logging.h" 16 #include "base/logging.h"
17 #include "base/memory/discardable_memory.h" 17 #include "base/memory/discardable_memory.h"
18 #include "base/memory/shared_memory.h" 18 #include "base/memory/shared_memory.h"
19 #include "base/metrics/field_trial.h" 19 #include "base/metrics/field_trial.h"
20 #include "base/metrics/histogram.h" 20 #include "base/metrics/histogram.h"
21 #include "base/metrics/stats_table.h" 21 #include "base/metrics/stats_table.h"
22 #include "base/path_service.h" 22 #include "base/path_service.h"
23 #include "base/strings/string16.h" 23 #include "base/strings/string16.h"
24 #include "base/strings/string_tokenizer.h" 24 #include "base/strings/string_tokenizer.h"
25 #include "base/strings/utf_string_conversions.h" 25 #include "base/strings/utf_string_conversions.h"
26 #include "base/threading/thread_local.h" 26 #include "base/threading/thread_local.h"
27 #include "base/threading/thread_restrictions.h" 27 #include "base/threading/thread_restrictions.h"
28 #include "base/values.h" 28 #include "base/values.h"
29 #include "content/child/appcache_dispatcher.h" 29 #include "content/child/appcache/appcache_dispatcher.h"
30 #include "content/child/appcache/appcache_frontend_impl.h"
30 #include "content/child/child_histogram_message_filter.h" 31 #include "content/child/child_histogram_message_filter.h"
31 #include "content/child/db_message_filter.h" 32 #include "content/child/db_message_filter.h"
32 #include "content/child/indexed_db/indexed_db_dispatcher.h" 33 #include "content/child/indexed_db/indexed_db_dispatcher.h"
33 #include "content/child/indexed_db/indexed_db_message_filter.h" 34 #include "content/child/indexed_db/indexed_db_message_filter.h"
34 #include "content/child/npapi/npobject_util.h" 35 #include "content/child/npapi/npobject_util.h"
35 #include "content/child/plugin_messages.h" 36 #include "content/child/plugin_messages.h"
36 #include "content/child/resource_dispatcher.h" 37 #include "content/child/resource_dispatcher.h"
37 #include "content/child/runtime_features.h" 38 #include "content/child/runtime_features.h"
38 #include "content/child/thread_safe_sender.h" 39 #include "content/child/thread_safe_sender.h"
39 #include "content/child/web_database_observer_impl.h" 40 #include "content/child/web_database_observer_impl.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" 102 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h"
102 #include "third_party/WebKit/public/web/WebScriptController.h" 103 #include "third_party/WebKit/public/web/WebScriptController.h"
103 #include "third_party/WebKit/public/web/WebSecurityPolicy.h" 104 #include "third_party/WebKit/public/web/WebSecurityPolicy.h"
104 #include "third_party/WebKit/public/web/WebSharedWorkerRepository.h" 105 #include "third_party/WebKit/public/web/WebSharedWorkerRepository.h"
105 #include "third_party/WebKit/public/web/WebView.h" 106 #include "third_party/WebKit/public/web/WebView.h"
106 #include "ui/base/layout.h" 107 #include "ui/base/layout.h"
107 #include "ui/base/ui_base_switches.h" 108 #include "ui/base/ui_base_switches.h"
108 #include "v8/include/v8.h" 109 #include "v8/include/v8.h"
109 #include "webkit/child/worker_task_runner.h" 110 #include "webkit/child/worker_task_runner.h"
110 #include "webkit/glue/webkit_glue.h" 111 #include "webkit/glue/webkit_glue.h"
111 #include "webkit/renderer/appcache/appcache_frontend_impl.h"
112 #include "webkit/renderer/compositor_bindings/web_external_bitmap_impl.h" 112 #include "webkit/renderer/compositor_bindings/web_external_bitmap_impl.h"
113 113
114 #if defined(OS_WIN) 114 #if defined(OS_WIN)
115 #include <windows.h> 115 #include <windows.h>
116 #include <objbase.h> 116 #include <objbase.h>
117 #include "base/win/scoped_com_initializer.h" 117 #include "base/win/scoped_com_initializer.h"
118 #else 118 #else
119 // TODO(port) 119 // TODO(port)
120 #include "base/memory/scoped_handle.h" 120 #include "base/memory/scoped_handle.h"
121 #include "content/child/npapi/np_channel_base.h" 121 #include "content/child/npapi/np_channel_base.h"
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 suspend_webkit_shared_timer_ = true; 344 suspend_webkit_shared_timer_ = true;
345 notify_webkit_of_modal_loop_ = true; 345 notify_webkit_of_modal_loop_ = true;
346 widget_count_ = 0; 346 widget_count_ = 0;
347 hidden_widget_count_ = 0; 347 hidden_widget_count_ = 0;
348 idle_notification_delay_in_ms_ = kInitialIdleHandlerDelayMs; 348 idle_notification_delay_in_ms_ = kInitialIdleHandlerDelayMs;
349 idle_notifications_to_skip_ = 0; 349 idle_notifications_to_skip_ = 0;
350 layout_test_mode_ = false; 350 layout_test_mode_ = false;
351 shutdown_event_ = NULL; 351 shutdown_event_ = NULL;
352 352
353 appcache_dispatcher_.reset( 353 appcache_dispatcher_.reset(
354 new AppCacheDispatcher(Get(), new appcache::AppCacheFrontendImpl())); 354 new AppCacheDispatcher(Get(), new AppCacheFrontendImpl()));
355 dom_storage_dispatcher_.reset(new DomStorageDispatcher()); 355 dom_storage_dispatcher_.reset(new DomStorageDispatcher());
356 main_thread_indexed_db_dispatcher_.reset(new IndexedDBDispatcher( 356 main_thread_indexed_db_dispatcher_.reset(new IndexedDBDispatcher(
357 thread_safe_sender())); 357 thread_safe_sender()));
358 358
359 media_stream_center_ = NULL; 359 media_stream_center_ = NULL;
360 360
361 db_message_filter_ = new DBMessageFilter(); 361 db_message_filter_ = new DBMessageFilter();
362 AddFilter(db_message_filter_.get()); 362 AddFilter(db_message_filter_.get());
363 363
364 #if defined(ENABLE_WEBRTC) 364 #if defined(ENABLE_WEBRTC)
(...skipping 947 matching lines...) Expand 10 before | Expand all | Expand 10 after
1312 1312
1313 } 1313 }
1314 1314
1315 void RenderThreadImpl::SampleGamepads(WebKit::WebGamepads* data) { 1315 void RenderThreadImpl::SampleGamepads(WebKit::WebGamepads* data) {
1316 if (!gamepad_shared_memory_reader_) 1316 if (!gamepad_shared_memory_reader_)
1317 gamepad_shared_memory_reader_.reset(new GamepadSharedMemoryReader); 1317 gamepad_shared_memory_reader_.reset(new GamepadSharedMemoryReader);
1318 gamepad_shared_memory_reader_->SampleGamepads(*data); 1318 gamepad_shared_memory_reader_->SampleGamepads(*data);
1319 } 1319 }
1320 1320
1321 } // namespace content 1321 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698