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

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

Issue 482603002: Unify logic of stack trace generation for extension errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update expected stack trace length Created 6 years, 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 EXTENSIONS_RENDERER_SAFE_BUILTINS_H_ 5 #ifndef EXTENSIONS_RENDERER_SAFE_BUILTINS_H_
6 #define EXTENSIONS_RENDERER_SAFE_BUILTINS_H_ 6 #define EXTENSIONS_RENDERER_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 18 matching lines...) Expand all
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 v8::Local<v8::Object> GetJSON() const; 33 v8::Local<v8::Object> GetJSON() const;
34 // NOTE(kalman): VS2010 won't compile "GetObject", it mysteriously renames it 34 // NOTE(kalman): VS2010 won't compile "GetObject", it mysteriously renames it
35 // to "GetObjectW" - hence GetObjekt. Sorry. 35 // to "GetObjectW" - hence GetObjekt. Sorry.
36 v8::Local<v8::Object> GetObjekt() const; 36 v8::Local<v8::Object> GetObjekt() const;
37 v8::Local<v8::Object> GetRegExp() const; 37 v8::Local<v8::Object> GetRegExp() const;
38 v8::Local<v8::Object> GetString() const; 38 v8::Local<v8::Object> GetString() const;
39 v8::Local<v8::Object> GetError() const;
39 40
40 private: 41 private:
41 ScriptContext* context_; 42 ScriptContext* context_;
42 }; 43 };
43 44
44 } // namespace extensions 45 } // namespace extensions
45 46
46 #endif // EXTENSIONS_RENDERER_SAFE_BUILTINS_H_ 47 #endif // EXTENSIONS_RENDERER_SAFE_BUILTINS_H_
OLDNEW
« no previous file with comments | « extensions/renderer/resources/uncaught_exception_handler.js ('k') | extensions/renderer/safe_builtins.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698