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

Side by Side Diff: Source/core/inspector/InspectorInspectorAgent.h

Issue 1004113004: [DevTools] Do not instrument with InspectorInspectorAgent. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ASSERT(isMainThread) 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/inspector/InspectorInspectorAgent.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) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2011 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 return adoptPtrWillBeNoop(new InspectorInspectorAgent(injectedScriptMana ger)); 51 return adoptPtrWillBeNoop(new InspectorInspectorAgent(injectedScriptMana ger));
52 } 52 }
53 53
54 virtual ~InspectorInspectorAgent(); 54 virtual ~InspectorInspectorAgent();
55 DECLARE_VIRTUAL_TRACE(); 55 DECLARE_VIRTUAL_TRACE();
56 56
57 // Inspector front-end API. 57 // Inspector front-end API.
58 void enable(ErrorString*) override; 58 void enable(ErrorString*) override;
59 59
60 // InspectorAgent overrides. 60 // InspectorAgent overrides.
61 void init() override;
62 void disable(ErrorString*) override; 61 void disable(ErrorString*) override;
63 void domContentLoadedEventFired(LocalFrame*); 62 void didCommitLoadForLocalFrame(LocalFrame*) override;
64 63 void restore() override;
65 bool hasFrontend() const { return frontend(); }
66 64
67 // Generic code called from custom implementations. 65 // Generic code called from custom implementations.
68 void evaluateForTestInFrontend(long testCallId, const String& script); 66 void evaluateForTestInFrontend(long testCallId, const String& script);
69 67
70 void inspect(PassRefPtr<TypeBuilder::Runtime::RemoteObject> objectToInspect, PassRefPtr<JSONObject> hints); 68 void inspect(PassRefPtr<TypeBuilder::Runtime::RemoteObject> objectToInspect, PassRefPtr<JSONObject> hints);
71 69
72 private: 70 private:
73 explicit InspectorInspectorAgent(InjectedScriptManager*); 71 explicit InspectorInspectorAgent(InjectedScriptManager*);
74 72
75 RawPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager; 73 RawPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager;
76 74
77 Vector<pair<long, String> > m_pendingEvaluateTestCommands; 75 Vector<pair<long, String> > m_pendingEvaluateTestCommands;
78 }; 76 };
79 77
80 } // namespace blink 78 } // namespace blink
81 79
82 #endif // !defined(InspectorInspectorAgent_h) 80 #endif // !defined(InspectorInspectorAgent_h)
OLDNEW
« no previous file with comments | « no previous file | Source/core/inspector/InspectorInspectorAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698