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

Side by Side Diff: third_party/WebKit/Source/core/inspector/InjectedScriptHost.h

Issue 1455943002: [Oilpan] Prepare full definition of classes before using Member (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CORE_EXPORT Created 5 years, 1 month 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) 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Google Inc. All rights reserved. 3 * Copyright (C) 2009 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 15 matching lines...) Expand all
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */ 28 */
29 29
30 #ifndef InjectedScriptHost_h 30 #ifndef InjectedScriptHost_h
31 #define InjectedScriptHost_h 31 #define InjectedScriptHost_h
32 32
33 #include "bindings/core/v8/ScriptState.h" 33 #include "bindings/core/v8/ScriptState.h"
34 #include "core/InspectorTypeBuilder.h" 34 #include "core/InspectorTypeBuilder.h"
35 #include "core/inspector/InjectedScriptHostClient.h" 35 #include "core/inspector/InjectedScriptHostClient.h"
36 #include "core/inspector/InspectorConsoleAgent.h"
37 #include "core/inspector/v8/V8Debugger.h"
38 #include "core/inspector/v8/V8DebuggerAgent.h"
39 #include "platform/JSONValues.h"
36 #include "wtf/Functional.h" 40 #include "wtf/Functional.h"
37 #include "wtf/PassOwnPtr.h" 41 #include "wtf/PassOwnPtr.h"
38 #include "wtf/RefCounted.h" 42 #include "wtf/RefCounted.h"
39 #include "wtf/Vector.h" 43 #include "wtf/Vector.h"
40 #include "wtf/text/WTFString.h" 44 #include "wtf/text/WTFString.h"
41 #include <v8.h> 45 #include <v8.h>
42 46
43 namespace blink { 47 namespace blink {
44 48
49 class EventListenerInfo;
45 class EventTarget; 50 class EventTarget;
46 class InjectedScriptHostClient; 51 class InjectedScriptHostClient;
47 class InspectorConsoleAgent;
48 class JSONValue; 52 class JSONValue;
49 class ScriptValue; 53 class ScriptValue;
50 class V8DebuggerAgent;
51 class V8Debugger;
52
53 class EventListenerInfo;
54 54
55 // SECURITY NOTE: Although the InjectedScriptHost is intended for use solely by the inspector, 55 // SECURITY NOTE: Although the InjectedScriptHost is intended for use solely by the inspector,
56 // a reference to the InjectedScriptHost may be leaked to the page being inspect ed. Thus, the 56 // a reference to the InjectedScriptHost may be leaked to the page being inspect ed. Thus, the
57 // InjectedScriptHost must never implemment methods that have more power over th e page than the 57 // InjectedScriptHost must never implemment methods that have more power over th e page than the
58 // page already has itself (e.g. origin restriction bypasses). 58 // page already has itself (e.g. origin restriction bypasses).
59 59
60 class InjectedScriptHost : public RefCountedWillBeGarbageCollectedFinalized<Inje ctedScriptHost> { 60 class InjectedScriptHost : public RefCountedWillBeGarbageCollectedFinalized<Inje ctedScriptHost> {
61 public: 61 public:
62 static PassRefPtrWillBeRawPtr<InjectedScriptHost> create(); 62 static PassRefPtrWillBeRawPtr<InjectedScriptHost> create();
63 ~InjectedScriptHost(); 63 ~InjectedScriptHost();
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 V8Debugger* m_debugger; 114 V8Debugger* m_debugger;
115 WillBeHeapVector<OwnPtrWillBeMember<InspectableObject>> m_inspectedObjects; 115 WillBeHeapVector<OwnPtrWillBeMember<InspectableObject>> m_inspectedObjects;
116 OwnPtrWillBeMember<InspectableObject> m_defaultInspectableObject; 116 OwnPtrWillBeMember<InspectableObject> m_defaultInspectableObject;
117 OwnPtr<InjectedScriptHostClient> m_client; 117 OwnPtr<InjectedScriptHostClient> m_client;
118 v8::Global<v8::FunctionTemplate> m_wrapperTemplate; 118 v8::Global<v8::FunctionTemplate> m_wrapperTemplate;
119 }; 119 };
120 120
121 } // namespace blink 121 } // namespace blink
122 122
123 #endif // InjectedScriptHost_h 123 #endif // InjectedScriptHost_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698