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

Unified Diff: third_party/WebKit/Source/modules/eventsource/EventSource.cpp

Issue 2727633006: DevTools: Rename InspectorInstrumentation:: namespace into probe:: (Closed)
Patch Set: Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/eventsource/EventSource.cpp
diff --git a/third_party/WebKit/Source/modules/eventsource/EventSource.cpp b/third_party/WebKit/Source/modules/eventsource/EventSource.cpp
index 742c9387dc235940ad1bd6a1ddff78bed31f09fd..8381bd626d605d0f22c22a91726f1f34b39fa0fb 100644
--- a/third_party/WebKit/Source/modules/eventsource/EventSource.cpp
+++ b/third_party/WebKit/Source/modules/eventsource/EventSource.cpp
@@ -123,7 +123,7 @@ EventSource::~EventSource() {
}
void EventSource::dispose() {
- InspectorInstrumentation::detachClientRequest(getExecutionContext(), this);
+ probe::detachClientRequest(getExecutionContext(), this);
}
void EventSource::scheduleInitialConnect() {
@@ -179,8 +179,8 @@ void EventSource::connect() {
resourceLoaderOptions.dataBufferingPolicy = DoNotBufferData;
resourceLoaderOptions.securityOrigin = origin;
- InspectorInstrumentation::willSendEventSourceRequest(&executionContext, this);
- // InspectorInstrumentation::documentThreadableLoaderStartedLoadingForClient
+ probe::willSendEventSourceRequest(&executionContext, this);
+ // probe::documentThreadableLoaderStartedLoadingForClient
// will be called synchronously.
m_loader = ThreadableLoader::create(executionContext, this, options,
resourceLoaderOptions);
@@ -188,8 +188,7 @@ void EventSource::connect() {
}
void EventSource::networkRequestEnded() {
- InspectorInstrumentation::didFinishEventSourceRequest(getExecutionContext(),
- this);
+ probe::didFinishEventSourceRequest(getExecutionContext(), this);
m_loader = nullptr;
@@ -353,8 +352,8 @@ void EventSource::onMessageEvent(const AtomicString& eventType,
e->initMessageEvent(eventType, false, false, data, m_eventStreamOrigin,
lastEventId, 0, nullptr);
- InspectorInstrumentation::willDispatchEventSourceEvent(
- getExecutionContext(), this, eventType, lastEventId, data);
+ probe::willDispatchEventSourceEvent(getExecutionContext(), this, eventType,
+ lastEventId, data);
dispatchEvent(e);
}
@@ -373,7 +372,7 @@ void EventSource::abortConnectionAttempt() {
}
void EventSource::contextDestroyed(ExecutionContext*) {
- InspectorInstrumentation::detachClientRequest(getExecutionContext(), this);
+ probe::detachClientRequest(getExecutionContext(), this);
close();
}

Powered by Google App Engine
This is Rietveld 408576698