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

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

Issue 23477075: Rename isolateFor*() utility functions to toIsolate() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 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 unified diff | Download patch | Annotate | Revision Log
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 21 matching lines...) Expand all
32 #include "v8.h" 32 #include "v8.h"
33 #include "wtf/RefPtr.h" 33 #include "wtf/RefPtr.h"
34 34
35 namespace WebCore { 35 namespace WebCore {
36 36
37 class DOMRequestState { 37 class DOMRequestState {
38 public: 38 public:
39 explicit DOMRequestState(ScriptExecutionContext* scriptExecutionContext) 39 explicit DOMRequestState(ScriptExecutionContext* scriptExecutionContext)
40 : m_scriptExecutionContext(scriptExecutionContext) 40 : m_scriptExecutionContext(scriptExecutionContext)
41 , m_world(DOMWrapperWorld::current()) 41 , m_world(DOMWrapperWorld::current())
42 , m_isolate(isolateForScriptExecutionContext(scriptExecutionContext)) 42 , m_isolate(toIsolate(scriptExecutionContext))
43 { 43 {
44 } 44 }
45 45
46 void clear() 46 void clear()
47 { 47 {
48 m_scriptExecutionContext = 0; 48 m_scriptExecutionContext = 0;
49 m_world.clear(); 49 m_world.clear();
50 } 50 }
51 51
52 class Scope { 52 class Scope {
(...skipping 19 matching lines...) Expand all
72 } 72 }
73 73
74 private: 74 private:
75 ScriptExecutionContext* m_scriptExecutionContext; 75 ScriptExecutionContext* m_scriptExecutionContext;
76 RefPtr<DOMWrapperWorld> m_world; 76 RefPtr<DOMWrapperWorld> m_world;
77 v8::Isolate* m_isolate; 77 v8::Isolate* m_isolate;
78 }; 78 };
79 79
80 } 80 }
81 #endif 81 #endif
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestCallback.cpp ('k') | Source/bindings/v8/ScriptEventListener.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698