| 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 <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 void SetAccessibilityOtherCallbackForTesting( | 431 void SetAccessibilityOtherCallbackForTesting( |
| 432 const base::Closure& callback); | 432 const base::Closure& callback); |
| 433 | 433 |
| 434 bool is_waiting_for_beforeunload_ack() { | 434 bool is_waiting_for_beforeunload_ack() { |
| 435 return is_waiting_for_beforeunload_ack_; | 435 return is_waiting_for_beforeunload_ack_; |
| 436 } | 436 } |
| 437 | 437 |
| 438 // Whether the RVH is waiting for the unload ack from the renderer. | 438 // Whether the RVH is waiting for the unload ack from the renderer. |
| 439 bool IsWaitingForUnloadACK() const; | 439 bool IsWaitingForUnloadACK() const; |
| 440 | 440 |
| 441 void OnTextSurroundingSelectionResponse(const base::string16& content, |
| 442 int start_offset, |
| 443 int end_offset); |
| 444 |
| 441 // Update the FrameTree to use this RenderViewHost's main frame | 445 // Update the FrameTree to use this RenderViewHost's main frame |
| 442 // RenderFrameHost. Called when the RenderViewHost is committed. | 446 // RenderFrameHost. Called when the RenderViewHost is committed. |
| 443 // | 447 // |
| 444 // TODO(ajwong): Remove once RenderViewHost no longer owns the main frame | 448 // TODO(ajwong): Remove once RenderViewHost no longer owns the main frame |
| 445 // RenderFrameHost. | 449 // RenderFrameHost. |
| 446 void AttachToFrameTree(); | 450 void AttachToFrameTree(); |
| 447 | 451 |
| 448 // Increases the refcounting on this RVH. This is done by the FrameTree on | 452 // Increases the refcounting on this RVH. This is done by the FrameTree on |
| 449 // creation of a RenderFrameHost. | 453 // creation of a RenderFrameHost. |
| 450 void increment_ref_count() { ++frames_ref_count_; } | 454 void increment_ref_count() { ++frames_ref_count_; } |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 646 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 650 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
| 647 }; | 651 }; |
| 648 | 652 |
| 649 #if defined(COMPILER_MSVC) | 653 #if defined(COMPILER_MSVC) |
| 650 #pragma warning(pop) | 654 #pragma warning(pop) |
| 651 #endif | 655 #endif |
| 652 | 656 |
| 653 } // namespace content | 657 } // namespace content |
| 654 | 658 |
| 655 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 659 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
| OLD | NEW |