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

Side by Side Diff: trunk/Source/bindings/v8/DOMRequestState.h

Issue 218813002: Revert 170357 "Revert of Make DOMWrapperWorld::current() return ..." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 6 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
« no previous file with comments | « trunk/Source/bindings/v8/DOMDataStore.cpp ('k') | trunk/Source/bindings/v8/DOMWrapperWorld.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 { 58 {
59 } 59 }
60 private: 60 private:
61 v8::HandleScope m_handleScope; 61 v8::HandleScope m_handleScope;
62 v8::Context::Scope m_contextScope; 62 v8::Context::Scope m_contextScope;
63 }; 63 };
64 64
65 v8::Local<v8::Context> context() 65 v8::Local<v8::Context> context()
66 { 66 {
67 ASSERT(m_executionContext); 67 ASSERT(m_executionContext);
68 return toV8Context(m_executionContext, m_world.get()); 68 return toV8Context(m_executionContext, *m_world);
69 } 69 }
70 70
71 v8::Isolate* isolate() const 71 v8::Isolate* isolate() const
72 { 72 {
73 return m_isolate; 73 return m_isolate;
74 } 74 }
75 75
76 bool isValid() const { return m_executionContext; } 76 bool isValid() const { return m_executionContext; }
77 77
78 private: 78 private:
79 v8::Isolate* m_isolate; 79 v8::Isolate* m_isolate;
80 ExecutionContext* m_executionContext; 80 ExecutionContext* m_executionContext;
81 RefPtr<DOMWrapperWorld> m_world; 81 RefPtr<DOMWrapperWorld> m_world;
82 }; 82 };
83 83
84 } 84 }
85 #endif 85 #endif
OLDNEW
« no previous file with comments | « trunk/Source/bindings/v8/DOMDataStore.cpp ('k') | trunk/Source/bindings/v8/DOMWrapperWorld.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698