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

Side by Side Diff: Source/bindings/core/v8/WindowProxy.h

Issue 1071963002: Replace Handle<> with Local<> in bindings/core/v8 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
« no previous file with comments | « Source/bindings/core/v8/V8ValueCache.cpp ('k') | Source/bindings/core/v8/WindowProxy.cpp » ('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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 void namedItemRemoved(HTMLDocument*, const AtomicString&); 67 void namedItemRemoved(HTMLDocument*, const AtomicString&);
68 68
69 // Update the security origin of a document 69 // Update the security origin of a document
70 // (e.g., after setting docoument.domain). 70 // (e.g., after setting docoument.domain).
71 void updateSecurityOrigin(SecurityOrigin*); 71 void updateSecurityOrigin(SecurityOrigin*);
72 72
73 bool isContextInitialized() { return m_scriptState && !!m_scriptState->perCo ntextData(); } 73 bool isContextInitialized() { return m_scriptState && !!m_scriptState->perCo ntextData(); }
74 bool isGlobalInitialized() { return !m_global.isEmpty(); } 74 bool isGlobalInitialized() { return !m_global.isEmpty(); }
75 75
76 bool initializeIfNeeded(); 76 bool initializeIfNeeded();
77 void updateDocumentWrapper(v8::Handle<v8::Object> wrapper); 77 void updateDocumentWrapper(v8::Local<v8::Object> wrapper);
78 78
79 void clearForNavigation(); 79 void clearForNavigation();
80 void clearForClose(); 80 void clearForClose();
81 81
82 void takeGlobalFrom(WindowProxy*); 82 void takeGlobalFrom(WindowProxy*);
83 83
84 DOMWrapperWorld& world() { return *m_world; } 84 DOMWrapperWorld& world() { return *m_world; }
85 85
86 private: 86 private:
87 WindowProxy(Frame*, PassRefPtr<DOMWrapperWorld>, v8::Isolate*); 87 WindowProxy(Frame*, PassRefPtr<DOMWrapperWorld>, v8::Isolate*);
(...skipping 22 matching lines...) Expand all
110 v8::Isolate* m_isolate; 110 v8::Isolate* m_isolate;
111 RefPtr<ScriptState> m_scriptState; 111 RefPtr<ScriptState> m_scriptState;
112 RefPtr<DOMWrapperWorld> m_world; 112 RefPtr<DOMWrapperWorld> m_world;
113 ScopedPersistent<v8::Object> m_global; 113 ScopedPersistent<v8::Object> m_global;
114 ScopedPersistent<v8::Object> m_document; 114 ScopedPersistent<v8::Object> m_document;
115 }; 115 };
116 116
117 } // namespace blink 117 } // namespace blink
118 118
119 #endif // WindowProxy_h 119 #endif // WindowProxy_h
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/V8ValueCache.cpp ('k') | Source/bindings/core/v8/WindowProxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698