Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1185)

Side by Side Diff: content/test/render_view_test.cc

Issue 10450002: Transfer user agent override info between browser and renderer (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Diff shows what we do downstream Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/test/render_view_test.h" 5 #include "content/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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 RenderViewImpl* view = RenderViewImpl::Create( 169 RenderViewImpl* view = RenderViewImpl::Create(
170 0, 170 0,
171 kOpenerId, 171 kOpenerId,
172 content::RendererPreferences(), 172 content::RendererPreferences(),
173 webkit_glue::WebPreferences(), 173 webkit_glue::WebPreferences(),
174 new SharedRenderViewCounter(0), 174 new SharedRenderViewCounter(0),
175 kRouteId, 175 kRouteId,
176 kSurfaceId, 176 kSurfaceId,
177 dom_storage::kInvalidSessionStorageNamespaceId, 177 dom_storage::kInvalidSessionStorageNamespaceId,
178 string16(), 178 string16(),
179 std::string(),
179 false, 180 false,
180 false, 181 false,
181 1, 182 1,
182 WebKit::WebScreenInfo(), 183 WebKit::WebScreenInfo(),
183 NULL, 184 NULL,
184 AccessibilityModeOff); 185 AccessibilityModeOff);
185 view->AddRef(); 186 view->AddRef();
186 view_ = view; 187 view_ = view;
187 188
188 // Attach a pseudo keyboard device to this object. 189 // Attach a pseudo keyboard device to this object.
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 496
496 ViewMsg_Navigate navigate_message(impl->GetRoutingID(), navigate_params); 497 ViewMsg_Navigate navigate_message(impl->GetRoutingID(), navigate_params);
497 OnMessageReceived(navigate_message); 498 OnMessageReceived(navigate_message);
498 499
499 // The load actually happens asynchronously, so we pump messages to process 500 // The load actually happens asynchronously, so we pump messages to process
500 // the pending continuation. 501 // the pending continuation.
501 ProcessPendingMessages(); 502 ProcessPendingMessages();
502 } 503 }
503 504
504 } // namespace content 505 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698