| 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/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 virtual ~ShellRenderProcessObserver(); | 31 virtual ~ShellRenderProcessObserver(); |
| 32 | 32 |
| 33 void SetMainWindow(RenderView* view, | 33 void SetMainWindow(RenderView* view, |
| 34 WebTestRunner::WebTestDelegate* delegate); | 34 WebTestRunner::WebTestDelegate* delegate); |
| 35 void BindTestRunnersToWindow(WebKit::WebFrame* frame); | 35 void BindTestRunnersToWindow(WebKit::WebFrame* frame); |
| 36 | 36 |
| 37 // RenderProcessObserver implementation. | 37 // RenderProcessObserver implementation. |
| 38 virtual void WebKitInitialized() OVERRIDE; | 38 virtual void WebKitInitialized() OVERRIDE; |
| 39 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE; | 39 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE; |
| 40 | 40 |
| 41 WebTestRunner::WebTestInterfaces* test_interfaces() const { |
| 42 return test_interfaces_.get(); |
| 43 } |
| 44 |
| 41 private: | 45 private: |
| 42 // Message handlers. | 46 // Message handlers. |
| 43 void OnResetAll(); | 47 void OnResetAll(); |
| 44 | 48 |
| 45 scoped_ptr<WebTestRunner::WebTestInterfaces> test_interfaces_; | 49 scoped_ptr<WebTestRunner::WebTestInterfaces> test_interfaces_; |
| 46 WebTestRunner::WebTestDelegate* test_delegate_; | 50 WebTestRunner::WebTestDelegate* test_delegate_; |
| 47 | 51 |
| 48 DISALLOW_COPY_AND_ASSIGN(ShellRenderProcessObserver); | 52 DISALLOW_COPY_AND_ASSIGN(ShellRenderProcessObserver); |
| 49 }; | 53 }; |
| 50 | 54 |
| 51 } // namespace content | 55 } // namespace content |
| 52 | 56 |
| 53 #endif // CONTENT_SHELL_SHELL_RENDER_PROCESS_OBSERVER_H_ | 57 #endif // CONTENT_SHELL_SHELL_RENDER_PROCESS_OBSERVER_H_ |
| OLD | NEW |