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

Side by Side Diff: chrome/renderer/extensions/safe_builtins.h

Issue 17451011: Make the externally connectable browser test clobber all of the builtins, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: hopefully fix tests Created 7 years, 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_RENDERER_EXTENSIONS_SAFE_BUILTINS_H_ 5 #ifndef CHROME_RENDERER_EXTENSIONS_SAFE_BUILTINS_H_
6 #define CHROME_RENDERER_EXTENSIONS_SAFE_BUILTINS_H_ 6 #define CHROME_RENDERER_EXTENSIONS_SAFE_BUILTINS_H_
7 7
8 #include "v8/include/v8.h" 8 #include "v8/include/v8.h"
9 9
10 namespace extensions { 10 namespace extensions {
(...skipping 15 matching lines...) Expand all
26 // 26 //
27 // Examples: 27 // Examples:
28 // Array.prototype.forEach.call(...) becomes Array.forEach(...) 28 // Array.prototype.forEach.call(...) becomes Array.forEach(...)
29 // Object.prototype.toString.call(...) becomes Object.toString(...) 29 // Object.prototype.toString.call(...) becomes Object.toString(...)
30 // Object.keys.call(...) becomes Object.keys(...) 30 // Object.keys.call(...) becomes Object.keys(...)
31 v8::Local<v8::Object> GetArray() const; 31 v8::Local<v8::Object> GetArray() const;
32 v8::Local<v8::Object> GetFunction() const; 32 v8::Local<v8::Object> GetFunction() const;
33 // NOTE(kalman): VS2010 won't compile "GetObject", it mysteriously renames it 33 // NOTE(kalman): VS2010 won't compile "GetObject", it mysteriously renames it
34 // to "GetObjectW" - hence GetObjekt. Sorry. 34 // to "GetObjectW" - hence GetObjekt. Sorry.
35 v8::Local<v8::Object> GetObjekt() const; 35 v8::Local<v8::Object> GetObjekt() const;
36 v8::Local<v8::Object> GetRegExp() const;
37 v8::Local<v8::Object> GetString() const;
36 38
37 private: 39 private:
38 ChromeV8Context* context_; 40 ChromeV8Context* context_;
39 }; 41 };
40 42
41 } // namespace extensions 43 } // namespace extensions
42 44
43 #endif // CHROME_RENDERER_EXTENSIONS_SAFE_BUILTINS_H_ 45 #endif // CHROME_RENDERER_EXTENSIONS_SAFE_BUILTINS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698