| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BINDINGS_POLICY_H__ | 5 #ifndef CONTENT_COMMON_BINDINGS_POLICY_H_ |
| 6 #define CHROME_COMMON_BINDINGS_POLICY_H__ | 6 #define CONTENT_COMMON_BINDINGS_POLICY_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 // This is a utility class that specifies flag values for the types of | 9 // This is a utility class that specifies flag values for the types of |
| 10 // JavaScript bindings exposed to renderers. | 10 // JavaScript bindings exposed to renderers. |
| 11 class BindingsPolicy { | 11 class BindingsPolicy { |
| 12 public: | 12 public: |
| 13 enum { | 13 enum { |
| 14 // HTML-based UI bindings that allows he js content to send JSON-encoded | 14 // HTML-based UI bindings that allows he js content to send JSON-encoded |
| 15 // data back to the browser process. | 15 // data back to the browser process. |
| 16 WEB_UI = 1 << 0, | 16 WEB_UI = 1 << 0, |
| (...skipping 16 matching lines...) Expand all Loading... |
| 33 return (flags & DOM_AUTOMATION) != 0; | 33 return (flags & DOM_AUTOMATION) != 0; |
| 34 } | 34 } |
| 35 static bool is_external_host_enabled(int flags) { | 35 static bool is_external_host_enabled(int flags) { |
| 36 return (flags & EXTERNAL_HOST) != 0; | 36 return (flags & EXTERNAL_HOST) != 0; |
| 37 } | 37 } |
| 38 static bool is_extension_enabled(int flags) { | 38 static bool is_extension_enabled(int flags) { |
| 39 return (flags & EXTENSION) != 0; | 39 return (flags & EXTENSION) != 0; |
| 40 } | 40 } |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 #endif // CHROME_COMMON_BINDINGS_POLICY_H__ | 43 #endif // CONTENT_COMMON_BINDINGS_POLICY_H_ |
| OLD | NEW |