| 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_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 | 243 |
| 244 // TODO(creis): Remove after debugging https:/crbug.com/575245. | 244 // TODO(creis): Remove after debugging https:/crbug.com/575245. |
| 245 int main_frame_routing_id() const { | 245 int main_frame_routing_id() const { |
| 246 return main_frame_routing_id_; | 246 return main_frame_routing_id_; |
| 247 } | 247 } |
| 248 | 248 |
| 249 void set_main_frame_routing_id(int routing_id) { | 249 void set_main_frame_routing_id(int routing_id) { |
| 250 main_frame_routing_id_ = routing_id; | 250 main_frame_routing_id_ = routing_id; |
| 251 } | 251 } |
| 252 | 252 |
| 253 void OnTextSurroundingSelectionResponse(const base::string16& content, | |
| 254 size_t start_offset, | |
| 255 size_t end_offset); | |
| 256 | |
| 257 // Increases the refcounting on this RVH. This is done by the FrameTree on | 253 // Increases the refcounting on this RVH. This is done by the FrameTree on |
| 258 // creation of a RenderFrameHost or RenderFrameProxyHost. | 254 // creation of a RenderFrameHost or RenderFrameProxyHost. |
| 259 void increment_ref_count() { ++frames_ref_count_; } | 255 void increment_ref_count() { ++frames_ref_count_; } |
| 260 | 256 |
| 261 // Decreases the refcounting on this RVH. This is done by the FrameTree on | 257 // Decreases the refcounting on this RVH. This is done by the FrameTree on |
| 262 // destruction of a RenderFrameHost or RenderFrameProxyHost. | 258 // destruction of a RenderFrameHost or RenderFrameProxyHost. |
| 263 void decrement_ref_count() { --frames_ref_count_; } | 259 void decrement_ref_count() { --frames_ref_count_; } |
| 264 | 260 |
| 265 // Returns the refcount on this RVH, that is the number of RenderFrameHosts | 261 // Returns the refcount on this RVH, that is the number of RenderFrameHosts |
| 266 // and RenderFrameProxyHosts currently using it. | 262 // and RenderFrameProxyHosts currently using it. |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 bool render_view_ready_on_process_launch_; | 404 bool render_view_ready_on_process_launch_; |
| 409 | 405 |
| 410 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; | 406 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; |
| 411 | 407 |
| 412 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 408 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
| 413 }; | 409 }; |
| 414 | 410 |
| 415 } // namespace content | 411 } // namespace content |
| 416 | 412 |
| 417 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 413 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| OLD | NEW |