| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_TEST_RENDER_VIEW_TEST_H_ | 5 #ifndef CHROME_TEST_RENDER_VIEW_TEST_H_ |
| 6 #define CHROME_TEST_RENDER_VIEW_TEST_H_ | 6 #define CHROME_TEST_RENDER_VIEW_TEST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 // A special WebKitClientImpl class for getting rid off the dependency to the | 37 // A special WebKitClientImpl class for getting rid off the dependency to the |
| 38 // sandbox, which is not available in RenderViewTest. | 38 // sandbox, which is not available in RenderViewTest. |
| 39 class RendererWebKitClientImplNoSandbox : public RendererWebKitClientImpl { | 39 class RendererWebKitClientImplNoSandbox : public RendererWebKitClientImpl { |
| 40 public: | 40 public: |
| 41 virtual WebKit::WebSandboxSupport* sandboxSupport() { | 41 virtual WebKit::WebSandboxSupport* sandboxSupport() { |
| 42 return NULL; | 42 return NULL; |
| 43 } | 43 } |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 RenderViewTest(); | 46 RenderViewTest(); |
| 47 ~RenderViewTest(); | 47 virtual ~RenderViewTest(); |
| 48 | 48 |
| 49 protected: | 49 protected: |
| 50 // Spins the message loop to process all messages that are currently pending. | 50 // Spins the message loop to process all messages that are currently pending. |
| 51 void ProcessPendingMessages(); | 51 void ProcessPendingMessages(); |
| 52 | 52 |
| 53 // Returns a pointer to the main frame. | 53 // Returns a pointer to the main frame. |
| 54 WebKit::WebFrame* GetMainFrame(); | 54 WebKit::WebFrame* GetMainFrame(); |
| 55 | 55 |
| 56 // Executes the given JavaScript in the context of the main frame. The input | 56 // Executes the given JavaScript in the context of the main frame. The input |
| 57 // is a NULL-terminated UTF-8 string. | 57 // is a NULL-terminated UTF-8 string. |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 scoped_ptr<RendererMainPlatformDelegate> platform_; | 102 scoped_ptr<RendererMainPlatformDelegate> platform_; |
| 103 scoped_ptr<MainFunctionParams> params_; | 103 scoped_ptr<MainFunctionParams> params_; |
| 104 scoped_ptr<CommandLine> command_line_; | 104 scoped_ptr<CommandLine> command_line_; |
| 105 scoped_ptr<SandboxInitWrapper> sandbox_init_wrapper_; | 105 scoped_ptr<SandboxInitWrapper> sandbox_init_wrapper_; |
| 106 | 106 |
| 107 autofill::PasswordAutofillManager* password_autofill_; | 107 autofill::PasswordAutofillManager* password_autofill_; |
| 108 autofill::AutofillAgent* autofill_agent_; | 108 autofill::AutofillAgent* autofill_agent_; |
| 109 }; | 109 }; |
| 110 | 110 |
| 111 #endif // CHROME_TEST_RENDER_VIEW_TEST_H_ | 111 #endif // CHROME_TEST_RENDER_VIEW_TEST_H_ |
| OLD | NEW |