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

Side by Side Diff: ios/clean/chrome/app/application_step.h

Issue 2592983003: [Clean Skeleton] Migrate code to clean/ (Closed)
Patch Set: Fix includes. 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 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 // ====== New Architecture ===== 5 // ====== New Architecture =====
6 // = This code is only used in the new iOS Chrome architecture. = 6 // = This code is only used in the new iOS Chrome architecture. =
7 // ============================================================================ 7 // ============================================================================
8 8
9 #ifndef IOS_CHROME_APP_APPLICATION_STEP_H_ 9 #ifndef IOS_CHROME_APP_APPLICATION_STEP_H_
sdefresne 2017/01/09 09:45:04 Incorrect include guard.
marq (ping after 24h) 2017/01/09 17:38:07 Done.
10 #define IOS_CHROME_APP_APPLICATION_STEP_H_ 10 #define IOS_CHROME_APP_APPLICATION_STEP_H_
11 11
12 #import <Foundation/Foundation.h> 12 #import <Foundation/Foundation.h>
13 13
14 @class ApplicationState; 14 @class ApplicationState;
15 15
16 // Objects that perform application state change steps must conform to this 16 // Objects that perform application state change steps must conform to this
17 // protocol. 17 // protocol.
18 @protocol ApplicationStep<NSObject> 18 @protocol ApplicationStep<NSObject>
19 // Implementors should not modify |state| in -canRunInState. 19 // Implementors should not modify |state| in -canRunInState.
20 - (BOOL)canRunInState:(ApplicationState*)state; 20 - (BOOL)canRunInState:(ApplicationState*)state;
21 21
22 // Implementors should expect to be deallocated after -runInState is called. 22 // Implementors should expect to be deallocated after -runInState is called.
23 // If an implementor creates objects that need to persist longer than that, they 23 // If an implementor creates objects that need to persist longer than that, they
24 // should be stored in |state.state|. 24 // should be stored in |state.state|.
25 // Implementors can assume that they are not in any of |state|'s step arrays 25 // Implementors can assume that they are not in any of |state|'s step arrays
26 // when this method is called. 26 // when this method is called.
27 - (void)runInState:(ApplicationState*)state; 27 - (void)runInState:(ApplicationState*)state;
28 @end 28 @end
29 29
30 #endif // IOS_CHROME_APP_APPLICATION_STEP_H_ 30 #endif // IOS_CHROME_APP_APPLICATION_STEP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698