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 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/memory/memory_pressure_listener.h" | 12 #include "base/memory/memory_pressure_listener.h" |
13 #include "base/metrics/user_metrics_action.h" | 13 #include "base/metrics/user_metrics_action.h" |
14 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
15 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
16 #include "base/threading/thread_checker.h" | 16 #include "base/threading/thread_checker.h" |
17 #include "base/timer/timer.h" | 17 #include "base/timer/timer.h" |
18 #include "build/build_config.h" | 18 #include "build/build_config.h" |
19 #include "content/child/child_thread.h" | 19 #include "content/child/child_thread.h" |
20 #include "content/common/content_export.h" | 20 #include "content/common/content_export.h" |
| 21 #include "content/common/frame_replication_state.h" |
21 #include "content/common/gpu/client/gpu_channel_host.h" | 22 #include "content/common/gpu/client/gpu_channel_host.h" |
22 #include "content/common/gpu/gpu_result_codes.h" | 23 #include "content/common/gpu/gpu_result_codes.h" |
23 #include "content/public/renderer/render_thread.h" | 24 #include "content/public/renderer/render_thread.h" |
24 #include "net/base/network_change_notifier.h" | 25 #include "net/base/network_change_notifier.h" |
25 #include "third_party/WebKit/public/platform/WebConnectionType.h" | 26 #include "third_party/WebKit/public/platform/WebConnectionType.h" |
26 #include "ui/gfx/native_widget_types.h" | 27 #include "ui/gfx/native_widget_types.h" |
27 | 28 |
28 #if defined(OS_MACOSX) | 29 #if defined(OS_MACOSX) |
29 #include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h" | 30 #include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h" |
30 #endif | 31 #endif |
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 const GPUCreateCommandBufferConfig& init_params, | 423 const GPUCreateCommandBufferConfig& init_params, |
423 int32 route_id) override; | 424 int32 route_id) override; |
424 | 425 |
425 void Init(); | 426 void Init(); |
426 | 427 |
427 void OnCreateNewFrame(int routing_id, | 428 void OnCreateNewFrame(int routing_id, |
428 int parent_routing_id, | 429 int parent_routing_id, |
429 int proxy_routing_id); | 430 int proxy_routing_id); |
430 void OnCreateNewFrameProxy(int routing_id, | 431 void OnCreateNewFrameProxy(int routing_id, |
431 int parent_routing_id, | 432 int parent_routing_id, |
432 int render_view_routing_id); | 433 int render_view_routing_id, |
| 434 const FrameReplicationState& replicated_state); |
433 void OnSetZoomLevelForCurrentURL(const std::string& scheme, | 435 void OnSetZoomLevelForCurrentURL(const std::string& scheme, |
434 const std::string& host, | 436 const std::string& host, |
435 double zoom_level); | 437 double zoom_level); |
436 void OnCreateNewView(const ViewMsg_New_Params& params); | 438 void OnCreateNewView(const ViewMsg_New_Params& params); |
437 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id); | 439 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id); |
438 #if defined(ENABLE_PLUGINS) | 440 #if defined(ENABLE_PLUGINS) |
439 void OnPurgePluginListCache(bool reload_pages); | 441 void OnPurgePluginListCache(bool reload_pages); |
440 #endif | 442 #endif |
441 void OnNetworkTypeChanged(net::NetworkChangeNotifier::ConnectionType type); | 443 void OnNetworkTypeChanged(net::NetworkChangeNotifier::ConnectionType type); |
442 void OnGetAccessibilityTree(); | 444 void OnGetAccessibilityTree(); |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
586 bool use_image_external_; | 588 bool use_image_external_; |
587 | 589 |
588 std::map<int, mojo::MessagePipeHandle> pending_render_frame_connects_; | 590 std::map<int, mojo::MessagePipeHandle> pending_render_frame_connects_; |
589 | 591 |
590 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 592 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
591 }; | 593 }; |
592 | 594 |
593 } // namespace content | 595 } // namespace content |
594 | 596 |
595 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 597 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |