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

Side by Side Diff: chrome/browser/prerender/prerender_config.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: Cleand up userAgentOverride Created 8 years, 6 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 CHROME_BROWSER_PRERENDER_PRERENDER_CONFIG_H_ 5 #ifndef CHROME_BROWSER_PRERENDER_PRERENDER_CONFIG_H_
6 #define CHROME_BROWSER_PRERENDER_PRERENDER_CONFIG_H_ 6 #define CHROME_BROWSER_PRERENDER_PRERENDER_CONFIG_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/time.h" 9 #include "base/time.h"
10 #include "ui/gfx/rect.h" 10 #include "ui/gfx/rect.h"
(...skipping 14 matching lines...) Expand all
25 25
26 // Maximum age for a prerendered page until it is removed. 26 // Maximum age for a prerendered page until it is removed.
27 base::TimeDelta max_age; 27 base::TimeDelta max_age;
28 28
29 // Is https allowed? 29 // Is https allowed?
30 bool https_allowed; 30 bool https_allowed;
31 31
32 // The default tab bounds used as the prerenderer tab size when the active tab 32 // The default tab bounds used as the prerenderer tab size when the active tab
33 // cannot be accessed. 33 // cannot be accessed.
34 gfx::Rect default_tab_bounds; 34 gfx::Rect default_tab_bounds;
35
36 // User agent being used as an override for the WebContents.
37 std::string user_agent_override;
38
39 // Is the user agent being overridden for this NavigationEntry?
40 bool is_overriding_user_agent;
35 }; 41 };
36 42
37 } // namespace prerender 43 } // namespace prerender
38 44
39 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONFIG_H_ 45 #endif // CHROME_BROWSER_PRERENDER_PRERENDER_CONFIG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698