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

Unified Diff: content/common/resource_request_completion_status.h

Issue 2964503003: Move NetworkService mojom files to content/public/common. (Closed)
Patch Set: Merge Created 3 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 side-by-side diff with in-line comments
Download patch
Index: content/common/resource_request_completion_status.h
diff --git a/content/common/resource_request_completion_status.h b/content/common/resource_request_completion_status.h
deleted file mode 100644
index 073704e269484eae420151a5846717904430388e..0000000000000000000000000000000000000000
--- a/content/common/resource_request_completion_status.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2016 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.
-
-#ifndef CONTENT_COMMON_RESOURCE_REQUEST_COMPLETION_STATUS_H_
-#define CONTENT_COMMON_RESOURCE_REQUEST_COMPLETION_STATUS_H_
-
-#include <stdint.h>
-#include <string>
-
-#include "base/time/time.h"
-#include "content/common/content_export.h"
-
-namespace content {
-
-struct CONTENT_EXPORT ResourceRequestCompletionStatus {
- ResourceRequestCompletionStatus();
- ResourceRequestCompletionStatus(
- const ResourceRequestCompletionStatus& status);
- explicit ResourceRequestCompletionStatus(int64_t length);
- // Sets error_code to net::OK, completition_time to base::TimeTicks::Now(),
- // and encoded_data_length = encoded_body_length = |length|;
- ~ResourceRequestCompletionStatus();
-
- // The error code.
- int error_code = 0;
-
- // Was ignored by the request handler.
- bool was_ignored_by_handler = false;
-
- // A copy of the data requested exists in the cache.
- bool exists_in_cache = false;
-
- // Time the request completed.
- base::TimeTicks completion_time;
-
- // Total amount of data received from the network.
- int64_t encoded_data_length = 0;
-
- // The length of the response body before removing any content encodings.
- int64_t encoded_body_length = 0;
-
- // The length of the response body after decoding.
- int64_t decoded_body_length = 0;
-};
-
-} // namespace content
-
-#endif // CONTENT_COMMON_RESOURCE_REQUEST_COMPLETION_STATUS_H_

Powered by Google App Engine
This is Rietveld 408576698