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

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

Issue 307943002: Oilpan: Prepare moving InspectorController and InspectorAgents to oilpan. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | « Source/core/inspector/PageDebuggerAgent.cpp ('k') | Source/core/inspector/PageRuntimeAgent.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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 25 matching lines...) Expand all
36 #include "wtf/PassOwnPtr.h" 36 #include "wtf/PassOwnPtr.h"
37 37
38 namespace blink { 38 namespace blink {
39 39
40 class InspectorPageAgent; 40 class InspectorPageAgent;
41 class Page; 41 class Page;
42 class SecurityOrigin; 42 class SecurityOrigin;
43 43
44 class PageRuntimeAgent FINAL : public InspectorRuntimeAgent { 44 class PageRuntimeAgent FINAL : public InspectorRuntimeAgent {
45 public: 45 public:
46 static PassOwnPtr<PageRuntimeAgent> create(InjectedScriptManager* injectedSc riptManager, ScriptDebugServer* scriptDebugServer, Page* page, InspectorPageAgen t* pageAgent) 46 static PassOwnPtrWillBeRawPtr<PageRuntimeAgent> create(InjectedScriptManager * injectedScriptManager, ScriptDebugServer* scriptDebugServer, Page* page, Inspe ctorPageAgent* pageAgent)
47 { 47 {
48 return adoptPtr(new PageRuntimeAgent(injectedScriptManager, scriptDebugS erver, page, pageAgent)); 48 return adoptPtrWillBeNoop(new PageRuntimeAgent(injectedScriptManager, sc riptDebugServer, page, pageAgent));
49 } 49 }
50 virtual ~PageRuntimeAgent(); 50 virtual ~PageRuntimeAgent();
51 virtual void trace(Visitor*) OVERRIDE;
51 virtual void init() OVERRIDE; 52 virtual void init() OVERRIDE;
52 virtual void enable(ErrorString*) OVERRIDE; 53 virtual void enable(ErrorString*) OVERRIDE;
53 54
54 void didClearDocumentOfWindowObject(LocalFrame*); 55 void didClearDocumentOfWindowObject(LocalFrame*);
55 void didCreateIsolatedContext(LocalFrame*, ScriptState*, SecurityOrigin*); 56 void didCreateIsolatedContext(LocalFrame*, ScriptState*, SecurityOrigin*);
56 void frameWindowDiscarded(LocalDOMWindow*); 57 void frameWindowDiscarded(LocalDOMWindow*);
57 58
58 private: 59 private:
59 PageRuntimeAgent(InjectedScriptManager*, ScriptDebugServer*, Page*, Inspecto rPageAgent*); 60 PageRuntimeAgent(InjectedScriptManager*, ScriptDebugServer*, Page*, Inspecto rPageAgent*);
60 61
61 virtual InjectedScript injectedScriptForEval(ErrorString*, const int* execut ionContextId) OVERRIDE; 62 virtual InjectedScript injectedScriptForEval(ErrorString*, const int* execut ionContextId) OVERRIDE;
62 virtual void muteConsole() OVERRIDE; 63 virtual void muteConsole() OVERRIDE;
63 virtual void unmuteConsole() OVERRIDE; 64 virtual void unmuteConsole() OVERRIDE;
64 void reportExecutionContextCreation(); 65 void reportExecutionContextCreation();
65 66
66 Page* m_inspectedPage; 67 RawPtrWillBeMember<Page> m_inspectedPage;
67 InspectorPageAgent* m_pageAgent; 68 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent;
68 bool m_mainWorldContextCreated; 69 bool m_mainWorldContextCreated;
69 }; 70 };
70 71
71 } // namespace blink 72 } // namespace blink
72 73
73 74
74 #endif // !defined(InspectorPagerAgent_h) 75 #endif // !defined(InspectorPagerAgent_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/PageDebuggerAgent.cpp ('k') | Source/core/inspector/PageRuntimeAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698