OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 IOS_PUBLIC_PROVIDER_CHROME_BROWSER_UPDATABLE_RESOURCE_PROVIDER_H_ | 5 #ifndef IOS_PUBLIC_PROVIDER_CHROME_BROWSER_UPDATABLE_RESOURCE_PROVIDER_H_ |
6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_UPDATABLE_RESOURCE_PROVIDER_H_ | 6 #define IOS_PUBLIC_PROVIDER_CHROME_BROWSER_UPDATABLE_RESOURCE_PROVIDER_H_ |
7 | 7 |
8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 // Returns the name of the notification that is sent through the notification | 89 // Returns the name of the notification that is sent through the notification |
90 // center when a resource is updated. | 90 // center when a resource is updated. |
91 virtual NSString* GetUpdateNotificationName(); | 91 virtual NSString* GetUpdateNotificationName(); |
92 | 92 |
93 // Creates a new UpdatableResourceBrige. | 93 // Creates a new UpdatableResourceBrige. |
94 // The user is responsible for releasing it. | 94 // The user is responsible for releasing it. |
95 // The UpdatableResourceBridge takes ownership of the delegate. | 95 // The UpdatableResourceBridge takes ownership of the delegate. |
96 // |delegate| may be nil. | 96 // |delegate| may be nil. |
97 virtual id<UpdatableResourceBridge> CreateUpdatableResource( | 97 virtual id<UpdatableResourceBridge> CreateUpdatableResource( |
98 NSString* resource_identifier, | 98 NSString* resource_identifier, |
99 id<UpdatableResourceDelegate> delegate); | 99 id<UpdatableResourceDelegate> delegate) NS_RETURNS_RETAINED; |
100 | 100 |
101 private: | 101 private: |
102 DISALLOW_COPY_AND_ASSIGN(UpdatableResourceProvider); | 102 DISALLOW_COPY_AND_ASSIGN(UpdatableResourceProvider); |
103 }; | 103 }; |
104 | 104 |
105 } // namespace ios | 105 } // namespace ios |
106 | 106 |
107 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_UPDATABLE_RESOURCE_PROVIDER_H_ | 107 #endif // IOS_PUBLIC_PROVIDER_CHROME_BROWSER_UPDATABLE_RESOURCE_PROVIDER_H_ |
OLD | NEW |