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

Side by Side Diff: chrome/browser/ui/cocoa/notifications/xpc_transaction_handler.h

Issue 2419213003: Ensure the xpc transaction is ended (Closed)
Patch Set: review Created 4 years, 1 month 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_COCOA_NOTIFICATIONS_XPC_TRANSACTION_HANDLER_H_
6 #define CHROME_BROWSER_UI_COCOA_NOTIFICATIONS_XPC_TRANSACTION_HANDLER_H_
7
8 #import <Foundation/Foundation.h>
9
10 // Keeps track of whether a XPC transaction is opened.
11 @interface XPCTransactionHandler : NSObject
12
13 // Only open a new transaction if one is not already opened.
14 - (void)openTransactionIfNeeded;
15
16 // Close the transaction if no alerts are being displayed.
17 - (void)closeTransactionIfNeeded;
18 @end
19
20 #endif // CHROME_BROWSER_UI_COCOA_NOTIFICATIONS_XPC_TRANSACTION_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698