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

Side by Side Diff: ios/public/provider/chrome/browser/updatable_resource_provider.h

Issue 2239773002: Annotates functions returning retained objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 4 years, 4 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 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
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_
OLDNEW
« no previous file with comments | « ios/public/provider/chrome/browser/geolocation_updater_provider.h ('k') | ios/web/public/web_view_creation_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698