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

Side by Side Diff: content/public/common/window_container_type.h

Issue 1091773002: Apply automatic range checks to content enum types across IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Apply automatic range checks to content enum types across IPC. Created 5 years, 8 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
« no previous file with comments | « content/common/view_messages.h ('k') | ui/gfx/font_render_params.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PUBLIC_COMMON_WINDOW_CONTAINER_TYPE_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_WINDOW_CONTAINER_TYPE_H_
6 #define CONTENT_PUBLIC_COMMON_WINDOW_CONTAINER_TYPE_H_ 6 #define CONTENT_PUBLIC_COMMON_WINDOW_CONTAINER_TYPE_H_
7 7
8 namespace blink { 8 namespace blink {
9 9
10 struct WebWindowFeatures; 10 struct WebWindowFeatures;
11 11
12 } 12 }
13 13
14 // "Container" types which can be requested via the window.open feature 14 // "Container" types which can be requested via the window.open feature
15 // string. 15 // string.
16 enum WindowContainerType { 16 enum WindowContainerType {
17 // A window shown in popup or tab. 17 // A window shown in popup or tab.
18 WINDOW_CONTAINER_TYPE_NORMAL = 0, 18 WINDOW_CONTAINER_TYPE_NORMAL = 0,
19 19
20 // A window run as a hidden "background" page. 20 // A window run as a hidden "background" page.
21 WINDOW_CONTAINER_TYPE_BACKGROUND, 21 WINDOW_CONTAINER_TYPE_BACKGROUND,
22 22
23 // A window run as a hidden "background" page that wishes to be started 23 // A window run as a hidden "background" page that wishes to be started
24 // upon browser launch and run beyond the lifetime of the pages that 24 // upon browser launch and run beyond the lifetime of the pages that
25 // reference it. 25 // reference it.
26 WINDOW_CONTAINER_TYPE_PERSISTENT, 26 WINDOW_CONTAINER_TYPE_PERSISTENT,
27 27
28 WINDOW_CONTAINER_TYPE_MAX_VALUE 28 WINDOW_CONTAINER_TYPE_MAX_VALUE = WINDOW_CONTAINER_TYPE_PERSISTENT,
29 }; 29 };
30 30
31 // Conversion function: 31 // Conversion function:
32 WindowContainerType WindowFeaturesToContainerType( 32 WindowContainerType WindowFeaturesToContainerType(
33 const blink::WebWindowFeatures& window_features); 33 const blink::WebWindowFeatures& window_features);
34 34
35 #endif // CONTENT_PUBLIC_COMMON_WINDOW_CONTAINER_TYPE_H_ 35 #endif // CONTENT_PUBLIC_COMMON_WINDOW_CONTAINER_TYPE_H_
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | ui/gfx/font_render_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698