summaryrefslogtreecommitdiffstats
path: root/content/common/content_restriction.h
diff options
context:
space:
mode:
Diffstat (limited to 'content/common/content_restriction.h')
-rw-r--r--content/common/content_restriction.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/content/common/content_restriction.h b/content/common/content_restriction.h
new file mode 100644
index 0000000..1497939
--- /dev/null
+++ b/content/common/content_restriction.h
@@ -0,0 +1,19 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_COMMON_CONTENT_RESTRICTION_H_
+#define CONTENT_COMMON_CONTENT_RESTRICTION_H_
+#pragma once
+
+// Used by a full-page plugin to disable browser commands because of
+// restrictions on how the data is to be used (i.e. can't copy/print).
+enum ContentRestriction {
+ CONTENT_RESTRICTION_COPY = 1 << 0,
+ CONTENT_RESTRICTION_CUT = 1 << 1,
+ CONTENT_RESTRICTION_PASTE = 1 << 2,
+ CONTENT_RESTRICTION_PRINT = 1 << 3,
+ CONTENT_RESTRICTION_SAVE = 1 << 4
+};
+
+#endif // CONTENT_COMMON_CONTENT_RESTRICTION_H_