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

Unified Diff: include/v8.h

Issue 4324: Disallow copy and assigning a few public objects. (Closed)
Patch Set: Created 12 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8.h
diff --git a/include/v8.h b/include/v8.h
index fd6d9ab2783e5f07e8b5c681c8d139fce93a6a93..2842c328dc53c6aef0f167dd58b18bee9a84f4bb 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -783,6 +783,7 @@ class EXPORT String : public Primitive {
protected:
ExternalStringResource() {}
private:
+ // Disallow copying and assigning.
ExternalStringResource(const ExternalStringResource&);
void operator=(const ExternalStringResource&);
};
@@ -812,6 +813,7 @@ class EXPORT String : public Primitive {
protected:
ExternalAsciiStringResource() {}
private:
+ // Disallow copying and assigning.
ExternalAsciiStringResource(const ExternalAsciiStringResource&);
void operator=(const ExternalAsciiStringResource&);
};
@@ -886,6 +888,10 @@ class EXPORT String : public Primitive {
private:
char* str_;
int length_;
+
+ // Disallow copying and assigning.
+ Utf8Value(const Utf8Value&);
+ void operator=(const Utf8Value&);
};
/**
@@ -901,6 +907,10 @@ class EXPORT String : public Primitive {
private:
char* str_;
int length_;
+
+ // Disallow copying and assigning.
+ AsciiValue(const AsciiValue&);
+ void operator=(const AsciiValue&);
};
/**
@@ -915,6 +925,10 @@ class EXPORT String : public Primitive {
private:
uint16_t* str_;
int length_;
+
+ // Disallow copying and assigning.
+ Value(const Value&);
+ void operator=(const Value&);
};
};
@@ -1679,6 +1693,10 @@ class EXPORT Extension { // NOLINT
int dep_count_;
const char** deps_;
bool auto_enable_;
+
+ // Disallow copying and assigning.
+ Extension(const Extension&);
+ void operator=(const Extension&);
};
@@ -2199,6 +2217,10 @@ class EXPORT Locker {
private:
bool has_lock_;
bool top_level_;
+
+ // Disallow copying and assigning.
+ Locker(const Locker&);
+ void operator=(const Locker&);
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698