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

Unified Diff: content/common/resource_request_completion_status.h

Issue 1977313002: Define parameter structs of resource messages out of resource_messages.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « content/common/resource_request.cc ('k') | content/common/resource_request_completion_status.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
new file mode 100644
index 0000000000000000000000000000000000000000..766c0ea2c7d3a098351198e562bc2d5e19063c8f
--- /dev/null
+++ b/content/common/resource_request_completion_status.h
@@ -0,0 +1,43 @@
+// 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);
+ ~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;
+
+ // Serialized security info; see content/common/ssl_status_serialization.h.
+ std::string security_info;
+
+ // Time the request completed.
+ base::TimeTicks completion_time;
+
+ // Total amount of data received from the network.
+ int64_t encoded_data_length = 0;
+};
+
+} // namespace content
+
+#endif // CONTENT_COMMON_RESOURCE_REQUEST_COMPLETION_STATUS_H_
« no previous file with comments | « content/common/resource_request.cc ('k') | content/common/resource_request_completion_status.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698