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

Unified Diff: content/common/resource_priority_change_info.h

Issue 2552703003: Make reprioritization IPC batch rather than per-request.
Patch Set: Fix some typos. Created 4 years 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_priority_change_info.h
diff --git a/content/common/resource_priority_change_info.h b/content/common/resource_priority_change_info.h
new file mode 100644
index 0000000000000000000000000000000000000000..494ba865ac525b1aeff957e4a2939489a7b911c2
--- /dev/null
+++ b/content/common/resource_priority_change_info.h
@@ -0,0 +1,27 @@
+// 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_PRIORITY_CHANGE_INFO_H_
+#define CONTENT_COMMON_RESOURCE_PRIORITY_CHANGE_INFO_H_
+
+#include "content/common/content_export.h"
+#include "net/base/request_priority.h"
+
+namespace content {
+
+struct CONTENT_EXPORT ResourcePriorityChangeInfo {
+ ResourcePriorityChangeInfo();
+ ResourcePriorityChangeInfo(int request_id,
+ net::RequestPriority priority,
+ int intra_priority_value);
+ ~ResourcePriorityChangeInfo();
+
+ int request_id = -1;
+ net::RequestPriority priority = net::IDLE;
+ int intra_priority_value = 0;
+};
+
+} // namespace content
+
+#endif // CONTENT_COMMON_RESOURCE_PRIORITY_CHANGE_INFO_H_

Powered by Google App Engine
This is Rietveld 408576698