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

Side by Side Diff: content/common/bindings_policy.h

Issue 6874038: Remove the last Chrome dependencies from renderer, and enforce no more includes through DEPS. I ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698