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

Side by Side Diff: chrome/browser/browsing_data/browsing_data_appcache_helper.h

Issue 16295003: Update chrome/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_APPCACHE_HELPER_H_ 5 #ifndef CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_APPCACHE_HELPER_H_
6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_APPCACHE_HELPER_H_ 6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_APPCACHE_HELPER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "net/base/completion_callback.h" 10 #include "net/base/completion_callback.h"
(...skipping 13 matching lines...) Expand all
24 public: 24 public:
25 typedef std::map<GURL, appcache::AppCacheInfoVector> OriginAppCacheInfoMap; 25 typedef std::map<GURL, appcache::AppCacheInfoVector> OriginAppCacheInfoMap;
26 26
27 explicit BrowsingDataAppCacheHelper(Profile* profile); 27 explicit BrowsingDataAppCacheHelper(Profile* profile);
28 28
29 virtual void StartFetching(const base::Closure& completion_callback); 29 virtual void StartFetching(const base::Closure& completion_callback);
30 virtual void DeleteAppCacheGroup(const GURL& manifest_url); 30 virtual void DeleteAppCacheGroup(const GURL& manifest_url);
31 31
32 appcache::AppCacheInfoCollection* info_collection() const { 32 appcache::AppCacheInfoCollection* info_collection() const {
33 DCHECK(!is_fetching_); 33 DCHECK(!is_fetching_);
34 return info_collection_; 34 return info_collection_.get();
35 } 35 }
36 36
37 protected: 37 protected:
38 friend class base::RefCountedThreadSafe<BrowsingDataAppCacheHelper>; 38 friend class base::RefCountedThreadSafe<BrowsingDataAppCacheHelper>;
39 virtual ~BrowsingDataAppCacheHelper(); 39 virtual ~BrowsingDataAppCacheHelper();
40 40
41 base::Closure completion_callback_; 41 base::Closure completion_callback_;
42 scoped_refptr<appcache::AppCacheInfoCollection> info_collection_; 42 scoped_refptr<appcache::AppCacheInfoCollection> info_collection_;
43 43
44 private: 44 private:
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 private: 85 private:
86 virtual ~CannedBrowsingDataAppCacheHelper(); 86 virtual ~CannedBrowsingDataAppCacheHelper();
87 87
88 Profile* profile_; 88 Profile* profile_;
89 89
90 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataAppCacheHelper); 90 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataAppCacheHelper);
91 }; 91 };
92 92
93 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_APPCACHE_HELPER_H_ 93 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_APPCACHE_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser_process_impl.cc ('k') | chrome/browser/browsing_data/browsing_data_appcache_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698