| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 } | 169 } |
| 170 | 170 |
| 171 // Returns whether the RenderViewHost is currently waiting to hear the result | 171 // Returns whether the RenderViewHost is currently waiting to hear the result |
| 172 // of a before unload handler from the renderer. | 172 // of a before unload handler from the renderer. |
| 173 bool is_waiting_for_beforeunload_ack() const { | 173 bool is_waiting_for_beforeunload_ack() const { |
| 174 return is_waiting_for_beforeunload_ack_; | 174 return is_waiting_for_beforeunload_ack_; |
| 175 } | 175 } |
| 176 | 176 |
| 177 // RenderViewHost overrides -------------------------------------------------- | 177 // RenderViewHost overrides -------------------------------------------------- |
| 178 | 178 |
| 179 virtual bool CreateRenderView(URLRequestContextGetter* request_context, | 179 virtual bool CreateRenderView(const string16& frame_name); |
| 180 const string16& frame_name); | |
| 181 virtual bool IsRenderViewLive() const; | 180 virtual bool IsRenderViewLive() const; |
| 182 | 181 |
| 183 private: | 182 private: |
| 184 FRIEND_TEST_ALL_PREFIXES(RenderViewHostTest, FilterNavigate); | 183 FRIEND_TEST_ALL_PREFIXES(RenderViewHostTest, FilterNavigate); |
| 185 | 184 |
| 186 // Tracks if the caller thinks if it created the RenderView. This is so we can | 185 // Tracks if the caller thinks if it created the RenderView. This is so we can |
| 187 // respond to IsRenderViewLive appropriately. | 186 // respond to IsRenderViewLive appropriately. |
| 188 bool render_view_created_; | 187 bool render_view_created_; |
| 189 | 188 |
| 190 // See set_delete_counter() above. May be NULL. | 189 // See set_delete_counter() above. May be NULL. |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 | 302 |
| 304 MockRenderProcessHostFactory rph_factory_; | 303 MockRenderProcessHostFactory rph_factory_; |
| 305 TestRenderViewHostFactory rvh_factory_; | 304 TestRenderViewHostFactory rvh_factory_; |
| 306 | 305 |
| 307 scoped_ptr<TestTabContents> contents_; | 306 scoped_ptr<TestTabContents> contents_; |
| 308 | 307 |
| 309 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); | 308 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); |
| 310 }; | 309 }; |
| 311 | 310 |
| 312 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ | 311 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_TEST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |