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

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.h

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 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 237
238 // Set up the RenderView child process. Virtual because it is overridden by 238 // Set up the RenderView child process. Virtual because it is overridden by
239 // TestRenderViewHost. If the |frame_name| parameter is non-empty, it is used 239 // TestRenderViewHost. If the |frame_name| parameter is non-empty, it is used
240 // as the name of the new top-level frame. 240 // as the name of the new top-level frame.
241 // The |opener_route_id| parameter indicates which RenderView created this 241 // The |opener_route_id| parameter indicates which RenderView created this
242 // (MSG_ROUTING_NONE if none). If |max_page_id| is larger than -1, the 242 // (MSG_ROUTING_NONE if none). If |max_page_id| is larger than -1, the
243 // RenderView is told to start issuing page IDs at |max_page_id| + 1. 243 // RenderView is told to start issuing page IDs at |max_page_id| + 1.
244 // If this RenderView is a guest, the embedder's process ID is also passed in 244 // If this RenderView is a guest, the embedder's process ID is also passed in
245 // so that the RenderView's process can establish a channel with its embedder 245 // so that the RenderView's process can establish a channel with its embedder
246 // if it's not already established. 246 // if it's not already established.
247 // If |user_agent_override| is non-empty, it overrides the user agent that is
248 // normally used when a navigation requires it.
Charlie Reis 2012/06/01 00:36:08 Why is this being done at the level of RenderView
gone 2012/06/01 01:04:06 It was defined as a per-navigation setting after s
Charlie Reis 2012/06/01 18:04:09 Thanks, that helps a lot. Looks like you want the
gone 2012/06/14 00:46:39 Seems to work like this on Chrome for Android: whe
247 virtual bool CreateRenderView(const string16& frame_name, 249 virtual bool CreateRenderView(const string16& frame_name,
248 int opener_route_id, 250 int opener_route_id,
249 int32 max_page_id, 251 int32 max_page_id,
250 int embedder_process_id); 252 int embedder_process_id,
253 const std::string& user_agent_override);
251 254
252 base::TerminationStatus render_view_termination_status() const { 255 base::TerminationStatus render_view_termination_status() const {
253 return render_view_termination_status_; 256 return render_view_termination_status_;
254 } 257 }
255 258
256 // Sends the given navigation message. Use this rather than sending it 259 // Sends the given navigation message. Use this rather than sending it
257 // yourself since this does the internal bookkeeping described below. This 260 // yourself since this does the internal bookkeeping described below. This
258 // function takes ownership of the provided message pointer. 261 // function takes ownership of the provided message pointer.
259 // 262 //
260 // If a cross-site request is in progress, we may be suspended while waiting 263 // If a cross-site request is in progress, we may be suspended while waiting
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 655 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
653 }; 656 };
654 657
655 #if defined(COMPILER_MSVC) 658 #if defined(COMPILER_MSVC)
656 #pragma warning(pop) 659 #pragma warning(pop)
657 #endif 660 #endif
658 661
659 } // namespace content 662 } // namespace content
660 663
661 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 664 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698