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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 /* 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 #include <v8.h> 43 #include <v8.h>
44 44
45 namespace blink { 45 namespace blink {
46 46
47 class Frame; 47 class Frame;
48 class HTMLDocument; 48 class HTMLDocument;
49 class SecurityOrigin; 49 class SecurityOrigin;
50 50
51 // WindowProxy represents all the per-global object state for a Frame that 51 // WindowProxy represents all the per-global object state for a Frame that
52 // persist between navigations. 52 // persist between navigations.
53 class WindowProxy final : public NoBaseWillBeGarbageCollectedFinalized<WindowPro xy> { 53 class WindowProxy final : public GarbageCollectedFinalized<WindowProxy> {
54 USING_FAST_MALLOC_WILL_BE_REMOVED(WindowProxy);
55 public: 54 public:
56 static PassOwnPtrWillBeRawPtr<WindowProxy> create(v8::Isolate*, Frame*, DOMW rapperWorld&); 55 static RawPtr<WindowProxy> create(v8::Isolate*, Frame*, DOMWrapperWorld&);
57 56
58 ~WindowProxy(); 57 ~WindowProxy();
59 DECLARE_TRACE(); 58 DECLARE_TRACE();
60 59
61 v8::Local<v8::Context> contextIfInitialized() const { return m_scriptState ? m_scriptState->context() : v8::Local<v8::Context>(); } 60 v8::Local<v8::Context> contextIfInitialized() const { return m_scriptState ? m_scriptState->context() : v8::Local<v8::Context>(); }
62 ScriptState* scriptState() const { return m_scriptState.get(); } 61 ScriptState* scriptState() const { return m_scriptState.get(); }
63 62
64 // Update document object of the frame. 63 // Update document object of the frame.
65 void updateDocument(); 64 void updateDocument();
66 65
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // object for fast access. UpdateDocumentProperty sets the wrapper 100 // object for fast access. UpdateDocumentProperty sets the wrapper
102 // for the current document on the global object. 101 // for the current document on the global object.
103 void updateDocumentProperty(); 102 void updateDocumentProperty();
104 103
105 // Updates Activity Logger for the current context. 104 // Updates Activity Logger for the current context.
106 void updateActivityLogger(); 105 void updateActivityLogger();
107 106
108 void createContext(); 107 void createContext();
109 bool installDOMWindow(); 108 bool installDOMWindow();
110 109
111 RawPtrWillBeMember<Frame> m_frame; 110 Member<Frame> m_frame;
112 v8::Isolate* m_isolate; 111 v8::Isolate* m_isolate;
113 RefPtr<ScriptState> m_scriptState; 112 RefPtr<ScriptState> m_scriptState;
114 RefPtr<DOMWrapperWorld> m_world; 113 RefPtr<DOMWrapperWorld> m_world;
115 ScopedPersistent<v8::Object> m_global; 114 ScopedPersistent<v8::Object> m_global;
116 ScopedPersistent<v8::Object> m_document; 115 ScopedPersistent<v8::Object> m_document;
117 }; 116 };
118 117
119 } // namespace blink 118 } // namespace blink
120 119
121 #endif // WindowProxy_h 120 #endif // WindowProxy_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698