| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 } | 158 } |
| 159 | 159 |
| 160 // Returns whether the RenderViewHost is currently waiting to hear the result | 160 // Returns whether the RenderViewHost is currently waiting to hear the result |
| 161 // of a before unload handler from the renderer. | 161 // of a before unload handler from the renderer. |
| 162 bool is_waiting_for_beforeunload_ack() const { | 162 bool is_waiting_for_beforeunload_ack() const { |
| 163 return is_waiting_for_beforeunload_ack_; | 163 return is_waiting_for_beforeunload_ack_; |
| 164 } | 164 } |
| 165 | 165 |
| 166 // RenderViewHost overrides -------------------------------------------------- | 166 // RenderViewHost overrides -------------------------------------------------- |
| 167 | 167 |
| 168 virtual bool CreateRenderView(URLRequestContextGetter* request_context); | 168 virtual bool CreateRenderView(URLRequestContextGetter* request_context, |
| 169 const string16& frame_name); |
| 169 virtual bool IsRenderViewLive() const; | 170 virtual bool IsRenderViewLive() const; |
| 170 | 171 |
| 171 private: | 172 private: |
| 172 FRIEND_TEST_ALL_PREFIXES(RenderViewHostTest, FilterNavigate); | 173 FRIEND_TEST_ALL_PREFIXES(RenderViewHostTest, FilterNavigate); |
| 173 | 174 |
| 174 // Tracks if the caller thinks if it created the RenderView. This is so we can | 175 // Tracks if the caller thinks if it created the RenderView. This is so we can |
| 175 // respond to IsRenderViewLive appropriately. | 176 // respond to IsRenderViewLive appropriately. |
| 176 bool render_view_created_; | 177 bool render_view_created_; |
| 177 | 178 |
| 178 // See set_delete_counter() above. May be NULL. | 179 // See set_delete_counter() above. May be NULL. |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 | 292 |
| 292 MockRenderProcessHostFactory rph_factory_; | 293 MockRenderProcessHostFactory rph_factory_; |
| 293 TestRenderViewHostFactory rvh_factory_; | 294 TestRenderViewHostFactory rvh_factory_; |
| 294 | 295 |
| 295 scoped_ptr<TestTabContents> contents_; | 296 scoped_ptr<TestTabContents> contents_; |
| 296 | 297 |
| 297 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); | 298 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); |
| 298 }; | 299 }; |
| 299 | 300 |
| 300 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ | 301 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |