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

Side by Side Diff: content/renderer/message_delivery_policy.h

Issue 1126963006: Move VISUAL_STATE promise to activation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Current state (presubmit warnings, cc_unittests tests failing) Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_MESSAGE_DELIVERY_POLICY_H_ 5 #ifndef CONTENT_RENDERER_MESSAGE_DELIVERY_POLICY_H_
6 #define CONTENT_RENDERER_MESSAGE_DELIVERY_POLICY_H_ 6 #define CONTENT_RENDERER_MESSAGE_DELIVERY_POLICY_H_
7 7
8 namespace content { 8 namespace content {
9 9
10 enum MessageDeliveryPolicy { 10 enum MessageDeliveryPolicy {
11 // If a commit was requested before the message was enqueued the message 11 // If a commit was requested before the message was enqueued the message
12 // will be delivered with the swap corresponding to that commit. Otherwise 12 // will be delivered with the swap corresponding to that commit. Otherwise
13 // the message will be sent immediately using regular IPC. 13 // the message will be sent immediately using regular IPC.
14 // If the commit is aborted or optimized out the message is sent using regular 14 // If the commit is aborted or optimized out the message is sent using regular
15 // IPC. 15 // IPC.
16 MESSAGE_DELIVERY_POLICY_WITH_VISUAL_STATE, 16 MESSAGE_DELIVERY_POLICY_WITH_VISUAL_STATE,
17 // The message will be delivered with the next swap. 17 // The message will be delivered with the next swap.
18 // If the swap is optimized out, the message is sent using regular IPC. 18 // If the swap is optimized out, the message is sent using regular IPC.
19 // If the swap fails the message remains enqueued. 19 // If the swap fails the message remains enqueued.
20 MESSAGE_DELIVERY_POLICY_WITH_NEXT_SWAP, 20 MESSAGE_DELIVERY_POLICY_WITH_NEXT_SWAP,
21 // The message will be delivered with the activation of the frame
22 // correspnding to the current state of the DOM at the time the
23 // request was queued.
24 MESSAGE_DELIVERY_POLICY_WITH_ACTIVATION,
21 }; 25 };
22 26
23 } // namespace content 27 } // namespace content
24 28
25 #endif // CONTENT_RENDERER_MESSAGE_DELIVERY_POLICY_H_ 29 #endif // CONTENT_RENDERER_MESSAGE_DELIVERY_POLICY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698