Chromium Code Reviews| 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 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 418 const GPUCreateCommandBufferConfig& init_params, | 419 const GPUCreateCommandBufferConfig& init_params, |
| 419 int32 route_id) override; | 420 int32 route_id) override; |
| 420 | 421 |
| 421 void Init(); | 422 void Init(); |
| 422 | 423 |
| 423 void OnCreateNewFrame(int routing_id, | 424 void OnCreateNewFrame(int routing_id, |
| 424 int parent_routing_id, | 425 int parent_routing_id, |
| 425 int proxy_routing_id); | 426 int proxy_routing_id); |
| 426 void OnCreateNewFrameProxy(int routing_id, | 427 void OnCreateNewFrameProxy(int routing_id, |
| 427 int parent_routing_id, | 428 int parent_routing_id, |
| 428 int render_view_routing_id); | 429 int render_view_routing_id, |
| 430 const FrameReplicationState&); | |
|
Charlie Reis
2014/11/13 18:00:58
nit: Name parameter.
alexmos
2014/11/18 18:25:33
Done.
| |
| 429 void OnSetZoomLevelForCurrentURL(const std::string& scheme, | 431 void OnSetZoomLevelForCurrentURL(const std::string& scheme, |
| 430 const std::string& host, | 432 const std::string& host, |
| 431 double zoom_level); | 433 double zoom_level); |
| 432 void OnCreateNewView(const ViewMsg_New_Params& params); | 434 void OnCreateNewView(const ViewMsg_New_Params& params); |
| 433 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id); | 435 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id); |
| 434 #if defined(ENABLE_PLUGINS) | 436 #if defined(ENABLE_PLUGINS) |
| 435 void OnPurgePluginListCache(bool reload_pages); | 437 void OnPurgePluginListCache(bool reload_pages); |
| 436 #endif | 438 #endif |
| 437 void OnNetworkTypeChanged(net::NetworkChangeNotifier::ConnectionType type); | 439 void OnNetworkTypeChanged(net::NetworkChangeNotifier::ConnectionType type); |
| 438 void OnGetAccessibilityTree(); | 440 void OnGetAccessibilityTree(); |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 576 bool is_one_copy_enabled_; | 578 bool is_one_copy_enabled_; |
| 577 | 579 |
| 578 std::map<int, mojo::MessagePipeHandle> pending_render_frame_connects_; | 580 std::map<int, mojo::MessagePipeHandle> pending_render_frame_connects_; |
| 579 | 581 |
| 580 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 582 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
| 581 }; | 583 }; |
| 582 | 584 |
| 583 } // namespace content | 585 } // namespace content |
| 584 | 586 |
| 585 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 587 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| OLD | NEW |