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 // 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 | |
15 | 14 |
16 #include <string> | 15 #include <string> |
17 | 16 |
18 #include "content/common/content_export.h" | 17 #include "content/common/content_export.h" |
19 #include "third_party/skia/include/core/SkColor.h" | 18 #include "third_party/skia/include/core/SkColor.h" |
20 | 19 |
21 namespace content { | 20 namespace content { |
22 | 21 |
23 enum RendererPreferencesHintingEnum { | 22 enum RendererPreferencesHintingEnum { |
24 RENDERER_PREFERENCES_HINTING_SYSTEM_DEFAULT = 0, | 23 RENDERER_PREFERENCES_HINTING_SYSTEM_DEFAULT = 0, |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 double default_zoom_level; | 99 double default_zoom_level; |
101 | 100 |
102 // The user agent given to WebKit when it requests one and the user agent is | 101 // The user agent given to WebKit when it requests one and the user agent is |
103 // being overridden for the current navigation. | 102 // being overridden for the current navigation. |
104 std::string user_agent_override; | 103 std::string user_agent_override; |
105 }; | 104 }; |
106 | 105 |
107 } // namespace content | 106 } // namespace content |
108 | 107 |
109 #endif // CONTENT_PUBLIC_COMMON_RENDERER_PREFERENCES_H_ | 108 #endif // CONTENT_PUBLIC_COMMON_RENDERER_PREFERENCES_H_ |
OLD | NEW |