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

Side by Side Diff: chrome/common/search_provider.h

Issue 1065813003: Apply automatic range checks to enum types across IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « chrome/common/render_messages.h ('k') | content/public/common/top_controls_state.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 CHROME_COMMON_SEARCH_PROVIDER_H_ 5 #ifndef CHROME_COMMON_SEARCH_PROVIDER_H_
6 #define CHROME_COMMON_SEARCH_PROVIDER_H_ 6 #define CHROME_COMMON_SEARCH_PROVIDER_H_
7 7
8 namespace search_provider { 8 namespace search_provider {
9 9
10 // The type of OSDD that the renderer is giving to the browser. 10 // The type of OSDD that the renderer is giving to the browser.
(...skipping 15 matching lines...) Expand all
26 // All of the following values are manidated by the 26 // All of the following values are manidated by the
27 // spec for window.external.IsSearchProviderInstalled. 27 // spec for window.external.IsSearchProviderInstalled.
28 28
29 // The search provider is not installed. 29 // The search provider is not installed.
30 NOT_INSTALLED = 0, 30 NOT_INSTALLED = 0,
31 31
32 // The search provider is in the user's set but is not 32 // The search provider is in the user's set but is not
33 INSTALLED_BUT_NOT_DEFAULT = 1, 33 INSTALLED_BUT_NOT_DEFAULT = 1,
34 34
35 // The search provider is set as the user's default. 35 // The search provider is set as the user's default.
36 INSTALLED_AS_DEFAULT = 2 36 INSTALLED_AS_DEFAULT = 2,
37
38 INSTALLED_STATE_LAST = INSTALLED_AS_DEFAULT
37 }; 39 };
38 40
39 } // namespace search_provider 41 } // namespace search_provider
40 42
41 #endif // CHROME_COMMON_SEARCH_PROVIDER_H_ 43 #endif // CHROME_COMMON_SEARCH_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/common/render_messages.h ('k') | content/public/common/top_controls_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698