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 #include "content/public/test/render_view_test.h" | 5 #include "content/public/test/render_view_test.h" |
6 | 6 |
7 #include "content/common/view_messages.h" | 7 #include "content/common/view_messages.h" |
8 #include "content/public/browser/native_web_keyboard_event.h" | 8 #include "content/public/browser/native_web_keyboard_event.h" |
9 #include "content/public/common/renderer_preferences.h" | 9 #include "content/public/common/renderer_preferences.h" |
10 #include "content/renderer/render_thread_impl.h" | 10 #include "content/renderer/render_thread_impl.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 namespace { | 37 namespace { |
38 const int32 kOpenerId = -2; | 38 const int32 kOpenerId = -2; |
39 const int32 kRouteId = 5; | 39 const int32 kRouteId = 5; |
40 const int32 kNewWindowRouteId = 6; | 40 const int32 kNewWindowRouteId = 6; |
41 const int32 kSurfaceId = 42; | 41 const int32 kSurfaceId = 42; |
42 | 42 |
43 } // namespace | 43 } // namespace |
44 | 44 |
45 namespace content { | 45 namespace content { |
46 | 46 |
47 class RendererWebKitPlatformSupportImplNoSandboxImpl : | 47 class RendererWebKitPlatformSupportImplNoSandboxImpl |
48 public RendererWebKitPlatformSupportImpl { | 48 : public RendererWebKitPlatformSupportImpl { |
49 public: | 49 public: |
50 virtual WebKit::WebSandboxSupport* sandboxSupport() { | 50 virtual WebKit::WebSandboxSupport* sandboxSupport() { |
51 return NULL; | 51 return NULL; |
52 } | 52 } |
53 }; | 53 }; |
54 | 54 |
55 RenderViewTest::RendererWebKitPlatformSupportImplNoSandbox:: | 55 RenderViewTest::RendererWebKitPlatformSupportImplNoSandbox:: |
56 RendererWebKitPlatformSupportImplNoSandbox() { | 56 RendererWebKitPlatformSupportImplNoSandbox() { |
57 webkit_platform_support_.reset( | 57 webkit_platform_support_.reset( |
58 new RendererWebKitPlatformSupportImplNoSandboxImpl()); | 58 new RendererWebKitPlatformSupportImplNoSandboxImpl()); |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 | 355 |
356 ViewMsg_Navigate navigate_message(impl->GetRoutingID(), navigate_params); | 356 ViewMsg_Navigate navigate_message(impl->GetRoutingID(), navigate_params); |
357 OnMessageReceived(navigate_message); | 357 OnMessageReceived(navigate_message); |
358 | 358 |
359 // The load actually happens asynchronously, so we pump messages to process | 359 // The load actually happens asynchronously, so we pump messages to process |
360 // the pending continuation. | 360 // the pending continuation. |
361 ProcessPendingMessages(); | 361 ProcessPendingMessages(); |
362 } | 362 } |
363 | 363 |
364 } // namespace content | 364 } // namespace content |
OLD | NEW |