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

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

Issue 20191003: Route JS Error Info From Blink to Chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@gclient
Patch Set: Adam's requests Created 7 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
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 class InspectorAgent : public InspectorBaseAgent<InspectorAgent>, public Inspect orBackendDispatcher::InspectorCommandHandler { 54 class InspectorAgent : public InspectorBaseAgent<InspectorAgent>, public Inspect orBackendDispatcher::InspectorCommandHandler {
55 WTF_MAKE_NONCOPYABLE(InspectorAgent); 55 WTF_MAKE_NONCOPYABLE(InspectorAgent);
56 public: 56 public:
57 static PassOwnPtr<InspectorAgent> create(Page* page, InjectedScriptManager* injectedScriptManager, InstrumentingAgents* instrumentingAgents, InspectorCompos iteState* state) 57 static PassOwnPtr<InspectorAgent> create(Page* page, InjectedScriptManager* injectedScriptManager, InstrumentingAgents* instrumentingAgents, InspectorCompos iteState* state)
58 { 58 {
59 return adoptPtr(new InspectorAgent(page, injectedScriptManager, instrume ntingAgents, state)); 59 return adoptPtr(new InspectorAgent(page, injectedScriptManager, instrume ntingAgents, state));
60 } 60 }
61 61
62 virtual ~InspectorAgent(); 62 virtual ~InspectorAgent();
63 63
64 enum CheckFrontendBehavior {
yurys 2013/07/26 09:17:21 InspectorBaseAgent.h would be a better place for t
65 CheckFrontend,
66 DontCheckFrontend
67 };
68
64 // Inspector front-end API. 69 // Inspector front-end API.
65 void enable(ErrorString*); 70 void enable(ErrorString*);
66 void disable(ErrorString*); 71 void disable(ErrorString*);
67 void reset(ErrorString*); 72 void reset(ErrorString*);
68 73
69 KURL inspectedURL() const; 74 KURL inspectedURL() const;
70 KURL inspectedURLWithoutFragment() const; 75 KURL inspectedURLWithoutFragment() const;
71 76
72 InspectorFrontend* frontend() const { return m_frontend; } 77 InspectorFrontend* frontend() const { return m_frontend; }
73 78
(...skipping 29 matching lines...) Expand all
103 108
104 Vector<pair<long, String> > m_pendingEvaluateTestCommands; 109 Vector<pair<long, String> > m_pendingEvaluateTestCommands;
105 pair<RefPtr<TypeBuilder::Runtime::RemoteObject>, RefPtr<JSONObject> > m_pend ingInspectData; 110 pair<RefPtr<TypeBuilder::Runtime::RemoteObject>, RefPtr<JSONObject> > m_pend ingInspectData;
106 typedef HashMap<String, String> InjectedScriptForOriginMap; 111 typedef HashMap<String, String> InjectedScriptForOriginMap;
107 InjectedScriptForOriginMap m_injectedScriptForOrigin; 112 InjectedScriptForOriginMap m_injectedScriptForOrigin;
108 }; 113 };
109 114
110 } // namespace WebCore 115 } // namespace WebCore
111 116
112 #endif // !defined(InspectorAgent_h) 117 #endif // !defined(InspectorAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698