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

Unified Diff: chrome/tools/test/reference_build/chrome_linux/resources/inspector/net_agent.js

Issue 177049: On Linux, move the passing of filedescriptors to a dedicated socketpair(). (Closed)
Patch Set: Removed *.d files from reference build Created 11 years, 4 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: chrome/tools/test/reference_build/chrome_linux/resources/inspector/net_agent.js
diff --git a/chrome/tools/test/reference_build/chrome_linux/resources/inspector/net_agent.js b/chrome/tools/test/reference_build/chrome_linux/resources/inspector/net_agent.js
deleted file mode 100644
index 957e119d7e9a176b9676e318bef2e9788e5bddfb..0000000000000000000000000000000000000000
--- a/chrome/tools/test/reference_build/chrome_linux/resources/inspector/net_agent.js
+++ /dev/null
@@ -1,126 +0,0 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-/**
- * @fileoverview 'Net' manages resources along with the corresponding
- * HTTP requests and responses.
- * web inspector.
- */
-goog.provide('devtools.NetAgent');
-
-devtools.NetAgent = function() {
- this.id_for_url_ = {};
-
- RemoteNetAgent.GetResourceContentResult =
- devtools.Callback.processCallback;
- RemoteNetAgent.WillSendRequest =
- goog.bind(this.willSendRequest, this);
- RemoteNetAgent.DidReceiveResponse =
- goog.bind(this.didReceiveResponse, this);
- RemoteNetAgent.DidFinishLoading =
- goog.bind(this.didFinishLoading, this);
-};
-
-
-/**
- * Resets dom agent to its initial state.
- */
-devtools.NetAgent.prototype.reset = function() {
- this.id_for_url_ = {};
-};
-
-
-/**
- * Asynchronously queries for the resource content.
- * @param {number} identifier Resource identifier.
- * @param {function(string):undefined} opt_callback Callback to call when
- * result is available.
- */
-devtools.NetAgent.prototype.getResourceContentAsync = function(identifier,
- opt_callback) {
- var resource = WebInspector.resources[identifier];
- if (!resource) {
- return;
- }
- var mycallback = function(content) {
- if (opt_callback) {
- opt_callback(content);
- }
- };
- RemoteNetAgent.GetResourceContent(
- devtools.Callback.wrap(mycallback), identifier, resource.url);
-};
-
-
-/**
- * @see NetAgentDelegate.
- * {@inheritDoc}.
- */
-devtools.NetAgent.prototype.willSendRequest = function(identifier, request) {
- // Resource object is already created.
- var resource = WebInspector.resources[identifier];
- if (resource) {
- return;
- }
-
- WebInspector.addResource(identifier, request);
- var resource = WebInspector.resources[identifier];
- resource.startTime = request.startTime;
- this.id_for_url_[resource.url] = identifier;
-};
-
-
-/**
- * @see NetAgentDelegate.
- * {@inheritDoc}.
- */
-devtools.NetAgent.prototype.didReceiveResponse = function(identifier, response) {
- var resource = WebInspector.resources[identifier];
- if (!resource) {
- return;
- }
-
- resource.expectedContentLength = response.expectedContentLength;
- resource.responseStatusCode = response.responseStatusCode;
- resource.responseHeaders = response.responseHeaders;
- resource.mimeType = response.mimeType;
- resource.suggestedFilename = response.suggestedFilename;
- var mimeType = response.mimeType;
- if (mimeType.indexOf('image/') == 0) {
- resource.type = WebInspector.Resource.Type.Image;
- } else if (mimeType.indexOf('text/html') == 0) {
- resource.type = WebInspector.Resource.Type.Document;
- } else if (mimeType.indexOf('script') != -1 ||
- resource.url.indexOf('.js') == resource.url.length - 3) {
- resource.type = WebInspector.Resource.Type.Script;
- } else if (mimeType.indexOf('text/css') == 0) {
- resource.type = WebInspector.Resource.Type.Stylesheet;
- } else {
- resource.type = WebInspector.Resource.Type.Other;
- }
- resource.responseReceivedTime = response.responseReceivedTime;
-};
-
-
-/**
- * @see NetAgentDelegate.
- * {@inheritDoc}.
- */
-devtools.NetAgent.prototype.didFinishLoading = function(identifier, value) {
- // When loading main resource we are only getting the didFinishLoading
- // that is happening after the reset. Replay previous commands here.
- this.willSendRequest(identifier, value);
- this.didReceiveResponse(identifier, value);
-
- var resource = WebInspector.resources[identifier];
- if (!resource) {
- return;
- }
- resource.endTime = value.endTime;
- resource.finished = true;
- resource.failed = !!value.errorCode;
- if (resource.mainResource) {
- document.title = 'Developer Tools - ' + resource.url;
- }
-};

Powered by Google App Engine
This is Rietveld 408576698