| 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_SHELL_SHELL_RENDER_PROCESS_OBSERVER_H_ | 5 #ifndef CONTENT_SHELL_SHELL_RENDER_PROCESS_OBSERVER_H_ |
| 6 #define CONTENT_SHELL_SHELL_RENDER_PROCESS_OBSERVER_H_ | 6 #define CONTENT_SHELL_SHELL_RENDER_PROCESS_OBSERVER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 void BindTestRunnersToWindow(WebKit::WebFrame* frame); | 37 void BindTestRunnersToWindow(WebKit::WebFrame* frame); |
| 38 | 38 |
| 39 // RenderProcessObserver implementation. | 39 // RenderProcessObserver implementation. |
| 40 virtual void WebKitInitialized() OVERRIDE; | 40 virtual void WebKitInitialized() OVERRIDE; |
| 41 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE; | 41 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE; |
| 42 | 42 |
| 43 WebTestRunner::WebTestDelegate* test_delegate() const { | 43 WebTestRunner::WebTestDelegate* test_delegate() const { |
| 44 return test_delegate_; | 44 return test_delegate_; |
| 45 } | 45 } |
| 46 WebKitTestRunner* main_test_runner() const { return main_test_runner_; } | 46 WebKitTestRunner* main_test_runner() const { return main_test_runner_; } |
| 47 const FilePath& webkit_source_dir() const { return webkit_source_dir_; } | 47 const base::FilePath& webkit_source_dir() const { return webkit_source_dir_; } |
| 48 | 48 |
| 49 private: | 49 private: |
| 50 // Message handlers. | 50 // Message handlers. |
| 51 void OnResetAll(); | 51 void OnResetAll(); |
| 52 void OnSetWebKitSourceDir(const FilePath& webkit_source_dir); | 52 void OnSetWebKitSourceDir(const base::FilePath& webkit_source_dir); |
| 53 | 53 |
| 54 RenderView* main_render_view_; | 54 RenderView* main_render_view_; |
| 55 WebKitTestRunner* main_test_runner_; | 55 WebKitTestRunner* main_test_runner_; |
| 56 WebTestRunner::WebTestDelegate* test_delegate_; | 56 WebTestRunner::WebTestDelegate* test_delegate_; |
| 57 | 57 |
| 58 FilePath webkit_source_dir_; | 58 base::FilePath webkit_source_dir_; |
| 59 | 59 |
| 60 DISALLOW_COPY_AND_ASSIGN(ShellRenderProcessObserver); | 60 DISALLOW_COPY_AND_ASSIGN(ShellRenderProcessObserver); |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 } // namespace content | 63 } // namespace content |
| 64 | 64 |
| 65 #endif // CONTENT_SHELL_SHELL_RENDER_PROCESS_OBSERVER_H_ | 65 #endif // CONTENT_SHELL_SHELL_RENDER_PROCESS_OBSERVER_H_ |
| OLD | NEW |