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

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

Issue 2335203006: Add [CachedAccessor] attribute to cache (almost) constant accessors (window.document). (Closed)
Patch Set: Fix nits Created 4 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
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 22 matching lines...) Expand all
33 33
34 #include "bindings/core/v8/DOMWrapperWorld.h" 34 #include "bindings/core/v8/DOMWrapperWorld.h"
35 #include "bindings/core/v8/ScopedPersistent.h" 35 #include "bindings/core/v8/ScopedPersistent.h"
36 #include "bindings/core/v8/ScriptState.h" 36 #include "bindings/core/v8/ScriptState.h"
37 #include "platform/heap/Handle.h" 37 #include "platform/heap/Handle.h"
38 #include "platform/weborigin/SecurityOrigin.h" 38 #include "platform/weborigin/SecurityOrigin.h"
39 #include "wtf/HashMap.h" 39 #include "wtf/HashMap.h"
40 #include "wtf/PassRefPtr.h" 40 #include "wtf/PassRefPtr.h"
41 #include "wtf/RefPtr.h" 41 #include "wtf/RefPtr.h"
42 #include "wtf/text/AtomicString.h" 42 #include "wtf/text/AtomicString.h"
43 #include <map>
haraken 2016/09/20 05:53:25 Remove this.
Alfonso 2016/09/20 13:48:23 Done.
43 #include <v8.h> 44 #include <v8.h>
44 45
45 namespace blink { 46 namespace blink {
46 47
47 class Frame; 48 class Frame;
48 class HTMLDocument; 49 class HTMLDocument;
49 class SecurityOrigin; 50 class SecurityOrigin;
50 51
51 // WindowProxy represents all the per-global object state for a Frame that 52 // WindowProxy represents all the per-global object state for a Frame that
52 // persist between navigations. 53 // persist between navigations.
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 v8::Isolate* m_isolate; 120 v8::Isolate* m_isolate;
120 RefPtr<ScriptState> m_scriptState; 121 RefPtr<ScriptState> m_scriptState;
121 RefPtr<DOMWrapperWorld> m_world; 122 RefPtr<DOMWrapperWorld> m_world;
122 ScopedPersistent<v8::Object> m_global; 123 ScopedPersistent<v8::Object> m_global;
123 ScopedPersistent<v8::Object> m_document; 124 ScopedPersistent<v8::Object> m_document;
124 }; 125 };
125 126
126 } // namespace blink 127 } // namespace blink
127 128
128 #endif // WindowProxy_h 129 #endif // WindowProxy_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698