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

Side by Side Diff: content/public/common/renderer_preferences.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: Added logic to instant loader to match prerenderer 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 // A struct for managing browser's settings that apply to the renderer or its 5 // A struct for managing browser's settings that apply to the renderer or its
6 // webview. These differ from WebPreferences since they apply to Chromium's 6 // webview. These differ from WebPreferences since they apply to Chromium's
7 // glue layer rather than applying to just WebKit. 7 // glue layer rather than applying to just WebKit.
8 // 8 //
9 // Adding new values to this class probably involves updating 9 // Adding new values to this class probably involves updating
10 // common/view_messages.h, browser/browser.cc, etc. 10 // common/view_messages.h, browser/browser.cc, etc.
11 11
12 #ifndef CONTENT_PUBLIC_COMMON_RENDERER_PREFERENCES_H_ 12 #ifndef CONTENT_PUBLIC_COMMON_RENDERER_PREFERENCES_H_
13 #define CONTENT_PUBLIC_COMMON_RENDERER_PREFERENCES_H_ 13 #define CONTENT_PUBLIC_COMMON_RENDERER_PREFERENCES_H_
14 #pragma once 14 #pragma once
15 15
16 #include <string>
17
16 #include "content/common/content_export.h" 18 #include "content/common/content_export.h"
17 #include "third_party/skia/include/core/SkColor.h" 19 #include "third_party/skia/include/core/SkColor.h"
18 20
19 namespace content { 21 namespace content {
20 22
21 enum RendererPreferencesHintingEnum { 23 enum RendererPreferencesHintingEnum {
22 RENDERER_PREFERENCES_HINTING_SYSTEM_DEFAULT = 0, 24 RENDERER_PREFERENCES_HINTING_SYSTEM_DEFAULT = 0,
23 RENDERER_PREFERENCES_HINTING_NONE, 25 RENDERER_PREFERENCES_HINTING_NONE,
24 RENDERER_PREFERENCES_HINTING_SLIGHT, 26 RENDERER_PREFERENCES_HINTING_SLIGHT,
25 RENDERER_PREFERENCES_HINTING_MEDIUM, 27 RENDERER_PREFERENCES_HINTING_MEDIUM,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 // Cursor blink rate in seconds. 84 // Cursor blink rate in seconds.
83 // Currently only changed from default on Linux. Uses |gtk-cursor-blink| 85 // Currently only changed from default on Linux. Uses |gtk-cursor-blink|
84 // from GtkSettings. 86 // from GtkSettings.
85 double caret_blink_interval; 87 double caret_blink_interval;
86 88
87 // Set to false to not send referrers. 89 // Set to false to not send referrers.
88 bool enable_referrers; 90 bool enable_referrers;
89 91
90 // Default page zoom level. 92 // Default page zoom level.
91 double default_zoom_level; 93 double default_zoom_level;
94
95 // The user agent given to WebKit when it requests one and the user agent is
96 // being overridden for the current navigation.
97 std::string user_agent_override;
92 }; 98 };
93 99
94 } // namespace content 100 } // namespace content
95 101
96 #endif // CONTENT_PUBLIC_COMMON_RENDERER_PREFERENCES_H_ 102 #endif // CONTENT_PUBLIC_COMMON_RENDERER_PREFERENCES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698